Repository navigation
Fix physics double-broadphase update on ent spawning - #7263
Merged
metalgearsloth merged 1 commit intoDec 2, 2026
Merged
metalgearsloth merged 1 commit into
metalgearsloth merged 1 commit into
Conversation
More free perf yum yum.
DrSmugleaf
approved these changes
Dec 2, 2026
Comment on lines
+145
to
+147
| if (xform.Broadphase is { Valid: true } broadphase && | ||
| broadphase.CanCollide == component.CanCollide && | ||
| broadphase.Static == (component.BodyType == BodyType.Static)) |
Member
There was a problem hiding this comment.
I assume you can't do this check in UpdatePhysicsBroadphase
Also is there any risk of this getting out of sync if SharedContainerSystem, ClientGameStateManager, or any of the other EntityLookupSystem methods change it?
Contributor
Author
There was a problem hiding this comment.
It shouldn't as they all call the physics methods rather than setting it directly (even the physics state handler).
The normal bodytype update path mostly always wants to call it and doesn't need to use the check. With that being said I'd prefer physics init was a bit cleaner but that also ties into #7261 which will mostly definitely break things.
Merged
via the queue into
space-wizards:master
with commit Dec 2, 2026
09626a3
21 of 22 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
More free perf yum yum.