Browse Source

vulkan: document future possibility for vsync

Right now we have to recreate the swapchain everytime vsync
/ present mode changes.
VK_EXT_swapchain_maintenance1 might remove the need for this.
However, right now there are not any drivers yet that support it.
In the future, this might be the better way to handle this situation.
niki 2 years ago
parent
commit
cd07a464fb
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/modules/graphics/vulkan/Graphics.cpp

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

@@ -2702,6 +2702,11 @@ void Graphics::setVsync(int vsync)
 	{
 		this->vsync = vsync;
 
+		// With the extension VK_EXT_swapchain_maintenance1 a swapchain recreation might not be needed
+		// https://github.com/KhronosGroup/Vulkan-Docs/blob/main/proposals/VK_EXT_swapchain_maintenance1.adoc
+		// However, there are not any drivers that support it, yet.
+		// Reevaluate again in the future.
+
 		requestSwapchainRecreation();
 	}
 }