Skip to content

Warning about suboptimal WebGPU canvas format on macOS #3

@kenrussell

Description

@kenrussell

Running https://bercon.github.io/incendium/ on macOS in Chrome, the following performance warning is printed to the console:

WebGPU canvas configured with a different format than is preferred by this device ("bgra8unorm"). This requires an extra copy, which may impact performance.

To fix this, the build time constant P_PRESENTATION_FORMAT currently hardcoded to rgba8unorm in scripts/build.py would have to be changed to instead call GPU.getPreferredCanvasFormat(). Is it feasible to do that and still keep the demo under 4K?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions