Keeping large block projects fast
The catalog can contain thousands of block variants, but the palette should only render the current category/search result window instead of thousands of DOM nodes at once.
The editor already avoids rendering everything
The catalog can contain thousands of block variants, but the palette should only render the current category/search result window instead of thousands of DOM nodes at once.
Drag performance
Whole-stack coordinates are committed on release instead of sending a project update for every mouse pixel. This keeps visual dragging responsive.
Game performance
Forever and every-frame scripts can run very often. Keep expensive network calls, large DOM creation and heavy work out of per-frame paths unless you truly need them.
Prefer events over polling
When possible, react to a key/click/message/timer event instead of checking the same condition in many independent every-frame scripts.
blocksevery frame
when key pressed
when I receive message