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

OutlinePass: Improve performance of VisibilityChangeCallBack(). #29220

Merged
merged 9 commits into from
Aug 26, 2024

Conversation

Barokoli
Copy link
Contributor

During performance profiling i found that having selections with 500+ meshes where resulting in ~7ms twice per frame in the changeVisibilityOfNonSelectedObjects function due to the for loop and array setup.
I replaced the array with a set and now the function takes <1ms.

beforeafter

Thanks for the great library!

@Barokoli Barokoli changed the title Faster outline for many object scenes Faster outline for scenes with many objects Aug 23, 2024
@Mugen87 Mugen87 added this to the r168 milestone Aug 23, 2024
@Mugen87 Mugen87 changed the title Faster outline for scenes with many objects OutlinePass: Improve performance of VisibilityChangeCallBack(). Aug 23, 2024
Barokoli and others added 3 commits August 26, 2024 15:05
@Mugen87 Mugen87 merged commit d7f2d9a into mrdoob:dev Aug 26, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants