Kieran P skrev:

>In libgag/include/SDLGraphicContext.h, at the bottom, the Sprite class is defined; try to remove 'virtual' from the declarations:

Ok, I quickly tried this (remove 'virtual', compiled, removed old gmon.out file, played new game, ran same command ("gprof -q --min-count=10 glob2 ~/gmon.out > ~/profile.txt"), and here are the new results:

Hm, we'd better call that 'inconclusive'.
The time spent in Sprite::getW increased to 11%, but the total run time seems to have decreased by 3 seconds. That so much time is spent there is probably a cache thing - getW is the first thing done to a sprite image when we're about to draw it, so that is the point where the image is loaded into the cache. I assume your platform is quite different from mine, since your numbers are so different; or perhaps we are talking about a high-resolution screen as well? (showing more squares at a time) :-)

/Erik


_______________________________________________
glob2-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/glob2-devel

Reply via email to