{"action":"created","issue":{"url":"https://api.github.com/repos/hammerlab/pileup.js/issues/346","labels_url":"https://api.github.com/repos/hammerlab/pileup.js/issues/346/labels{/name}","comments_url":"https://api.github.com/repos/hammerlab/pileup.js/issues/346/comments","events_url":"https://api.github.com/repos/hammerlab/pileup.js/issues/346/events","html_url":"https://github.com/hammerlab/pileup.js/pull/346","id":114347092,"number":346,"title":"Tiled Canvas","user":{"login":"danvk","id":98301,"avatar_url":"https://avatars.githubusercontent.com/u/98301?v=3","gravatar_id":"","url":"https://api.github.com/users/danvk","html_url":"https://github.com/danvk","followers_url":"https://api.github.com/users/danvk/followers","following_url":"https://api.github.com/users/danvk/following{/other_user}","gists_url":"https://api.github.com/users/danvk/gists{/gist_id}","starred_url":"https://api.github.com/users/danvk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danvk/subscriptions","organizations_url":"https://api.github.com/users/danvk/orgs","repos_url":"https://api.github.com/users/danvk/repos","events_url":"https://api.github.com/users/danvk/events{/privacy}","received_events_url":"https://api.github.com/users/danvk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-30T20:10:19Z","updated_at":"2015-11-03T22:13:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hammerlab/pileup.js/pulls/346","html_url":"https://github.com/hammerlab/pileup.js/pull/346","diff_url":"https://github.com/hammerlab/pileup.js/pull/346.diff","patch_url":"https://github.com/hammerlab/pileup.js/pull/346.patch"},"body":"Fixes #86 \r\n\r\nThis introduces `TiledCanvas`, which maintains a cache of previously rendered buffers. This greatly improves performance during panning, since each frame just involves drawing pre-rendered buffers on the on-screen canvas. Panning at any zoom level improves to ~60fps after this change.\r\n\r\n<!-- Reviewable:start -->\r\n[<img src=\"https://reviewable.io/review_button.png\" height=40 alt=\"Review on Reviewable\"/>](https://reviewable.io/reviews/hammerlab/pileup.js/346)\r\n<!-- Reviewable:end -->\r\n"},"comment":{"url":"https://api.github.com/repos/hammerlab/pileup.js/issues/comments/153505993","html_url":"https://github.com/hammerlab/pileup.js/pull/346#issuecomment-153505993","issue_url":"https://api.github.com/repos/hammerlab/pileup.js/issues/346","id":153505993,"user":{"login":"danvk","id":98301,"avatar_url":"https://avatars.githubusercontent.com/u/98301?v=3","gravatar_id":"","url":"https://api.github.com/users/danvk","html_url":"https://github.com/danvk","followers_url":"https://api.github.com/users/danvk/followers","following_url":"https://api.github.com/users/danvk/following{/other_user}","gists_url":"https://api.github.com/users/danvk/gists{/gist_id}","starred_url":"https://api.github.com/users/danvk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danvk/subscriptions","organizations_url":"https://api.github.com/users/danvk/orgs","repos_url":"https://api.github.com/users/danvk/repos","events_url":"https://api.github.com/users/danvk/events{/privacy}","received_events_url":"https://api.github.com/users/danvk/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T22:13:29Z","updated_at":"2015-11-03T22:13:29Z","body":"Oh, and to answer your question about click tracking: I do re-render the whole scene (as before), without tiling.\n<!-- Reviewable comment -K2EP1p75T0fPW95Xd1G:-1823663200 -->\n\n---\n\nReview status: 12 of 14 files reviewed at latest revision, 1 unresolved discussion.\n\n---\n\n<sup>**[src/main/PileupTrack.js, line 388 \\[r2\\]](https://reviewable.io:443/reviews/hammerlab/pileup.js/346#-K2EC41ZNElkRCAwL_Re)** ([raw file](https://github.com/hammerlab/pileup.js/blob/d58734e2822fa9380d08104018692e133489cd9a/src/main/PileupTrack.js#L388)):</sup>\nI don't but I should. It's a to-do.\n<!-- Reviewable comment -K2EPJv5GLGPImnug5uA:940718642 -->\n\n---\n\n\nComments from the [review on Reviewable.io](https://reviewable.io:443/reviews/hammerlab/pileup.js/346)\n<!-- Sent from Reviewable.io -->\n"}}