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

Skip Object::to_string when Jolt Physics is on separate thread #102726

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

mihe
Copy link
Contributor

@mihe mihe commented Feb 11, 2025

Fixes #102638.
Supersedes #102717.

This PR changes the error reporting happening in modules/jolt_physics so as to not fetch the actual object/node name when using physics/3d/run_on_separate_thread, but instead just fall back to using <unknown> as the name, as Object::to_string is not thread-safe.

(I also removed JoltSoftBody3D::to_string, which seemed to be entirely redundant.)

@mihe mihe force-pushed the jolt/thread-safe-errors branch from f42cc4a to efaee41 Compare February 11, 2025 21:43
@mihe mihe force-pushed the jolt/thread-safe-errors branch from efaee41 to 1006fa9 Compare February 11, 2025 21:55
Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good to me.

@akien-mga akien-mga merged commit 9ac02cc into godotengine:master Feb 11, 2025
20 checks passed
@akien-mga
Copy link
Member

Thanks!

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.

Jolt Physics warnings for PhysicalBone3D fail to report bone names when running physics on separate thread
3 participants