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)
299 points | 106 commentspage 4
thebytesbuilder 1 hour ago|
[flagged]
nanapipirara 7 hours ago||
Please keep liquid glass out of websites… It is very distracting and useless.
matsemann 7 hours ago|
I guess in this post it served a purpose, it was the example of how a full site could react in 120 Hz to inputs.

But man, is that effect how annoying it is to use iOS now?

leokennis 6 hours ago|||
I noticed that glass thing in the top right immediately on my iPhone.

Especially because since iOS27, there is a slider to put Liquid Glass into a less transparent look [1] so the glass pill on this site stood out immediately as "the bad old iOS26 days" of Liquid Glass.

With the newly possible iOS27 look, I'd say it is a perfect blend of "looks nice" and "still readable".

[1] https://i.imgur.com/6cRn9Gs.jpeg

hnlmorg 6 hours ago||
Agreed. This feels like one of the few times apple have listened to customer feedback.

But then it was also such a massive own goal in terms of design it would have been ridiculous not to (even more ridiculous than the fact they ever released their platforms that way to begin with!)

steve1977 5 hours ago||
It's probably as close as we can get to Apple admitting they were wrong.
ridafkih 7 hours ago||||
You're the first person who has made that criticism that actually understood why glass was used for the demo page.

Every "liquid glass on web" library in existence falls short because it can't keep up the compositor refresh rate. Simple as that. Part of it was also bringing native UI to the web because I figured it'd be quite jarring to see a convincingly native element in a website for those familiar with web development.

As for using iOS, Apple doesn't use the glass effect (`_UILiquidLensView`) I used for the progress/scroll indicator outside of a very select few use-cases because (as is the case on this website) if it's not positioned squarely in the centre of your macula, the intensity of the refraction combined with the chromatic aberration makes it so that it appears flashy and distracting. I accepted it for the sake of the demo.

Barbing 7 hours ago|||
I don’t think so. The upper left icon was unusually distracting (iOS 27).
hnlmorg 6 hours ago||
The white square glitches out on latest iOS iPhone Duo.

But my advice here is just don’t do it. Respect your users battery life. If you want a native feel then compile to native code.

faangguyindia 8 hours ago||
Still waiting for a Rust framework which can replace Flutter for Android and iOS development
Gander5739 2 hours ago||
While you're waiting there's https://pub.dev/packages/flutter_rust_bridge
2001zhaozhao 7 hours ago|||
I don't know about Rust framework, but Kotlin Multiplatform has always been a good option compared to Flutter. It has good interop so you can build actual native iOS UI while sharing business logic in Kotlin, or you can just build the UI in Compose Multiplatform (decently fast on iOS, literally native on Android which is the more important platform because Androids are slower).
zote 7 hours ago||
Dioxus? https://dioxuslabs.com/
smolder 8 hours ago||
The unfortunate thing is that measuring framerate is another vector that lets you de-anonymize people, and shitty companies that operate what's left of the www all use advanced methods of de-anonymization so they can advertise or sell that shit to palantir. And governments are planning to make it illegal to have a website that isn't a spying apparatus. That's where we're at. The web is not going to be "free as in freedom" for much longer if we let trends continue. Stallman was right, outside of eating toenails or whatever.
zb3 8 hours ago||
"Apple" should instead be named "Asshole", this describes their approach to web apps well..
catlifeonmars 10 hours ago|
60fps is perfectly serviceable. That first example is updating _at most_ 60fps and that phrase is doing a lot of heavy lifting. What you see is <60fps jerks. This article feels disingenuous
Rohansi 9 hours ago||
Sure, dropping frames is worse, but why would it ever be acceptable for an app to cap itself at half the screen's refresh rate? Especially when the difference between 60 and 120fps is very noticeable?
mrob 1 hour ago|||
Some monitors/OSes default to 60Hz even if the monitor is capable of higher. I've seen posts by people who claimed to have run their fast monitor at 60Hz by accident because they didn't know this.

And a fast monitor needs a fast mouse to take full advantage of it. USB mouse protocol does not inform the mouse of the monitor's refresh phase/frequency, so the mouse has to run asynchronously. You need a high mouse sampling rate to avoid noticeable beat patterns caused by this discrepancy. Non-gaming mice sometimes only support 125Hz, which isn't even enough for 60Hz monitors. Common gaming mice support 1000Hz, which is enough for perceptibly flawless mouse control at 120Hz, but for 240Hz you need a high-end gaming mouse with higher sampling rate.

bigstrat2003 8 hours ago|||
> Especially when the difference between 60 and 120fps is very noticeable?

It's not really noticeable in my opinion. Hell, even 30 to 60 FPS isn't noticeable.

arcanemachiner 8 hours ago|||
There are two different kinds of people...
holoduke 7 hours ago||||
Oh it is. Going from 60 to 120 is a big difference. Even from 120 to 180 or 240 is a big difference. Everyone will notice it. Does it affect your productivity? Probably not.
mrob 1 hour ago||
60 to 120 is a big difference. 120 to 240 is nice to have but not as dramatic. Considering how unpleasant it is to do anything on a mobile device because of how much worse a touchscreen is than keyboard and mouse, I think it's reasonable to cap at 120fps or even 60fps if it saves battery. By using a mobile device you're already accepting an inferior user experience.
r_lee 7 hours ago|||
are you just pretending or...? you can immediately notice when you scroll up and down
swiftcoder 6 hours ago||
As I understand it, a pretty significant percentage of people can't really see the difference between 60 and 120hz. I personally only notice it in a few edge cases
r_lee 6 hours ago||
I mean, 30 and hz, not noticing that is pretty surprising

and 60 vs 120hz, you may not notice it immediately but when you e.g. move a window around on a monitor you should be able to feel it, at least for me it's instantly noticeable, but you may not notice it if you're not switching between or aren't moving things around

ridafkih 6 hours ago|||
By "first example," do you mean the glass element on the top-left, or do you mean the first pair of grids?

Low to mid tier devices might get hitches on the glass elements since the glass runs on the GPU during scrolls. If you mean the actual first demo and the one on the right is rendering below 120 Hz, your device is simply not capable of it.

sgt 6 hours ago||
Not sure why you are getting downvoted. The problem is NOT that it's capped to 60fps, it's the yanks and jerks. Which I guess could be a web platform or Safari issue, but 60fps in itself is smooth on native apps.
actionfromafar 28 minutes ago||
Thanks, either the two of us are crazy... or not.