ImDebugger: Fix issue with HLE Modules window always showing, more granular sleep logging

This commit is contained in:
Henrik Rydgård committed 2024-11-21 15:48:18 +01:00
1 parent 659af60613
commit 5a3eeb9d9b
5 files changed
+9 -6

No files matched your search

+3 -3
View File
@@ -32,10 +32,10 @@
FrameTiming g_frameTiming;
void WaitUntil(double now, double timestamp) {
void WaitUntil(double now, double timestamp, const char *reason) {
#ifdef _WIN32
while (time_now_d() < timestamp) {
sleep_ms(1, "wait-until"); // Sleep for 1ms on this thread
sleep_ms(1, reason); // Sleep for 1ms on this thread
}
#else
const double left = timestamp - now;
@@ -71,7 +71,7 @@ void FrameTiming::DeferWaitUntil(double until, double *curTimePtr) {
void FrameTiming::PostSubmit() {
if (waitUntil_ != 0.0) {
WaitUntil(time_now_d(), waitUntil_);
WaitUntil(time_now_d(), waitUntil_, "post-submit");
if (curTimePtr_) {
*curTimePtr_ = waitUntil_;
curTimePtr_ = nullptr;