Unofficial Hacker News companion — get notified on comment replies, and more.

Show HN: I made a tiny live replica of SFO (opens external site)

628 points by eiiot 4 days ago | tinysfo.com | 186 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (4)

  1. "On Firefox I'd say it's actually unusable, but it's still not pleasant on Chromium either. This seems to be a common outcome when you let the LLM vomit code into a browser, and don't have the domain knowledge and experience needed to keep it from making perf mistakes."

    It is a common outcome of using a browser for graphic heavy apps that has only a small fraction of engineer power that chrome has. I have not looked at the code here, but I doubt there is much one can do, there is not really "domain knowledge" for FF graphics, except knowing all the things missing - those API's should work the same on every browser. FF just lacks behind the implementations so is slower in general especially anything graphic related webGL/WebGPU. Because that stuff is complicated! So many different devices and drivers, ... and I assume you are on Linux? That doesn't make it easier, WebGPU is still blacklisted by default there even with Chrome.

    Replies (2)
    1. I don't think this app is using WebGL at all. In the sources I'm reading I'm just seeing calls to canvas.drawImage, which is inherently a much slower API.
      Replies (1)
      1. There is ... but mainly it seems actually canvas drawing.
    2. This app seems to be using canvas drawing; that's going to be inherently slow. WebGL would be much more performant, and since an LLM did the work, there's no reason to prefer canvas over WebGL.

      (Yes, I'm aware WebGPU is blacklisted on Linux, but it's not necessary here. WebGL works perfectly well, hardware-accelerated, on my system.)