mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 03:30:46 +00:00
Inconsequential cleanup. DONT_BUILD.
git-svn-id: https://svn.eduke32.com/eduke32@6019 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
2917efad7c
commit
ce7d4cb9b3
1 changed files with 9 additions and 5 deletions
|
@ -765,6 +765,8 @@ static void G_ShowCacheLocks(void)
|
||||||
# define FPS_YOFFSET 0
|
# define FPS_YOFFSET 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define FPS_COLOR(x) ((x) ? COLOR_RED : COLOR_WHITE)
|
||||||
|
|
||||||
static void G_PrintFPS(void)
|
static void G_PrintFPS(void)
|
||||||
{
|
{
|
||||||
// adapted from ZDoom because I like it better than what we had
|
// adapted from ZDoom because I like it better than what we had
|
||||||
|
@ -775,7 +777,7 @@ static void G_PrintFPS(void)
|
||||||
int32_t ms = getticks();
|
int32_t ms = getticks();
|
||||||
int32_t howlong = ms - LastMS;
|
int32_t howlong = ms - LastMS;
|
||||||
|
|
||||||
if (g_player[0].ps->player_par < 2)
|
if (g_player[0].ps->player_par < 3)
|
||||||
{
|
{
|
||||||
MinFrames = INT32_MAX;
|
MinFrames = INT32_MAX;
|
||||||
MaxFrames = 0;
|
MaxFrames = 0;
|
||||||
|
@ -792,7 +794,7 @@ static void G_PrintFPS(void)
|
||||||
|
|
||||||
printext256(windowxy2.x-(chars<<(3-x))+1, windowxy1.y+2+FPS_YOFFSET, 0, -1, tempbuf, x);
|
printext256(windowxy2.x-(chars<<(3-x))+1, windowxy1.y+2+FPS_YOFFSET, 0, -1, tempbuf, x);
|
||||||
printext256(windowxy2.x-(chars<<(3-x)), windowxy1.y+1+FPS_YOFFSET,
|
printext256(windowxy2.x-(chars<<(3-x)), windowxy1.y+1+FPS_YOFFSET,
|
||||||
(LastCount < LOW_FPS) ? COLOR_RED : COLOR_WHITE, -1, tempbuf, x);
|
FPS_COLOR(LastCount < LOW_FPS), -1, tempbuf, x);
|
||||||
|
|
||||||
if (ud.tickrate > 1)
|
if (ud.tickrate > 1)
|
||||||
{
|
{
|
||||||
|
@ -800,13 +802,13 @@ static void G_PrintFPS(void)
|
||||||
|
|
||||||
printext256(windowxy2.x-(chars<<(3-x))+1, windowxy1.y+10+2+FPS_YOFFSET, 0, -1, tempbuf, x);
|
printext256(windowxy2.x-(chars<<(3-x))+1, windowxy1.y+10+2+FPS_YOFFSET, 0, -1, tempbuf, x);
|
||||||
printext256(windowxy2.x-(chars<<(3-x)), windowxy1.y+10+FPS_YOFFSET,
|
printext256(windowxy2.x-(chars<<(3-x)), windowxy1.y+10+FPS_YOFFSET,
|
||||||
(MaxFrames < LOW_FPS) ? COLOR_RED : COLOR_WHITE, -1, tempbuf, x);
|
FPS_COLOR(MaxFrames < LOW_FPS), -1, tempbuf, x);
|
||||||
|
|
||||||
chars = Bsprintf(tempbuf, "min fps: %3u", MinFrames);
|
chars = Bsprintf(tempbuf, "min fps: %3u", MinFrames);
|
||||||
|
|
||||||
printext256(windowxy2.x-(chars<<(3-x))+1, windowxy1.y+20+2+FPS_YOFFSET, 0, -1, tempbuf, x);
|
printext256(windowxy2.x-(chars<<(3-x))+1, windowxy1.y+20+2+FPS_YOFFSET, 0, -1, tempbuf, x);
|
||||||
printext256(windowxy2.x-(chars<<(3-x)), windowxy1.y+20+FPS_YOFFSET,
|
printext256(windowxy2.x-(chars<<(3-x)), windowxy1.y+20+FPS_YOFFSET,
|
||||||
(MinFrames < LOW_FPS) ? COLOR_RED : COLOR_WHITE, -1, tempbuf, x);
|
FPS_COLOR(MinFrames < LOW_FPS), -1, tempbuf, x);
|
||||||
}
|
}
|
||||||
|
|
||||||
// lag meter
|
// lag meter
|
||||||
|
@ -816,7 +818,7 @@ static void G_PrintFPS(void)
|
||||||
(g_netClientPeer->lastRoundTripTimeVariance + g_netClientPeer->roundTripTimeVariance)/2);
|
(g_netClientPeer->lastRoundTripTimeVariance + g_netClientPeer->roundTripTimeVariance)/2);
|
||||||
|
|
||||||
printext256(windowxy2.x-(chars<<(3-x))+1, windowxy1.y+30+2+FPS_YOFFSET, 0, -1, tempbuf, x);
|
printext256(windowxy2.x-(chars<<(3-x))+1, windowxy1.y+30+2+FPS_YOFFSET, 0, -1, tempbuf, x);
|
||||||
printext256(windowxy2.x-(chars<<(3-x)), windowxy1.y+30+1+FPS_YOFFSET, g_netClientPeer->lastRoundTripTime > 200 ? COLOR_RED : COLOR_WHITE, -1, tempbuf, x);
|
printext256(windowxy2.x-(chars<<(3-x)), windowxy1.y+30+1+FPS_YOFFSET, FPS_COLOR(g_netClientPeer->lastRoundTripTime > 200), -1, tempbuf, x);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -837,6 +839,8 @@ static void G_PrintFPS(void)
|
||||||
LastMS = ms;
|
LastMS = ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#undef FPS_COLOR
|
||||||
|
|
||||||
void G_DisplayRest(int32_t smoothratio)
|
void G_DisplayRest(int32_t smoothratio)
|
||||||
{
|
{
|
||||||
int32_t i, j;
|
int32_t i, j;
|
||||||
|
|
Loading…
Reference in a new issue