Skip to content

Performance Tips

  • Enable sorting if you have overdraw or transparent instances, and use createRadixSort for faster sorting.
  • Don’t build a BVH if instances are few, highly dynamic, or if they aren’t positioned when it is created.
  • Prefer updateMatrixPosition over updateMatrix when only the position changes.
  • Animate only visible instances using the onFrustumEnter callback.
  • Set an initial capacity close to the final number of instances, to avoid resizing buffers.
  • Disable perObjectFrustumCulled if most instances are always visible.