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?
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_FORMATcurrently hardcoded torgba8unorminscripts/build.pywould have to be changed to instead callGPU.getPreferredCanvasFormat(). Is it feasible to do that and still keep the demo under 4K?