GPU Loss and Recovery v3
Safari on iOS 27 kills WebGPU work that runs too long, and then may refuse to hand the page a GPU again. This page finds the time limit, checks whether splitting work into small pieces avoids it, and records exactly what the browser says when the GPU is lost and how long until it gives one back. Nothing leaves the phone unless you share the log.
Results
Tests
Runs one long GPU job of 0.5 s, 1 s, 1.25 s, … up to 10 s until the GPU is lost, and checks each job's answer to make sure the GPU really did the work.
6 s of work as 60 pieces of 0.1 s: one submit each (waited for), then all in one submit, then all submitted at once without waiting.
One 15 s job. Use this to test recovery without finding the limit first.
Loses the GPU on purpose (no hang), to compare recovery after a normal loss.
Loses the GPU the bad way (queued work), then waits without asking at all, asks once, and reloads. Starts at a 10 s wait, goes to 30 s, 90 s… if that fails, or shorter if it works, until it pins the lockout down. Runs on its own across reloads; keep the screen on.
- After a loss the page asks for a new GPU on a schedule (instantly, then every few seconds for 10 minutes) and logs every answer.
- If it never comes back, tap "Reload and check": the page reloads and asks straight away, to see whether a reload is the only fix.
- Keep the screen on and the page in front: switching apps can lose the GPU too, and the log notes when the page was hidden.
- Safari prints some GPU errors only to its console. Connect the phone to a Mac and keep Web Inspector open to catch them.
- On a computer, test 3 can blank the screen for a moment while the operating system resets the GPU.
This device's GPU
Log
Comparing how much memory each runtime uses to load a model? Squiggle's memtest page loads real models on WebLLM and wllama (CPU or WebGPU) and measures what's left.