]> git.mxchange.org Git - quix0rs-blobwars.git/commit
Do not fill in comboString when we are not using it.
authorGuus Sliepen <guus@debian.org>
Wed, 7 Jul 2010 14:22:26 +0000 (16:22 +0200)
committerGuus Sliepen <guus@debian.org>
Wed, 7 Jul 2010 14:22:26 +0000 (16:22 +0200)
commit305ea9044896dfc390499790eed9ee318c4c4b58
tree7792e034bb465d19c8d56ee4d926614741e36871
parent6cb366bf390f08e47be97c4f5921955137426f32
Do not fill in comboString when we are not using it.

According to callgrind, blobwars was spending 4% of its time in
enemyBulletCollisions(), calling snprintf() to fill in comboString. However,
this string was only used when an enemy was killed to check against objectives.
So now snprintf() has been moved to where it actually is being used, dropping
time spent in that function by 3.8%.
src/enemies.cpp