logoalt Hacker News

afavour • today at 12:58 PM • 1 reply • view on HN

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.


Replies

kmeisthax • today at 2:44 PM

Web browsers composite layers just like CoreAnimation, and the browser ostensibly knows how big each element is. Seems like they could invent some kind of heuristic for the web just like they ostensibly already have for UIKit.

➕ show 2 replies