Skip to content

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
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