소스 검색

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 3 년 전
부모
커밋
cd07a464fb
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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();
 	}
 }