gfx-rs/wgpu

Shadow Flickering

Closed this issue · 0 comments

Description
Shadows will constantly flicker in the 3D test scene on Linux, Vulkan, AMD GPU.

Potential Fix
Someone linked me this, which worked.
https://github.com/bevyengine/bevy/blob/release-0.14.2/crates/bevy_render/src/renderer/mod.rs#L393-L400
Change force_serial to true.
Looks as if it's a problem on windows too, and someone has fixed it there, but not fixed it for linux.

Repro steps
https://bevyengine.org/examples/3d-rendering/3d-scene/
Happens here if you're using linux, vulkan, amd gpu.

Expected vs observed behavior
Expect a stable shadow, looks like the absence of light.
Get a constantly flickering shadow, like a rave but not as loud or annoying.

Stack
Linux (I'm using arch endeavour but don't think it matters), Vulkan backend with amd gpu/drivers.