# This Developer Broke iOS Safari's 60 FPS Ceiling on Canvas

Original title: Bypassing iOS Safari's 60 FPS Limit to Build Web Applications That Feel Native

> Hacker News story 50637890 · language: en · submitted 2026-11-25
> Web version: https://zeli.app/story/50637890
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 376 · by [vinhnx](<https://news.ycombinator.com/user?id=vinhnx>) · 💬 130
[original](<https://rida.dev/blog/bypassing-ios-safari-60-fps-limit>) · [HN discussion](<https://news.ycombinator.com/item?id=50637890>)

## Summary

iOS Safari caps requestAnimationFrame and canvas rendering at 60 Hz even on 120 Hz screens, unless you flip a buried developer flag. Rida F'kih got around it: invisible scrollable "controllers" feed input at a full 120 Hz, and pushing frames through an OffscreenCanvas bypasses the rendering throttle entirely. The result is WebGL-driven Liquid Glass effects and a PWA clone of Ando's app that he kept mistaking for the native one.

## Key quote

> In WebKit on iOS, if we create a canvas element and call transferControlToOffscreen, we get an OffscreenCanvas back. The original canvas element becomes a placeholder, and WebKit skips waiting for the next rendering pass when an OffscreenCanvas pushes a frame.

## HN discussion (130 comments)

### [ksec](<https://news.ycombinator.com/item?id=50640499>)

> I thought the demo linked to twitter was much more impressive. [1] I can't believe that was web only and not native app. Absolutely blows my mind how far we have come. I know it is prototype and there are bounds to be some edge case still not polished but I think this is the first time ever Web has native app quality, and this is without much JavaScripts.
>
> [1]https://x.com/ridafkih/status/2122834693611819451

### [derangedHorse](<https://news.ycombinator.com/item?id=50641931>)

> I only saw a subtle difference in the first example between the scrollable square canvases, but I’m sure there are cases where it would be more noticeable. Nevertheless, this post was an interesting read.

### [andai](<https://news.ycombinator.com/item?id=50639966>)

> That glass effect is very cool but very distracting.
>
> There's a "hide scroll tracker" toggle in the hamburger menu which hides it.

### [srcreigh](<https://news.ycombinator.com/item?id=50638744>)

> What an incredible post. Not only the bypass , but the method of hacking through WebKit source to find UX workarounds.

### [afavour](<https://news.ycombinator.com/item?id=50641755>)

> In case you’re wondering “why isn’t 120fps enabled by default”: on the native side iOS selectively enables it for transitions that cover a lot of the screen. If you use SwiftUI or UIKit it’s done for you but there are switches on CAAnimation (IIRC) that control it.
>
> The web has no equivalent. So it’s all 120hz all the time, or not. And that would drain the battery more than Apple would like.

### [lucideer](<https://news.ycombinator.com/item?id=50640996>)

> Haven't had a chance yet to check this on iOS yet, but just to mention for those who only have access to iOS, I expected the disclaimer at the top of the page to imply that the differences between the demos would be imperceptible on Android. They aren't - the canvas is significantly worse.
>
> I guess this may be a worthy trade-off if you're confident your userbase is 100% iOS.

### [petrichorko](<https://news.ycombinator.com/item?id=50640143>)

> Also interesting thing is that I can use iPad’s trackpad to pan the scrollable area-based component, while the first one does nothing. Not sure if that’s related to just some disconnected JS callback, but it surprised me that it works well out of box. I use mine as a tiny laptop, and it bothers me to reach out and touch the screen on some websites that just ignore this input option.

### [bruce343434](<https://news.ycombinator.com/item?id=50641335>)

> When scrolling past the isometric scrolling thing in firefox, it crashes the tab. But this is a very cool article and even though I'm on linux desktop, the OffscreenCanvas technique is snappier and I will be adapting it. Thanks!

---

## Cite

- Page: https://zeli.app/story/50637890
- Date: 2026-11-25
- Source: rida.dev (https://rida.dev/blog/bypassing-ios-safari-60-fps-limit)
- Hacker News: https://news.ycombinator.com/item?id=50637890

## Other languages

- zh: https://zeli.app/zh/story/50637890 · markdown: https://zeli.app/zh/story/50637890.md
- ja: https://zeli.app/ja/story/50637890 · markdown: https://zeli.app/ja/story/50637890.md
- ko: https://zeli.app/ko/story/50637890 · markdown: https://zeli.app/ko/story/50637890.md
- de: https://zeli.app/de/story/50637890 · markdown: https://zeli.app/de/story/50637890.md
- es: https://zeli.app/es/story/50637890 · markdown: https://zeli.app/es/story/50637890.md
- ru: https://zeli.app/ru/story/50637890 · markdown: https://zeli.app/ru/story/50637890.md
