Context: libsdl-org/SDL#12837
If I'm reading this issue correctly, it's possible that a setup supports Mailbox present mode, but not necessarily with SDR swapchain composition, notably with the Steam Deck.
Therefore, I believe a check for SDR swapchain composition support (when we're switching away from VSYNC) is missing, to prevent runtime errors to better handle a failure to set the present mode.
|
if (GraphicsDevice.SupportsPresentMode(MainWindow, PresentMode.Mailbox)) |
|
GraphicsDevice.SetSwapchainParameters(MainWindow, SwapchainComposition.SDR, PresentMode.Mailbox); |
Context: libsdl-org/SDL#12837
If I'm reading this issue correctly, it's possible that a setup supports
Mailboxpresent mode, but not necessarily withSDRswapchain composition, notably with the Steam Deck.Therefore, I believe a check for
SDRswapchain composition support (when we're switching away from VSYNC) is missing,to prevent runtime errorsto better handle a failure to set the present mode.MoonWorks/src/Game.cs
Line 211 in 0b28ffe
MoonWorks/src/Game.cs
Line 213 in 0b28ffe