Closed
Description
Bevy version
Latest git
Operating system & version
Fedora
What you did
cargo run --example 3d_scene_pipelined
What you expected to happen
The scene should render without flickering.
What actually happened
Sometimes the scene stays blank. Other times, it flickers between the correct frame and a blank frame.
This seems to be caused by the changes in #3209
Additional information
The scene runs at 40fps on my laptop. Most time seems to be spent in light clustering:
- update_clusters: 5ms
- assign_lights_to_clusters: 9ms
- prepare_clusters: 3ms
Improving the performance of the clustering might fix this issue, but the real issue seems to be that clear happens every frame, while new frames might not be ready yet, leading to the blank frames.
If I go to a commit right before the ClearPass, then the scene renders as expected.