After creating 3,000 rectangle controls on a single page in Penpot, the browser's CPU usage consistently hovers between 90% and 100% even without any page operations.
In DevTools, I see time spent on "Pre-paint," "Recalculate Style," and "Layout."
In this situation, any page operations, including selecting, dragging, and setting properties, can cause significant lag.
My page needs to support up to 5,000 controls. How can I resolve the lag associated with too many controls?