[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

@@ -210,13 +210,13 @@ int renderThread(void * unused)
if (state.renderTime > 1e9)
{
const float avgFPS = 1000.0f / (((float)state.renderTime / state.frameCount ) / 1e6f);
const float renderFPS = 1000.0f / (((float)state.renderTime / state.renderCount) / 1e6f);
const float avgUPS = 1000.0f / (((float)state.renderTime / state.frameCount ) / 1e6f);
const float avgFPS = 1000.0f / (((float)state.renderTime / state.renderCount) / 1e6f);
state.renderTime = 0;
state.frameCount = 0;
state.renderCount = 0;
state.lgr->update_fps(state.lgrData, avgFPS, renderFPS);
state.lgr->update_fps(state.lgrData, avgUPS, avgFPS);
}
const uint64_t total = microtime() - start;