mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-31 05:47:12 +02:00
sleepier amd threads
This commit is contained in:
parent
f42f17e7cc
commit
39e9b0b54e
1 changed files with 2 additions and 2 deletions
|
|
@ -190,8 +190,8 @@ bool Event::WaitFor(const std::chrono::nanoseconds time) {
|
||||||
// MWAITX accepts a 32-bit input timer which determines the total number of cycles to wait for
|
// MWAITX accepts a 32-bit input timer which determines the total number of cycles to wait for
|
||||||
// NOT THE TOTAL ABSOLUTE TSC VALUE, it's just a delta
|
// NOT THE TOTAL ABSOLUTE TSC VALUE, it's just a delta
|
||||||
// BIT[1] = use a timer
|
// BIT[1] = use a timer
|
||||||
// Hint = 0: Use C1 state when sleepy (means faster wakeup but less power saving)
|
// Hint = 0: Use C2 state when sleepy (means slower wakeup but better savings)
|
||||||
_mm_mwaitx(1 << 1, 0u, cycles);
|
_mm_mwaitx(1 << 1, 1u, cycles);
|
||||||
if (!is_set.load())
|
if (!is_set.load())
|
||||||
return false;
|
return false;
|
||||||
} else
|
} else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue