-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
fixes issue #12356 performance drop due to EnvironmentMap #12358
Conversation
Thank you for the pull request, @jfayot! ✅ We can confirm we have a CLA on file for you. |
Thanks for the PR @jfayot! Instead of a specific Also, given that entities' positions are usually more dynamic than static models or tilesets, I'm thinking for entities specifically, we make the threshold for updating environment maps much higher or disable them entirely. That way, the environment map generation only runs once on load. |
Thanks for the review, @ggetz !
As far as you consider
I think that finding a threshold that fits for all use cases will be difficult ! It's probably better to disable the environment map by default for entities and let the user decide the appropriate options. |
@ggetz I've added environmentMapOptions to Entity constructor. Tell me if this is what you had in mind... |
Hi @ggetz , I hope you're doing well ! |
Hi @jfayot! Apologies on the delayed responses– Many have been out for the holidays. Work done in #12370 appears to address the performance issue demonstrated in #12356. Can you confirm? However, the additional failsafe in this PR is also beneficial IMO. We'll take a pass on this and hopefully get it into today's release. Thank you! |
I was thinking we don't entirely disable the environment map, but set the update timing to Infinity so that it's only generated once. If you agree, I can push the update to this branch. |
Sure, that's fine for me! |
@jfayot If these updates work for you, I think this should be ready to go! |
Thank you @jfayot! |
Description
This is a proposal to fix / workaround performance drop due to EnvironmentMap.
Issue number and link
Fixes #12356
Testing plan
Author checklist
CONTRIBUTORS.md
CHANGES.md
with a short summary of my change