mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 16:55:46 +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
|
@ -31,6 +31,11 @@ public:
|
|||
private:
|
||||
u64 GetRTSC();
|
||||
|
||||
/// value used to reduce the native clocks accuracy as some apss rely on
|
||||
/// undefined behavior where the level of accuracy in the clock shouldn't
|
||||
/// be higher.
|
||||
static constexpr u64 inaccuracy_mask = ~(0x100 - 1);
|
||||
|
||||
SpinLock rtsc_serialize{};
|
||||
u64 last_measure{};
|
||||
u64 accumulated_ticks{};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue