[client] rename fps variables to be more correct

This commit is contained in:
Geoffrey McRae
2018-12-12 23:59:22 +11:00
parent b927f991d6
commit 5fe2db7e56
5 changed files with 9 additions and 9 deletions

View File

@@ -622,14 +622,14 @@ bool opengl_render(void * opaque, SDL_Window * window)
return true;
}
void opengl_update_fps(void * opaque, const float avgFPS, const float renderFPS)
void opengl_update_fps(void * opaque, const float avgUPS, const float avgFPS)
{
struct Inst * this = (struct Inst *)opaque;
if (!this->params.showFPS)
return;
char str[128];
snprintf(str, sizeof(str), "UPS: %8.4f, FPS: %8.4f", avgFPS, renderFPS);
snprintf(str, sizeof(str), "UPS: %8.4f, FPS: %8.4f", avgUPS, avgFPS);
LG_FontBitmap *textSurface = NULL;
if (!(textSurface = this->font->render(this->fontObj, 0xffffff00, str)))