An unofficial, read-only Hacker News reader.

Bypassing iOS Safari's 60 FPS Limit to Build Web Applications That Feel Native (opens external site)

467 points by vinhnx 3 days ago | rida.dev | 149 comments on HN

View full thread · View on Hacker News

Comment thread (15)

  1. > If you’re on iOS Safari

    I am.

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

    I cannot. lol

    Replies (6)
    1. Likewise. Maybe it’s my old-man (47) eyes, but I saw no difference!
    2. Same, looks identical to me. Tried several different motions as well but can’t pick which is which.
      Replies (1)
      1. 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.

    3. Not all iOS devices have 120 Hz screens.
      Replies (1)
      1. I’m on the Duo and I didn’t notice anything beyond what could be reasonably argued as a placebo effect.
        Replies (1)
        1. 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.

          Replies (1)
          1. 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)?
            Replies (1)
            1. It's a series of learnings, rather than an actual step-by-step on making a website feel native on iOS Safari. A good example for this would be a drawing application isolating the controller idea to get better responsiveness when someone draws, or a mobile game PWA using the refresh rate boosting to make the game feel better to players.

              I've been making websites for over a decade now, and yet even with AI in the loop, the blog post and demos took almost 5 days to become publishable, and another 4 to get the performance in a place where I was happy. This is because of the hybrid approach, and needing to build the entire page around that fact.

              Would I ever use liquid glass in an actual website? I would not, and certainly not as I did here with an annoying `_UILiquidLensView`-inspired scroll indicator. Do I think it serves as a good illustration/example for high-refresh rate websites on mobile? Absolutely!

              Continue this thread (1 replies) →

    4. 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.
    5. They were night and day. iPhone 17 Pro, iOS 27 (not in low power mode)
      Replies (1)
      1. obviously not, look at all the comments in here stating otherwise

        i have a 15 pro max and a new ipad, no low power mode, frame rate is not limited in accessibility settings...

        it's extremely subtle if percievable at all.

    6. 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.