Hacker News new | ask | show | jobs
by phs318u 857 days ago
Is there an annotated version breaking down each part of this for us lesser mortals?
1 comments

I've had a stab at decompressing the code by hand, adding comments and meaningful var names where possible. I still don't understand the maths in it...

https://github.com/callumlocke/bitwise-liminal-expanded

Looks like the maths is a kind of raymarching loop if you want to read up on it.
Just a guess, the speedup is probably due to you caching the 2d context.