mirror of
https://github.com/love2d/love.git
synced 2026-08-14 10:13:46 +02:00
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:
@@ -1173,7 +1173,6 @@ void Graphics::beginFrame()
|
||||
|
||||
if (frameCounter >= USAGES_POLL_INTERVAL)
|
||||
{
|
||||
vkDeviceWaitIdle(device);
|
||||
cleanupUnusedObjects();
|
||||
frameCounter = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user