aboutsummaryrefslogtreecommitdiff
path: root/src/core/loader/nro.cpp
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-05-15 20:34:20 -0400
committerameerj <52414509+ameerj@users.noreply.github.com>2021-05-15 20:34:20 -0400
commit453e90ef6f2d3b85d5363a3dbd927e189b7dcd62 (patch)
treeadc5dbbe050488eb0d85b7a38a5c8310dca9ef92 /src/core/loader/nro.cpp
parenta9c9d56a3544f1fd7f50dc498bcca092602661b1 (diff)
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.
Diffstat (limited to 'src/core/loader/nro.cpp')
0 files changed, 0 insertions, 0 deletions