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