Skip to content

Pipelined Rendering: App crashes when there is no camera #3043

Closed
@cart

Description

@cart

Crashes with the following:

Oct 28 16:01:38.927 ERROR present_frames: wgpu_core::present: No work has been submitted for this frame    
Oct 28 16:01:38.932 ERROR present_frames: wgpu_core::present: No work has been submitted for this frame    
thread 'main' panicked at 'Failed to acquire next swap chain texture!: Timeout', pipelined/bevy_render2/src/view/window.rs:151:24

We should choose one of the following behaviors:

  1. Don't call "present" when there is nothing to draw for a camera
  2. Run a "clear color" pass anyway.

We should also print an error (once) when a camera is missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions