Skip to content

Track Occluded from Winit and don't attempt to render #23504

Description

@ChristopherBiscardi

In the wgpu 29 update PR we silenced a log when we see wgpu::CurrentSurfaceTexture::Occluded.

This information is also provided by winit as an event, and we could potentially track that information to prevent even attempting to render.

It is unknown if this has any significant performance win, but should be benchmarked to check if attempted, as this is an optimization to the current functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenA-WindowingPlatform-agnostic interface layer to run your app in

    Projects

    • Status
      Needs SME Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions