mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-12-02 22:28:14 +00:00
[client] app: correct FPS to use an actual per second value
This commit is contained in:
@@ -691,12 +691,9 @@ bool app_renderImGui(void)
|
||||
ImGuiWindowFlags_NoNav | ImGuiWindowFlags_NoTitleBar
|
||||
);
|
||||
|
||||
const float fps = 1000.0f / (g_state.renderTimeTotal /
|
||||
ringbuffer_getCount(g_state.renderTimings));
|
||||
const float ups = 1000.0f / (g_state.frameTimeTotal /
|
||||
ringbuffer_getCount(g_state.frameTimings));
|
||||
|
||||
igText("FPS:%4.2f UPS:%4.2f", fps, ups);
|
||||
igText("FPS:%4.2f UPS:%4.2f",
|
||||
atomic_load_explicit(&g_state.fps, memory_order_relaxed),
|
||||
atomic_load_explicit(&g_state.ups, memory_order_relaxed));
|
||||
|
||||
igEnd();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user