pmndrs / use-cannon

👋💣 physics based hooks for @react-three/fiber
https://cannon.pmnd.rs
2.73k stars 153 forks source link

fix: Improve instancedMesh iterating in frameHandler #422

Closed bjornstar closed 1 year ago

bjornstar commented 1 year ago

Fixes #421

Since they all share the same uuid, they were being iterated over many times. Doing a quick filter before the iteration ensures we only process them once.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
use-cannon ✅ Ready (Inspect) Visit Preview Dec 29, 2022 at 1:11AM (UTC)