vulkan: remove unnecessary vkDeviceWaitIdle

Since we are only cleaning up objects that haven't been used in the
last 5000 frames, we do not need to wait to delete them.
This commit is contained in:
niki
2023-05-12 12:47:13 +02:00
parent 332b456131
commit 5254417c63
-1
View File
@@ -1173,7 +1173,6 @@ void Graphics::beginFrame()
if (frameCounter >= USAGES_POLL_INTERVAL)
{
vkDeviceWaitIdle(device);
cleanupUnusedObjects();
frameCounter = 0;
}