Browse Source

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.

niki 2 years ago
parent
commit
5254417c63
1 changed files with 0 additions and 1 deletions
  1. 0 1
      src/modules/graphics/vulkan/Graphics.cpp

+ 0 - 1
src/modules/graphics/vulkan/Graphics.cpp

@@ -1173,7 +1173,6 @@ void Graphics::beginFrame()
 
 
 	if (frameCounter >= USAGES_POLL_INTERVAL)
 	if (frameCounter >= USAGES_POLL_INTERVAL)
 	{
 	{
-		vkDeviceWaitIdle(device);
 		cleanupUnusedObjects();
 		cleanupUnusedObjects();
 		frameCounter = 0;
 		frameCounter = 0;
 	}
 	}