mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-27 17:17:06 +02:00
fxfxfxfxfx
This commit is contained in:
parent
04a2168041
commit
bb4e264fc4
2 changed files with 2 additions and 4 deletions
|
|
@ -200,8 +200,8 @@ bool Event::WaitFor(const std::chrono::nanoseconds& time) {
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
while (!IsSet() && _rdtsc() < target_tsc)
|
while (!IsSet() && _rdtsc() < target_tsc)
|
||||||
Common::Windows::SleepForOneTick();
|
Common::Windows::SleepForOneTick();
|
||||||
if (event.IsSet())
|
if (IsSet())
|
||||||
event.Reset();
|
Reset();
|
||||||
return true;
|
return true;
|
||||||
#else
|
#else
|
||||||
std::unique_lock lk{mutex};
|
std::unique_lock lk{mutex};
|
||||||
|
|
|
||||||
|
|
@ -63,8 +63,6 @@ void CoreTiming::Initialize(std::function<void()>&& on_thread_init_) {
|
||||||
has_started = true;
|
has_started = true;
|
||||||
|
|
||||||
// base frequency in MHz: 1ns (10^-9) = 1GHz (10^9)
|
// base frequency in MHz: 1ns (10^-9) = 1GHz (10^9)
|
||||||
auto const& caps = Common::GetCPUCaps();
|
|
||||||
[[maybe_unused]] u64 ns_scale = caps.base_frequency / 1'000;
|
|
||||||
while (!stop_token.stop_requested()) {
|
while (!stop_token.stop_requested()) {
|
||||||
while (!paused && !stop_token.stop_requested()) {
|
while (!paused && !stop_token.stop_requested()) {
|
||||||
paused_set = false;
|
paused_set = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue