fix: replace runtime waitIdle calls with a deletion queue

This commit is contained in:
2026-10-19 00:45:24 +02:00
parent 36341bb5e0
commit 997844eaa7
29 changed files with 290 additions and 101 deletions
+4 -2
View File
@@ -331,8 +331,6 @@ if (!isRunning) break;
}
}
}
gfxDevice.waitIdle();
}
void App::cleanup()
@@ -355,6 +353,10 @@ void App::cleanup()
}
};
// The one place we wait for the GPU on shutdown: the cleanup calls below destroy
// pipelines and other objects directly, which is only valid once nothing is in flight.
attempt([this] { gfxDevice.waitIdle(); });
if (customInitStarted) {
attempt([this] { customCleanup(); });
}