-
-
Notifications
You must be signed in to change notification settings - Fork 21.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
Optimize BroadPhase2dHashGrid to not pair elements on different layers #45989
Optimize BroadPhase2dHashGrid to not pair elements on different layers #45989
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fix seems to work well!
I've just left some comments to change a few things that could make the code easier to follow.
55c2735
to
a3388aa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, there's just a couple things to change and it should be good to go.
Clean up logic in _check_motion Closes 45824
a3388aa
to
9b65b00
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing, thank you!
Thanks! |
Closes #45824, up from <1fps to 60fps on my laptop so I'll call that a success.
This could use some testing, but I could not figure out how to set up a
BroadPhase2dHashGrid
in a test in a way that I could monitor it.