Skip to content
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

Vulkan: Treat VK_SUBOPTIMAL_KHR as VK_SUCCESS on Android #8595

Merged
merged 2 commits into from Jan 31, 2020

Conversation

stenzek
Copy link
Contributor

@stenzek stenzek commented Jan 31, 2020

Android 10 seems to expect a prerotated/transformed swap chain for optimal presentation. For now, until we implement that, just ignore the hint.

See: https://twitter.com/Themaister/status/1207062674011574273

This was causing us to recreate the swap chain every frame, with an identity pretransform which would return suboptimal for the next presentation, repeat. Hence performance loss, since it's not cheap. I'm surprised the hit wasn't higher to be honest.

Fixes https://bugs.dolphin-emu.org/issues/11946

This may help us debug performance problems in the future.
Android 10 seems to expect a prerotated/transformed swap chain for optimal
presentation. For now, until we implement that, just ignore the hint.
@stenzek stenzek force-pushed the android-10-vulkan-suboptimal branch from e8df94a to 08cc731 Compare January 31, 2020 09:16
@JosJuice JosJuice merged commit 534547e into dolphin-emu:master Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants