Lioncash
6c56754322
perf_stats: Correct literal used for MAX_LAG_TIME_US
ms is shorthand for milliseconds, not microseconds, and given there's no
comment indicating that this was intentional, it probably wasn't.
8 years ago
Lioncash
a0c3a46aa9
core_timing: Make GetGlobalTimeUs() return std::chrono::microseconds
Enforces the time unit being returned and also allows using the standard
time utilities to manipulate it.
8 years ago
Lioncash
fae2dd0344
math_util: Remove the Clamp() function
C++17 adds clamp() to the standard library, so we can remove ours in
favor of it.
8 years ago
James Rowe
a66eb7351b
UI: Fix frame rate perf stats
Adds in a missing EndGameFrame when nvdrv swaps buffers
8 years ago
James Rowe
70e65ee63a
Remove settings issues in sdl and fix a few files that broke in mingw
8 years ago
Yuri Kunde Schlesner
174464a87f
PerfStats: Re-order and document members better
9 years ago
Yuri Kunde Schlesner
fb1979d7e2
Core: Re-write frame limiter
Now based on std::chrono, and also works in terms of emulated time
instead of frames, so we can in the future frame-limit even when the
display is disabled, etc.
The frame limiter can also be enabled along with v-sync now, which
should be useful for those with displays running at more than 60 Hz.
9 years ago
Yuri Kunde Schlesner
b285c2a4ed
Core: Make PerfStats internally locked
More ergonomic to use and will be required for upcoming changes.
9 years ago
Yuri Kunde Schlesner
92c8bd4b1f
PerfStats: Add method to get the instantaneous time ratio
9 years ago
Yuri Kunde Schlesner
c75ae6c585
Add performance statistics to status bar
9 years ago