An unofficial, read-only Hacker News reader.

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

465 points by eiiot 13 hours ago | tinysfo.com | 137 comments on HN

View full thread · View on Hacker News

Comment thread (1)

  1. As a heads up, unless I'm actively moving the canvas with my finger (and very importantly constantly) the frame rate is quite poor.

    I would ensure you're consistently drawing likely with requestAnimationFrame as opposed to only drawing when there's an event.

    (Similarly zooming or panning quickly gets laggy - this can solve the same problem - just resolve all events and draw once at each frame, doing any necessary interpolation)