2D Graphics·10 min read
Hit-testing 2D scenes without O(n) regret
Spatial indexes, pick buffers, and when pixel tests are fine.
Tap a dense canvas. If you walk every node, you will hitch on low-end devices the first time the scene gets interesting. Hit-testing is a data-structure problem wearing a UX costume.
Full article unlocks after a one-time payment.
₹499
Test flow — Cashfree sandbox. No real money is charged.