5bef54618a
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. |
||
---|---|---|
.. | ||
emu_window_sdl2.cpp | ||
emu_window_sdl2.h | ||
emu_window_sdl2_gl.cpp | ||
emu_window_sdl2_gl.h | ||
emu_window_sdl2_vk.cpp | ||
emu_window_sdl2_vk.h |