Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Use pre-rendered arcs (big performance increase) #35
I've tweaked the heatmap.js code to render the circle+shadow once (on a third canvas) then use a combination of drawImage() and globalAlpha to replace the repeated circle draws. The performance increases are significant- check out the before:
More details in a blog post here:
I'm currently thinking of redesigning the rendering process of heatmap.js, whether there is a way of achieving the intended behaviour without major performance drawbacks, and your contribution is great input for that.