SIGN IN SIGN UP

Add shape-content budget to bound repeater cost

Repeaters can multiply a shape by up to 10000 copies, and each shape
can have up to 1024 points. Multiplying both together (or nesting
repeaters inside each other) could still produce very large amounts
of render work per frame, even though each setting on its own stayed
within the existing limits.

Add a shared budget (15000 weighted points) that is spent while
building the shape tree. Point-heavy shapes (stars, custom paths)
spend more of the budget, simple shapes spend very little. Repeater
copies and nested repeaters draw from the same shared budget, so
copies stop being created once it runs out.

Patch keeps normal animations working as before, while capping the
worst-case render cost for unusual or extreme content.
M
Michal Maciola committed
34465a9e93c38af9a5287ad28400bb932c1a2a92
Parent: 2365f56
Committed by JoogabYun <40262755+JoogabYun@users.noreply.github.com> on 8/6/2026, 10:01:16 AM