tldraw / tldraw

SDK for creating whiteboards and canvas experiences on the web.

Home Page:https://tldraw.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Large number of shapes causes perf regression with hitTestPoint

mimecuvalo opened this issue · comments

We noticed on a board with a number of shapes that dragging something gets 'stuck' for a couple ticks because we're doing a large # of calculations.

cc @lu

this is the cause of the slowdowns we were seeing

2222 3333

4444

and looks like we're pitting everything too, not just notes
https://github.com/tldraw/tldraw/assets/15892272/4f562b75-8993-46e7-94b2-69c5f4847360

thx for investigating @TodePond !