wgpu icon indicating copy to clipboard operation
wgpu copied to clipboard

[Android] Texture is flickering with Vulkan backend

Open Gordon-F opened this issue 2 years ago • 3 comments

Description Texture is flickering with Vulkan backend. Works well with OpenGL backend. (on device screen image flickering faster).

https://user-images.githubusercontent.com/3227317/149007999-b52358b9-bcc9-49ec-a5d7-104c71c671cb.mp4

https://user-images.githubusercontent.com/3227317/149008030-9bff246d-999a-40d5-a717-6ab435256387.mp4

Repro steps Run bevy android example (https://github.com/Gordon-F/bevy/tree/9cc7a3520cb80ede22c350987515910ea70d3356/examples/android)

Extra materials Every frame error:

vkAcquireNextImageKHR: non-infinite timeouts not yet implemented

Platform GPU: Mali-T830 Android: 8.0 (API 26)

Gordon-F avatar Jan 17 '22 10:01 Gordon-F

Interesting! And it appears that the target platform may be not fully Vulkan-conformant, based on the error message. Could you try changing the PresentMode inside SurfaceConfiguration and see how it affects the flicker? Also, would there be any tools on Android to debug this? e.g. attempting to capture the workflow leading to an empty frame.

kvark avatar Jan 17 '22 19:01 kvark

Any progress on this?

cwfitzgerald avatar Jun 06 '22 03:06 cwfitzgerald

@kvark @Gordon-F @cwfitzgerald did you try to type ?gl in the search field and restart the app? Did it help?

biodranik avatar Aug 14 '22 12:08 biodranik

Are we sure we respect VUID-vkAcquireNextImageKHR-surface-07783?

image

teoxoy avatar Feb 21 '23 15:02 teoxoy