#1122·obscura

Idle waits and unchanged render work keep spending CPU after page load

Author: ice-zeusCreated Sep 30, 2026Updated Sep 30, 2026

Pages keep spending CPU after load while nothing changes, and repeated measurement or capture of an unchanged document repeats work whose inputs have not changed.

Environment: adb4c1a (unchanged in a005d16), release render,stealth builds, Ubuntu 26.04 x86_64, 16 vCPU, runtime stealth enabled, loopback fixtures with JavaScript, images, animations and observers.

Measurements

Process-tree CPU through navigation plus eight seconds after load, mean of five interleaved rounds:

Fixture Browsers CPU per page Navigation Repaint
medium 1 124 ms 24 ms 128 ms
medium 10 184 ms 39 ms 128 ms
complex 1 226 ms 216 ms 170 ms
complex 10 311 ms 311 ms 171 ms

Sources

  • Idle waits (network idle, quiet windows, deadlines) poll repeatedly instead of waiting for runtime activity or the deadline.
  • DOM traversal, base URL, stylesheet and style/layout preparation are rebuilt when a document is measured or captured again without changes.
  • Static raster images are decoded and painted again for each capture, and glyph-run, shaping-plan and image metadata work is repeated.

With these reused under proper invalidation, the same fixtures in the same run use 21 to 38% less CPU on the medium and complex pages, navigate 37 to 38% faster on the complex page and repaint 29 to 45% faster, with peak RSS within about 2%.