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)
291 points | 106 commentspage 3
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 9 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 9 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 7 hours ago||
They were night and day. iPhone 17 Pro, iOS 27 (not in low power mode)
shortercode 4 hours ago||
It’s fun that Fable completely fails on this. OffscreenCanvas is _designed_ to bypass paint and go straight to the compositor and it’s not a new feature. It’s one of the really great things about OffscreenCanvas. Primarily it’s to allow a worker to update the canvas without worrying about the main context being blocked by user interaction, layout, paint, etc.

I couldn’t have told you if this would have triggered the compositor at 120Hz but if anything worked it would be this.

pjmlp 4 hours ago||
To me it sounds like discussing the purity of audio sound quality when using gold coated audio cables for those speakers that cost as much as a house, connected to a top end turn tablet.

Interesting from technical point of view, could not care less for all practical purposes.

ubercow13 2 hours ago|
The difference between 60 and 120fps is nothing like the placebo level, completely non-existent differences between many expensive audio cables.
pjmlp 1 hour ago||
So far it seems a waste of money to buy 120fps capable devices.
ubercow13 57 minutes ago||
To each their own. It's probably the biggest upgrade in overall computer and device experience in the last decades in my opinion, along with SSDs.
__alexs 3 hours ago||
My phone battery is crying just looking at this.
wodenokoto 5 hours ago||
> If you’re on iOS Safari, you’ll immediately be able to tell which is which because one refreshes at most 60 times a second in a renderer pass, while the other uses the compositor.

No. The difference has nothing to do with refresh rate. They move differently using different logic. I can only tell them apart because one has inertia and keeps moving after release. If I keep my thumb down they are the same.

IPhone 17, iOS 26

ridafkih 5 hours ago||
Curious, can you tell the difference if you turn on Low Power Mode? The one on the left will drop to 30 Hz while the one on the rate will pin to the device refresh rate of 60 Hz. I am starting to think some people genuinely can't tell the difference between 60 Hz and 120 Hz.
ipsento606 24 minutes ago|||
I couldn't tell the difference between 60 and 120, but yes, turning on low power mode made the difference very obvious to me.
guardiandemon 2 hours ago||||
Too many years playing vidya so I can tell. Also notice weird frame rates on OLED TV sometimes.

Midrange Android phones have had 120hz screens for years! Although I'll be the first to admit that specs aren't everything.

true_religion 4 hours ago||||
I honestly can't. I can barely tell the difference between 30Hz and 60Hz if the action isn't high speed.
latexr 4 hours ago|||
> I am starting to think some people genuinely can't tell the difference between 60 Hz and 120 Hz.

That’s certain. Lots of people also can’t perceive the soap opera effect, even if you turn off frame interpolation on their TV and show them the before and after.

https://en.wikipedia.org/wiki/Soap_opera_effect

j_leboulanger 4 hours ago|||
Agreed, if I leave my finger on the screen there is absolutely no difference.

If I lift my finger then I see the inertia, but that's the only difference.

mock-possum 4 hours ago||
Yeah same, they both act exactly the same, except one you can fling out of bounds. I’d never know there was supposed to be some sort of magical ‘native feel’ to one of them.

iPhone SE 2nd gen, ios 27.2.1

latexr 4 hours ago|||
Your iPhone, like mine, has a 60Hz screen, so it physically can’t show the supposed difference.
throwaway63467 5 hours ago||
Is this the same on other browsers or just a WebKit thing? Apple is know for deliberately holding back web technologies in their browser to make their apps look better in comparison, this might just be another example.
Rodmine 6 hours ago||
Safari is one of the greatest pieces of niche applications. It has to be made exactly good enough for web browsing that users don’t feel like downloading an alternative but also exactly bad enough for building web apps on it so that developers are forced to create a native iOS app.
kevincox 1 hour ago||
There are no alternatives on iOS. Apple doesn't allow it.

But yes, Safari seems to be made just bad enough that people are forced to make apps even for things that don't benefit from being apps.

Alifatisk 6 hours ago|||
> It has to be made exactly good enough for web browsing that users don’t feel like downloading an alternative

Is there really any alternatives? I use FF on iOS, but its still wrapped in Webkit, not Gecko.

hurfdurf 5 hours ago||
Why there are still no non-WebKit browsers on iOS | 599 points | 5 days ago| 336 comments | https://news.ycombinator.com/item?id=50575644

https://blog.mozilla.org/en/mozilla/internet-policy/apple-io...

AlexandrB 16 minutes ago|||
Believe it or not I use Safari willingly and happily on macOS. No other browser is as easy on the battery and the lack of some web features is a selling point for me. I don't want to give websites access to hardware peripherals. Ever. Thank you.
rimliu 6 hours ago||
"Forced".

As someone proficient with both ways of building things: if you do know native development (and I mean "know", not "dabbled for a couple of hours") you'd need really to force me to do apps the other way.

SV_BubbleTime 10 hours ago||
I have nothing to add on IOS or a 60fps website cap… but I did notice the “glass” UI element in the top left corner and how much more glass looking that is than whatever Apple tried to do. The chromatic aberrations are a nice touch.
marcellus23 10 hours ago|
Liquid Glass also has chromatic aberration. That sample on the website is actually pretty much exactly what certain configurations of Liquid Glass looks like.
More comments...