Top
Best
New

Posted by vinhnx 11 hours ago

Bypassing iOS Safari's 60 FPS Limit to Build Web Applications That Feel Native(rida.dev)
288 points | 104 commentspage 2
smcleod 1 hour ago|
By flip "Prefer Page Rendering Updates near 60fps" does the author mean turn it on, or turn it off? I'd assume on but that would suggest limiting pages to 60fps and it's the default setting in iOS 27.
normcu 5 hours ago||
Since I own a iphone 12 and have a 60hz display, I cant apply any hack related to the screen refresh rate for now... but I liked this post and if I upgrade to a newer model in the future, I'll try.
raddan 1 hour ago|
Oh, ha ha. That explains why I couldn’t see any difference.
marmarama 1 hour ago||
Interestingly the difference in smoothness is also noticeable on Android Chrome on a 120fps display.
iniekaas 9 hours ago||
This kinda felt good.
ghrl 3 hours ago||
Just yesterday I watched Zed's talk on porting GPUI to the browser for Delta and they were talking about the same limitation.
wiradikusuma 3 hours ago||
I wonder if Flutter apps (targeting web) can get this "for free" if the framework adopt this approach.
2001zhaozhao 7 hours ago||
Wow very useful for my webgame! Apple pls don't notice
andai 5 hours ago|
What kind of game are you working on?
troupo 5 hours ago||
> If you’re on iOS Safari, you’ll immediately be able to tell which

I had to scroll multiple times to see the difference.

While the effort is commendable, I feel it's largely wasted.

ipsento606 16 minutes ago||
I had to concentrate incredibly hard to notice any difference, and even then, I still think there's a chance I'm imagining it
trumbitta2 3 hours ago|||
Same. Only I never noticed any difference on my iPhone 15 Pro.
CGamesPlay 10 hours ago||
That "liquid glass" scroll tracker widget is the best ocular migraine simulator I've ever encountered. If you've ever wanted to know what an ocular migraine looks like, look a few inches away from that thing and scroll the page.
jakespencer 9 hours ago||
Oh wow, you are right. I had to click away because I started feeling sick by association.
trymas 7 hours ago|||
Same, 5 seconds after scrolling and seeing that effect gave me a sense of sea-sickness and migraine (as you well said, probably just by association).
ridafkih 7 hours ago|||
Author here, I've added an option to hide it under the menu for future ocular migraine havers!
ale42 5 hours ago|||
I might have found it cool, if it has at least some hint of a material. There, is perfectly transparent black distortions on a black background, so very weird and very distracting, whatever purpose it serves.
JohnTHaller 9 hours ago||
This is accurate. Had a migraine aura last week.
jkahrs595 9 hours ago|
> If you’re on iOS Safari

I am.

> you’ll immediately be able to tell which is which

I cannot. lol

sitharus 8 hours ago||
Same, looks identical to me. Tried several different motions as well but can’t pick which is which.
ckaik 7 hours ago||
Same as well.

I'm on an iPhone with ProMotion and both of these are running at 120 fps here. I thought I was going mad, so I had to dig into it a little, even if it's just to provide op with more information.

As far as I could tell (Settings.app's Search seems useless) there are three settings you could engage to influence the refresh rate of websites in Safari:

- Low Power Mode

- "Prefer Rendering Updates at 60Hz" Feature Flag in Safari - which is enabled by default

- Limit Refresh Rate in Accessibility -> Motion

I didn't try Low Power Mode, but the Accessibility setting did the trick for me and I was immediately able to see the difference.

Not sure what's causing this. I'm on an iPhone 15 Pro Max running iOS 27.0.1.

kalev 6 hours ago|||
Only iPhone 13 Pro and Pro Max models and newer support adaptive refresh rates of up to 120Hz, which are the devices this post is specifically aimed at.
MBCook 8 hours ago|||
Not all iOS devices have 120 Hz screens.
hnlmorg 5 hours ago||
I’m on the Duo and I didn’t notice anything beyond what could be reasonably argued as a placebo effect.
ridafkih 5 hours ago||
If you shake your hand in front of a strobe light, you should be able to count the afterimages, as if your hand was copied into multiple places in the same instant.

Same goes here. If you go to the first two grids, and you shake the square until you can count the afterimages, check to see if one shows more afterimages than the other despite the same speed.

If your device is genuinely limited to 60Hz for any reason or another, you'll see a little warning icon on the top-right.

It might be easier in Low Power Mode, as well. This'll reduce the requestAnimationFrame loop to 30 Hz, but the higher refresh rate examples in this post will show at 60 Hz.

hnlmorg 1 hour ago||
If it takes that much effort then what’s the actual benefit of this vs the trade offs (battery life, more complicated code base and all the edge case rendering glitches)?
convivialdingo 8 hours ago|||
My test was to rapidly wiggle the boxes up and down and I could see 4 shadows on one and 8 on the other. Definitely a difference.
Nursie 9 hours ago|||
Likewise. Maybe it’s my old-man (47) eyes, but I saw no difference!
Barbing 6 hours ago||
They were night and day. iPhone 17 Pro, iOS 27 (not in low power mode)
More comments...