mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
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:
parent
13b69711ac
commit
a02ab83319
1 changed files with 9 additions and 2 deletions
|
@ -1769,6 +1769,7 @@ static int32_t dr_yxaspect, dr_viewingrange;
|
||||||
static struct {
|
static struct {
|
||||||
uint32_t lastgtic;
|
uint32_t lastgtic;
|
||||||
uint32_t lastnumins, numins;
|
uint32_t lastnumins, numins;
|
||||||
|
int32_t numonscreen;
|
||||||
} g_spriteStat;
|
} g_spriteStat;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1820,7 +1821,9 @@ static void G_PrintCoords(int32_t snum)
|
||||||
}
|
}
|
||||||
Bsprintf(tempbuf,"INSERTIONS/s= %u", g_spriteStat.lastnumins);
|
Bsprintf(tempbuf,"INSERTIONS/s= %u", g_spriteStat.lastnumins);
|
||||||
printext256(x,y+81,31,-1,tempbuf,0);
|
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
|
#endif
|
||||||
y += 7;
|
y += 7;
|
||||||
Bsprintf(tempbuf,"VR=%.03f YX=%.03f",(double)dr_viewingrange/65536.0,(double)dr_yxaspect/65536.0);
|
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;
|
int32_t j, k, p, sect;
|
||||||
intptr_t l;
|
intptr_t l;
|
||||||
|
|
||||||
if (!spritesortcnt) return;
|
#ifdef DEBUGGINGAIDS
|
||||||
|
g_spriteStat.numonscreen = spritesortcnt;
|
||||||
|
#endif
|
||||||
|
if (spritesortcnt == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
ror_sprite = -1;
|
ror_sprite = -1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue