Bolt: Eliminate allocations in GradientBlinds loop #56

Closed
ragusa-it wants to merge 1 commits from perf/optimize-gradient-blinds-loop-3064449351663093462 into main

1 Commits

Author SHA1 Message Date
google-labs-jules[bot]
78a04e80b6 Bolt: Eliminate allocations in GradientBlinds loop
Refactors `GradientBlinds` animation loop to avoid garbage collection pressure:
- Uses stable object for `pointerPosRef` instead of nullable ref.
- Uses stable array for `mouseTargetRef` and mutates in-place.
- Mutates `uniforms.iMouse.value` instead of assignment.
- Reduces frame-by-frame allocation overhead for smoother animation.

Co-authored-by: ragusa-it <196988693+ragusa-it@users.noreply.github.com>
2026-02-05 01:51:12 +00:00