diff options
| author | 2021-01-01 23:28:55 +0100 | |
|---|---|---|
| committer | 2021-01-02 00:43:47 +0100 | |
| commit | d4f871cb6a616f6b1a8a76049e042118571f3dd3 (patch) | |
| tree | 0dc75cf49ce8240fb282b522dc2989eb8894b979 /src/common/x64/native_clock.h | |
| parent | Merge pull request #5271 from MerryMage/rm-mem-Special (diff) | |
| download | yuzu-d4f871cb6a616f6b1a8a76049e042118571f3dd3.tar.gz yuzu-d4f871cb6a616f6b1a8a76049e042118571f3dd3.tar.xz yuzu-d4f871cb6a616f6b1a8a76049e042118571f3dd3.zip | |
X86/NativeClock: Improve performance of clock calculations on hot path.
Diffstat (limited to 'src/common/x64/native_clock.h')
| -rw-r--r-- | src/common/x64/native_clock.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/x64/native_clock.h b/src/common/x64/native_clock.h index 6d1e32ac8..a7b1ee9e0 100644 --- a/src/common/x64/native_clock.h +++ b/src/common/x64/native_clock.h | |||
| @@ -41,6 +41,13 @@ private: | |||
| 41 | u64 last_measure{}; | 41 | u64 last_measure{}; |
| 42 | u64 accumulated_ticks{}; | 42 | u64 accumulated_ticks{}; |
| 43 | u64 rtsc_frequency; | 43 | u64 rtsc_frequency; |
| 44 | |||
| 45 | // factors | ||
| 46 | u64 ns_rtsc_factor{}; | ||
| 47 | u64 us_rtsc_factor{}; | ||
| 48 | u64 ms_rtsc_factor{}; | ||
| 49 | u64 clock_rtsc_factor{}; | ||
| 50 | u64 cpu_rtsc_factor{}; | ||
| 44 | }; | 51 | }; |
| 45 | } // namespace X64 | 52 | } // namespace X64 |
| 46 | 53 | ||