-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VkResult is VK_SUBOPTIMAL_KHR in Android causing SwapChain to be recreated every frame #1150
Comments
What device does this happen on? I can't replicate this on my Pixel 4a, but I could test with other devices. And does this happen all the time, or only under certain conditions? |
Thanks for the fast reply and willingness to take a look... I am facing the errors on all the devices I've tested with:
Upon hearing your positive result on Pixel 4a, I grabbed a device and run it but get the same error, this is the screenshot The error happened all the time, starting from the first frame, I have just sync-ed to the latest commit 1615f95 but this issue also exist in my previous base as early as July (8b4ee59) |
I noticed this a while ago but never got around to reporting it. It depends on whether the device is held portrait or landscape (I believe the issue happens with landscape, but I'm not 100% sure of this).
|
That explains why I don't see this. I usually test in portrait mode. Thanks for the links, will take a look and hopefully fix this :) |
As noted above: I'm aware of this and will fix it at. |
swapChain.queuePresent
in VulkanExampleBase::submitFrame returns VK_SUBOPTIMAL_KHR in Android.This causes windowResize() to be called every frame, re-creating the entire swapChain.
What is the cause of this error? And is there a way to prevent this?
Any input is highly appreciated...
The text was updated successfully, but these errors were encountered: