glob2-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [glob2-devel] To Erik: My Profiling Information


From: Erik Søe Sørensen
Subject: Re: [glob2-devel] To Erik: My Profiling Information
Date: Sat, 08 Sep 2007 12:56:17 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; da; rv:1.7.13) Gecko/20060717 Debian/1.7.12-1.1ubuntu2 StumbleUpon/1.9995

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]