Bolt: Optimize GradientBlinds GC and layout thrashing #49

Closed
ragusa-it wants to merge 1 commits from bolt-performance-gradientblinds-gc-6174148752895979498 into main

1 Commits

Author SHA1 Message Date
google-labs-jules[bot]
351af77bd2 perf(GradientBlinds): optimize GC and layout thrashing
- Replace `pointerPosRef` and `mouseTargetRef` with mutable refs to prevent per-frame object allocation.
- Remove `getBoundingClientRect` from `requestAnimationFrame` loop to prevent synchronous layout thrashing.
- Fix `uniforms.iMouse.value` update logic to mutate array in-place.

Co-authored-by: ragusa-it <196988693+ragusa-it@users.noreply.github.com>
2026-02-02 02:19:28 +00:00