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 (2)

  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)

    Replies (1)
    1. This should be significantly better now.