Skip to content

The new ClearPass leads to flickering when fps is less than 60 #3307

Closed
@folke

Description

@folke

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-AccessibilityA problem that prevents users with disabilities from using BevyA-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behaviorS-BlockedThis cannot move forward until something else changesS-Needs-InvestigationThis issue requires detective work to figure out what's going wrong

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions