mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-27 02:07:10 +02:00
fx invariant
This commit is contained in:
parent
259fe5f22c
commit
6cb13e5bfa
1 changed files with 2 additions and 2 deletions
|
|
@ -29,8 +29,8 @@ void MicroSleep(u64 rem) {
|
|||
// At 4 GHz, 100K cycles is 25us
|
||||
auto& caps = GetCPUCaps();
|
||||
u32 cycles = caps.invariant_tsc
|
||||
? 1'000'000U
|
||||
: rem * (caps.tsc_frequency / 1000000ULL);
|
||||
? rem * (caps.tsc_frequency / 1000000ULL)
|
||||
: 1'000'000ULL;
|
||||
if (caps.waitpkg) {
|
||||
constexpr auto RequestC02State = 0U;
|
||||
_tpause(RequestC02State, FencedRDTSC() + cycles);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue