diff options
| author | 2020-03-21 12:23:13 -0400 | |
|---|---|---|
| committer | 2020-06-27 11:35:55 -0400 | |
| commit | 534466754f381e90f5f6475a0c02031242a5c256 (patch) | |
| tree | bac4629fa909493aec359051c76fcb4600bcc934 /src/common/x64/native_clock.cpp | |
| parent | ARM/WaitTree: Better track the CallStack for each thread. (diff) | |
| download | yuzu-534466754f381e90f5f6475a0c02031242a5c256.tar.gz yuzu-534466754f381e90f5f6475a0c02031242a5c256.tar.xz yuzu-534466754f381e90f5f6475a0c02031242a5c256.zip | |
X64 Clock: Reduce accuracy to be less or equal to guest accuracy.
Diffstat (limited to 'src/common/x64/native_clock.cpp')
| -rw-r--r-- | src/common/x64/native_clock.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/x64/native_clock.cpp b/src/common/x64/native_clock.cpp index 926f92ff8..f1bc60fd2 100644 --- a/src/common/x64/native_clock.cpp +++ b/src/common/x64/native_clock.cpp | |||
| @@ -62,7 +62,8 @@ u64 NativeClock::GetRTSC() { | |||
| 62 | } | 62 | } |
| 63 | accumulated_ticks += diff; | 63 | accumulated_ticks += diff; |
| 64 | rtsc_serialize.unlock(); | 64 | rtsc_serialize.unlock(); |
| 65 | return accumulated_ticks; | 65 | /// The clock cannot be more precise than the guest timer, remove the lower bits |
| 66 | return accumulated_ticks & inaccuracy_mask; | ||
| 66 | } | 67 | } |
| 67 | 68 | ||
| 68 | void NativeClock::Pause(bool is_paused) { | 69 | void NativeClock::Pause(bool is_paused) { |