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 performance regression in RigidBody2D/3D and PhysicalBone3D #82393

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

jrouwe
Copy link
Contributor

@jrouwe jrouwe commented Sep 26, 2023

After change #79977 the body state is synched 2x per frame, but this is only needed if _integrate_forces is overridden.

Adding this extra if increases the FPS by 2.5% in a heavy physics scene, see discussion at: godot-jolt/godot-jolt#611

…calBone3D

After change godotengine@c118256 the body state is synched 2x, but this is only needed if _integrate_forces is overridden.

Adding this extra if increases the FPS by 2.5% in a heavy physics scene, see: godot-jolt/godot-jolt#611
@jrouwe jrouwe requested review from a team as code owners September 26, 2023 19:35
@KoBeWi KoBeWi added this to the 4.2 milestone Sep 26, 2023
@akien-mga akien-mga changed the title Fixed performance regression in godot 4.2 in RigidBody2D/3D and PhysicalBone3D Fix performance regression in RigidBody2D/3D and PhysicalBone3D Sep 26, 2023
@jrouwe
Copy link
Contributor Author

jrouwe commented Oct 3, 2023

Hello, since this is my first PR: Do I need to do anything to progress this PR? Do I need to notify the reviewers somehow?

@akien-mga akien-mga requested a review from a team October 3, 2023 20:09
@akien-mga
Copy link
Member

You don't need to do anything specific, but it wasn't a bad idea to poke as this looks like something I can approve myself :)

@akien-mga akien-mga merged commit 72cdb0b into godotengine:master Oct 4, 2023
15 checks passed
@akien-mga
Copy link
Member

akien-mga commented Oct 4, 2023

Thanks! And congrats for your first merged Godot contribution 🎉
(If we don't count the whole of Jolt as part of a third-party extension ;))

@jrouwe jrouwe deleted the body_changed_state branch October 4, 2023 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants