]> git.mxchange.org Git - quix0rs-blobwars.git/commit
Cache text surfaces.
authorGuus Sliepen <guus@debian.org>
Wed, 7 Jul 2010 17:08:12 +0000 (19:08 +0200)
committerGuus Sliepen <guus@debian.org>
Wed, 7 Jul 2010 17:08:12 +0000 (19:08 +0200)
commit877c46f3f824fabf9f9b28988f0cbb36de4b193d
tree0d87c66ef956ab6589e783f7852006cc7a69d9d4
parent305ea9044896dfc390499790eed9ee318c4c4b58
Cache text surfaces.

According to callgrind, a lot of time was spent drawing the same text over and
over to a surface.  A caching version of Graphics::drawString has been added,
that keeps the surface around when the text hasn't changed.
src/CGraphics.cpp
src/CGraphics.h
src/game.cpp
src/hub.cpp
src/info.cpp
src/mias.cpp
src/mission.cpp