summaryrefslogtreecommitdiffstats
path: root/src/core/perf_stats.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-11-12perf_stats: Resolve implicit int to double conversion errorLioncash1-1/+1
We simply need to turn the literal argument to std::accumulate into a double, rather than an int.
2019-09-10Address review commentsFearlessTobi1-6/+8
2019-09-10Add frametime logging for tracking performance over timefearlessTobi1-1/+44
Co-Authored-By: jroweboy <jroweboy@gmail.com>
2019-04-01general: Use deducation guides for std::lock_guard and std::unique_lockLioncash1-5/+5
Since C++17, the introduction of deduction guides for locking facilities means that we no longer need to hardcode the mutex type into the locks themselves, making it easier to switch mutex types, should it ever be necessary in the future.
2018-10-24perf_stats: Remove unused variable within DoFrameLimiting()Lioncash1-4/+0
This hasn't been used since ba8ff096fdc9f7ab101851c4cd06c3244a7d84c3
2018-08-31core/core: Replace includes with forward declarations where applicableLioncash1-2/+2
The follow-up to e2457418dae19b889b2ad85255bb95d4cd0e4bff, which replaces most of the includes in the core header with forward declarations. This makes it so that if any of the headers the core header was previously including change, then no one will need to rebuild the bulk of the core, due to core.h being quite a prevalent inclusion. This should make turnaround for changes much faster for developers.
2018-08-21perf_stats: Change MAX_LAG_TIME_US to an appropriate valueMerryMage1-1/+1
25us is far too small, and would result in std::this_thread::sleep_for being called with this as a maximum value. This means that a guest application that produces frames instantly would only be limited to 40 kHz. 25ms is a more appropriate value, as it allows for a 60 Hz refresh rate while providing enough slack in the negative region.
2018-08-21Port #3353 from CitrafearlessTobi1-4/+13
2018-08-06perf_stats: Correct literal used for MAX_LAG_TIME_USLioncash1-2/+2
ms is shorthand for milliseconds, not microseconds, and given there's no comment indicating that this was intentional, it probably wasn't.
2018-08-06core_timing: Make GetGlobalTimeUs() return std::chrono::microsecondsLioncash1-7/+6
Enforces the time unit being returned and also allows using the standard time utilities to manipulate it.
2018-04-20math_util: Remove the Clamp() functionLioncash1-1/+2
C++17 adds clamp() to the standard library, so we can remove ours in favor of it.
2018-01-17UI: Fix frame rate perf statsJames Rowe1-1/+1
Adds in a missing EndGameFrame when nvdrv swaps buffers
2018-01-13Remove settings issues in sdl and fix a few files that broke in mingwJames Rowe1-2/+1
2017-02-27PerfStats: Re-order and document members betterYuri Kunde Schlesner1-1/+1
2017-02-27Core: Re-write frame limiterYuri Kunde Schlesner1-0/+33
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.
2017-02-27Core: Make PerfStats internally lockedYuri Kunde Schlesner1-0/+11
More ergonomic to use and will be required for upcoming changes.
2017-02-27PerfStats: Add method to get the instantaneous time ratioYuri Kunde Schlesner1-3/+11
2017-02-27Add performance statistics to status barYuri Kunde Schlesner1-0/+53