mirror of
https://github.com/Drezil/dear-imgui.hs.git
synced 2024-11-22 16:57:00 +00:00
Use FIFO for vulkan demo (#188)
This commit is contained in:
parent
d40fa4f6db
commit
eec8b57ce8
@ -408,11 +408,9 @@ createSwapchain physicalDevice device surface surfaceFormat imageUsage imageCoun
|
|||||||
|
|
||||||
let
|
let
|
||||||
presentMode :: Vulkan.PresentModeKHR
|
presentMode :: Vulkan.PresentModeKHR
|
||||||
presentMode
|
presentMode =
|
||||||
| Vulkan.PRESENT_MODE_MAILBOX_KHR `elem` presentModes
|
Vulkan.PRESENT_MODE_FIFO_KHR -- run at presentation rate
|
||||||
= Vulkan.PRESENT_MODE_MAILBOX_KHR
|
-- Vulkan.PRESENT_MODE_MAILBOX_KHR -- max-FPS alternative for benchmarks, input lag debugging, etc.
|
||||||
| otherwise
|
|
||||||
= Vulkan.PRESENT_MODE_FIFO_KHR
|
|
||||||
|
|
||||||
Vulkan.SurfaceCapabilitiesKHR{currentExtent, currentTransform} = surfaceCapabilities
|
Vulkan.SurfaceCapabilitiesKHR{currentExtent, currentTransform} = surfaceCapabilities
|
||||||
Vulkan.SurfaceFormatKHR{format=fmt, colorSpace=csp} = surfaceFormat
|
Vulkan.SurfaceFormatKHR{format=fmt, colorSpace=csp} = surfaceFormat
|
||||||
|
Loading…
Reference in New Issue
Block a user