-
-
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
Colliding Rigidbody2Ds cause FPS drop even if their masks/layers don't match #45824
Comments
From some quick profiling, looks like the culprit is
Looks like it's not short-circuiting on the collision masks, so it's always checking the AABB collisions: godot/servers/physics_2d/broad_phase_2d_hash_grid.cpp Lines 72 to 92 in 2abe996
I might pick this up tomorrow if no one else takes it. EDIT,next day: |
Godot version:
3.2.4 rc1
Minimal reproduction project:
rigidbody_mask_bug.zip
Compare Slow.tscn and NotSlow.tscn. In both the collision layers/masks are set to 0, but if the bodies are colliding, there is an extreme FPS drop.
The text was updated successfully, but these errors were encountered: