▸ Bypassing iOS Safari's 60 FPS Limit
Jake MarshReally awesome research and writeup from Rida F’kih. The problem:
WebKit limits requestAnimationFrame to just 60 Hz on a 120 Hz screen, and on a regular page, touch and pointer events are held to that same rate.
His way around it starts with the one thing that already feels smooth on an iPhone:
The reason it feels so nice is that scrolling is the responsibility of the compositor. It runs in its own thread.
So the input comes from an invisible scrollable “controller” element. He reads its scroll position from a MessageChannel loop timed to vsync, with an empty requestAnimationFrame loop running alongside that makes Safari flush pending scroll positions. The output comes from a canvas handed to transferControlToOffscreen:
WebKit (following the HTML specification’s recommendation) skips waiting for the next rendering pass when an OffscreenCanvas pushes a frame.
Jackpot. We now have 120 FPS rendering on iOS WebKit canvases.
He measured it by filming an iPhone 18 Pro at 240 FPS:
Over three seconds of dragging, the controller version averaged 118 FPS while the pointer events version held a steady 60. Even in Low Power Mode, which traditionally limits you to 30, this approach gets you 60.
The demos run right in the post, including a Liquid Glass tab bar rendered with WebGL. He notes Apple could close this off at any time, and says he’d rather Apple turn on ProMotion for websites.