Follow-up Comment #8, bug #21314 (project freeciv):
Depening on cpu - gtk3 is still quite slugish. Just move around map with right
click and you might spot some lags ( on linux also ).
I think I maybe found why:
In each canvas function u see:
if (!pcanvas->drawable) {
/* thats always true probably*/
cr = cairo_create(pcanvas->surface);
} else {
/* thats always false probably */
cr = pcanvas->drawable;
}
and in end of each canvas_XXX function
if (!pcanvas->drawable) {
cairo_destroy(cr);
/* always true I guess */
} else {
cairo_restore(cr);
}
so at each canvas operation, there is created and deleted extra pixmap, and I
think there are hundreds of those pixmaps per second.
Haven't fully investigated it, but it has to make client so slow.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?21314>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev