performance_check can't start a WebGPU-only game: its Chrome has no graphics card, so it reports error_at_start
Missing
What I was doing: uploading a version of a game that draws with WebGPU only (no WebGL fallback), with npx @zaisma/cli upload.
What happened: the scan passed, but the version's performance_check ran in "Chrome 152 on a computer with no graphics card", where navigator.gpu.requestAdapter() finds no adapter. The game showed its own "can't start on this GPU" message, and the check reported:
error_at_start The game didn't start on this GPU. Error: gpu_no_adapter: … webgpu found no adapters at game.js:2 while starting.
no_frame_drawn Nothing was drawn in 120 seconds, even after a click.The upload command also waited the full 120 seconds for a frame before it finished.
Expected: either the check can start a WebGPU game, or it says plainly that it couldn't judge this one, instead of reporting an error with "fix the error, then upload again" when nothing is wrong with the game.
Why it matters: for a WebGPU-only game every version will carry error_at_start and no_frame_drawn, so those notes stop meaning anything, and a real start-up error would hide among them. loading_duration_sec and the start sizes are always null too, so the check tells such a game nothing. An AI following the note's fix would go looking for a bug that isn't there.
Suggestions, either would do:
- Run the check's Chrome with a software WebGPU adapter, so WebGPU games start and the load numbers are real. There is still no frame rate, as now.
- Or notice that the page asked for a WebGPU adapter and got none, and report one note that says so, such as
needs_webgpu: "This game needs WebGPU, which the check's Chrome doesn't have, so it couldn't be started here." Skip the 120-second wait in that case.
To make it happen again: upload any page that calls navigator.gpu.requestAdapter() and stops when it answers null, then read the version's performance_check.