summaryrefslogtreecommitdiffstats
path: root/src/core/perf_stats.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* core/core: Replace includes with forward declarations where applicableLioncash2018-08-311-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.
* Merge pull request #840 from FearlessTobi/port-3353bunnei2018-08-221-4/+13
|\ | | | | Port #3353 from Citra: "citra-qt: Add customizable speed limit target "
| * Port #3353 from CitrafearlessTobi2018-08-211-4/+13
| |
* | perf_stats: Change MAX_LAG_TIME_US to an appropriate valueMerryMage2018-08-211-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.
* perf_stats: Correct literal used for MAX_LAG_TIME_USLioncash2018-08-061-2/+2
| | | | | ms is shorthand for milliseconds, not microseconds, and given there's no comment indicating that this was intentional, it probably wasn't.
* core_timing: Make GetGlobalTimeUs() return std::chrono::microsecondsLioncash2018-08-061-7/+6
| | | | | Enforces the time unit being returned and also allows using the standard time utilities to manipulate it.
* math_util: Remove the Clamp() functionLioncash2018-04-201-1/+2
| | | | | C++17 adds clamp() to the standard library, so we can remove ours in favor of it.
* UI: Fix frame rate perf statsJames Rowe2018-01-171-1/+1
| | | | Adds in a missing EndGameFrame when nvdrv swaps buffers
* Remove settings issues in sdl and fix a few files that broke in mingwJames Rowe2018-01-131-2/+1
|
* PerfStats: Re-order and document members betterYuri Kunde Schlesner2017-02-271-1/+1
|
* Core: Re-write frame limiterYuri Kunde Schlesner2017-02-271-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.
* Core: Make PerfStats internally lockedYuri Kunde Schlesner2017-02-271-0/+11
| | | | More ergonomic to use and will be required for upcoming changes.
* PerfStats: Add method to get the instantaneous time ratioYuri Kunde Schlesner2017-02-271-3/+11
|
* Add performance statistics to status barYuri Kunde Schlesner2017-02-271-0/+53