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

fix: Avoid physics query slowdown over time by rebuilding broadphase every frame #962

Merged
merged 1 commit into from
Apr 6, 2024

Conversation

MaxCWhitehead
Copy link
Collaborator

See #961 for context. There's a bug in parry2d involving incremental update failing to balance broadphase BVH. Fully rebuilding BVH avoids this issue, and we can get away with it due to few bodies in our game. This was our previous behavior before supporting dynamic bodies and relying on incremental update in physics pipeline, which turns out to be broken.

@MaxCWhitehead MaxCWhitehead added this pull request to the merge queue Apr 6, 2024
Merged via the queue into fishfolk:main with commit 0ade25b Apr 6, 2024
8 checks passed
@MaxCWhitehead MaxCWhitehead deleted the fix-physics-perf branch April 6, 2024 05:23
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.

1 participant