An unofficial, read-only Hacker News reader.

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

468 points by vinhnx 5 days ago | rida.dev | 149 comments on HN

View full thread · View on Hacker News

Comment thread (14)

  1. 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
    Replies (3)
    1. 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?
      Replies (2)
      1. > 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.

        Replies (3)
        1. There are two different kinds of people...
        2. are you just pretending or...? you can immediately notice when you scroll up and down
          Replies (1)
          1. 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
            Replies (1)
            1. 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

        3. 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.
          Replies (1)
          1. 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.
      2. 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.

        Replies (1)
        1. > I've seen posts by people who claimed to have run their fast monitor at 60Hz by accident because they didn't know this.

          This is far more understandable because that makes everything run at 60Hz. The article here is a scenario where you have 60Hz content mixed in with 120Hz on the same screen. But still, people who are accustomed to high refresh rate displays would be able to immediately notice.

          > And a fast monitor needs a fast mouse to take full advantage of it.

          Ideally, yes, but you don't need a high polling rate mouse to be able to notice the difference.

    2. 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.
      Replies (1)
      1. Thanks, either the two of us are crazy... or not.
    3. 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.