flightlessmango
flightlessmango
No we can't query it directly. But it looks like we can ask what present modes are available for the device and trust that if it's available and we've set...
I don't think present mode can be changed without recreating the swapchain, so I think we're fine
We're able to check what the app requested for present mode and apply the same logic to that as when we overwrite the present mode. I've written an implementation here...
If the present mode is not supported then it falls back to FIFO
Not all GPUs and drivers support every present mode so I would start by checking if yours does
I will add some debug info to mangohud so we can see what's going on
it's not `--present_mode VK_PRESENT_MODE_MAILBOX_KHR`, you set the int instead `mangohud vkcube --present_mode 1` This way mangohud displays the correct present mode
Can you compile mangohud in debug and see what he says about present mode?
`--buildtype=debug` should be sufficient
It appears that `MESA_VK_WSI_PRESENT_MODE` is setting present_mode after our layer, in that case we're shit out of luck