Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] Bvh doesn't recompute every rerender #1718

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

krispya
Copy link
Member

@krispya krispya commented Nov 14, 2023

This is a simple change that makes it Bvh only computes once on mount instead of recomputing every time there is a rerender in the tree.

Reactive recomputing is impractical in real time scenarios. Instead, I think we should encourage users to wrap Bvh arouund reusable graphs in components.

Copy link

vercel bot commented Nov 14, 2023

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

Name Status Preview Comments Updated (UTC)
drei ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 14, 2023 10:49pm

Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 3847cc0:

Sandbox Source
blissful-haibt-pxr4qj Configuration
Ground reflections and video textures Configuration
arc-x-pmndrs-colors Configuration

@krispya
Copy link
Member Author

krispya commented Nov 14, 2023

@drcmda Could you clarify the intention here?

@drcmda drcmda merged commit 651dd99 into pmndrs:master Nov 15, 2023
4 checks passed
@drcmda
Copy link
Member

drcmda commented Nov 15, 2023

@krispya might have been simple oversight. in cases where the tree changes users can still key it.

Copy link

🎉 This PR is included in version 9.88.15 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants