fxfxfxfxfx

This commit is contained in:
lizzie 2026-05-23 20:12:13 +00:00
parent f002f1e7b6
commit 34dd8c8ebd
2 changed files with 2 additions and 4 deletions

View file

@ -200,8 +200,8 @@ bool Event::WaitFor(const std::chrono::nanoseconds& time) {
#ifdef _WIN32
while (!IsSet() && _rdtsc() < target_tsc)
Common::Windows::SleepForOneTick();
if (event.IsSet())
event.Reset();
if (IsSet())
Reset();
return true;
#else
std::unique_lock lk{mutex};

View file

@ -63,8 +63,6 @@ void CoreTiming::Initialize(std::function<void()>&& on_thread_init_) {
has_started = true;
// 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 (!paused && !stop_token.stop_requested()) {
paused_set = false;