summaryrefslogtreecommitdiffstats
path: root/src/common/x64/native_clock.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-03-21 17:23:13 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-06-27 17:35:55 +0200
commit534466754f381e90f5f6475a0c02031242a5c256 (patch)
treebac4629fa909493aec359051c76fcb4600bcc934 /src/common/x64/native_clock.cpp
parentARM/WaitTree: Better track the CallStack for each thread. (diff)
downloadyuzu-534466754f381e90f5f6475a0c02031242a5c256.tar
yuzu-534466754f381e90f5f6475a0c02031242a5c256.tar.gz
yuzu-534466754f381e90f5f6475a0c02031242a5c256.tar.bz2
yuzu-534466754f381e90f5f6475a0c02031242a5c256.tar.lz
yuzu-534466754f381e90f5f6475a0c02031242a5c256.tar.xz
yuzu-534466754f381e90f5f6475a0c02031242a5c256.tar.zst
yuzu-534466754f381e90f5f6475a0c02031242a5c256.zip
Diffstat (limited to '')
-rw-r--r--src/common/x64/native_clock.cpp3
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() {
}
accumulated_ticks += diff;
rtsc_serialize.unlock();
- return accumulated_ticks;
+ /// The clock cannot be more precise than the guest timer, remove the lower bits
+ return accumulated_ticks & inaccuracy_mask;
}
void NativeClock::Pause(bool is_paused) {