With DNCOORDS display, print number of sprites currently on the screen.

Only in debugging builds.

git-svn-id: https://svn.eduke32.com/eduke32@3818 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2013-05-26 18:42:56 +00:00
parent 13b69711ac
commit a02ab83319
1 changed files with 9 additions and 2 deletions

View File

@ -1769,6 +1769,7 @@ static int32_t dr_yxaspect, dr_viewingrange;
static struct {
uint32_t lastgtic;
uint32_t lastnumins, numins;
int32_t numonscreen;
} g_spriteStat;
#endif
@ -1820,7 +1821,9 @@ static void G_PrintCoords(int32_t snum)
}
Bsprintf(tempbuf,"INSERTIONS/s= %u", g_spriteStat.lastnumins);
printext256(x,y+81,31,-1,tempbuf,0);
y += 2*9;
Bsprintf(tempbuf,"ONSCREEN= %d", g_spriteStat.numonscreen);
printext256(x,y+90,31,-1,tempbuf,0);
y += 3*9;
#endif
y += 7;
Bsprintf(tempbuf,"VR=%.03f YX=%.03f",(double)dr_viewingrange/65536.0,(double)dr_yxaspect/65536.0);
@ -6336,7 +6339,11 @@ void G_DoSpriteAnimations(int32_t ourx, int32_t oury, int32_t oura, int32_t smoo
int32_t j, k, p, sect;
intptr_t l;
if (!spritesortcnt) return;
#ifdef DEBUGGINGAIDS
g_spriteStat.numonscreen = spritesortcnt;
#endif
if (spritesortcnt == 0)
return;
ror_sprite = -1;