mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 13:25:45 +00:00
X64 Clock: Reduce accuracy to be less or equal to guest accuracy.
This commit is contained in:
parent
c22d3e1e18
commit
1cc7c426df
3 changed files with 10 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue