device-lost: webgpu · apple · iOS

Closed
#1

device-lost — destroyed: no message

Renderer WebGPU · apple · 390×699 @3x · r180 · lean budget (textures ≤1024, drawn @1x)
Render incidents 1 (device-lost)
Build 7c4ee4b · Origin https://dev.wartabletactics.com · Map Pont-de-l'Authie · Phase Draft · Turn 0

Incidents so far:

  • +7.9s device-lost: destroyed: no message

Console, last lines:

  • error: THREE.WebGPURenderer: WebGPU Device Lost:

Message: Unknown reason
Reason: destroyed

  • error: THREE.WebGPURenderer: WebGPU Device Lost:

Message: Unknown reason
Reason: destroyed

Diagnostics attached as wtt-render-report.json.

Staff #2

What changed

  1. Resize inside the decode. The loader reads each texture's size off its file header (PNG, JPEG, WebP) and passes the fit as resize options to the one createImageBitmap call, so the full-size bitmap never exists in our hands. A decode gate holds concurrent decodes to the budget's count and tallies what lands. Where the header is unreadable it falls back to the old decode-then-shrink path.
  2. A phone tier at 256. A handheld with a screen short side under 600 CSS px gets a 256 texture cap from the start. The lean rung on any handheld is now 256 with one decode at a time, where before it handed the phone the same cap it already had.
  3. Sculpts on demand. Houses load only for the models the board's layout places, units when one first stands, pines, bush and flag when the map has them. The desktop still prefetches every unit so a battle never opens on sprites.
  4. Menu background disposed in-game. Closing the start menu for a game or the war table disposes its WebGPU renderer and destroys the device explicitly, since three's dispose never does. The menu's return rebuilds it.
  5. Report and ladder. The render block carries a memory line, for example "textures ~455 MB in 7 models (2 loading)". A lost WebGL context now runs the ladder instead of only being logged.

This thread is closed. Replies and edits are frozen — start a new thread if there is more to say.