Skip to content

Commit

Permalink
Fix potential wonkiness caused by recent changes to sleepless window …
Browse files Browse the repository at this point in the history
…thread
  • Loading branch information
Kaldaien committed Dec 15, 2024
1 parent f67c9ab commit baeee78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1281,7 +1281,7 @@ SleepEx_Detour (DWORD dwMilliseconds, BOOL bAlertable)
SK::Framerate::events.getMessagePumpStats ().wake (std::max (1UL, dwMilliseconds));

auto skip_sleep =
SK_Thread_WaitWhilePumpingMessages (0, bAlertable, &pTLS);
SK_Thread_WaitWhilePumpingMessages (dwMilliseconds, bAlertable, &pTLS);

// Check for I/O Wait Completion Before Going Sleepless
if (bAlertable)
Expand Down

0 comments on commit baeee78

Please sign in to comment.