1
0
Fork 0
forked from suyu/suyu
suyu/src/yuzu_cmd/emu_window
ameerj 5bef54618a perf_stats: Rework FPS counter to be more accurate
The FPS counter was based on metrics in the nvdisp swapbuffers call. This metric would be accurate if the gpu thread/renderer were synchronous with the nvdisp service, but that's no longer the case.

This commit moves the frame counting responsibility onto the concrete renderers after their frame draw calls. Resulting in more meaningful metrics.
The displayed FPS is now made up of the average framerate between the previous and most recent update, in order to avoid distracting FPS counter updates when framerate is oscillating between close values.

The status bar update frequency was also changed from 2 seconds to 500ms.
2021-05-15 20:34:20 -04:00
..
emu_window_sdl2.cpp perf_stats: Rework FPS counter to be more accurate 2021-05-15 20:34:20 -04:00
emu_window_sdl2.h emu_window: unsigned -> u32 2021-04-23 11:19:32 -04:00
emu_window_sdl2_gl.cpp general: Ignore implicit-fallthrough for SDL.h 2021-04-18 01:31:26 -04:00
emu_window_sdl2_gl.h renderer_opengl: Remove emulated mailbox presentation 2020-09-20 16:29:41 -03:00
emu_window_sdl2_vk.cpp general: Ignore implicit-fallthrough for SDL.h 2021-04-18 01:31:26 -04:00
emu_window_sdl2_vk.h renderer_opengl: Remove emulated mailbox presentation 2020-09-20 16:29:41 -03:00