http://bugs.winehq.org/show_bug.cgi?id=28604
--- Comment #7 from Yuri Khan yurivkhan@gmail.com 2011-11-13 10:53:17 CST --- OK, some more accurate statistics.
On my machine, on a fresh start, 2gis draws about 20000 lines, each on average being 16px long (for a total of 322000 pixels). This takes 135 seconds (measured by adding up the differences of GetTickCount() at start and end of bres_line_with_bias). Dividing, we get average speed of 2380 pixels per second on this Core2 Duo E6850 @ 3GHz, which doesn’t exactly strike me as reasonable line drawing performance.
Next I’m going to dump this as MoveTo/LineTo calls and compare the performance on Windows vs Wine.
Also, I tried to restructure the algorithm to reduce the number of calls to solid_rects, by consolidating sequential pixels with the same Y coordinate into a single rect, and this didn’t have any effect on the performance.