You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to step with B2Api.b2DefaultWorldDef_WithDotNetTpl() causes a deadlock in Godot C#. This is due to the engine providing it's own SynchronizationContext which forces continuations on the main thread.
Adding .ConfigureAwait(false) here seems sufficient
(As a sidenote, the Task.Factory.StartNew just above the mentioned line could also be replaced with a Task.Run, which would be a more "canonical" choice)
Activity
thomasvt commentedon Jun 13, 2025
Thanks for the suggestion. I'll test this out a bit this weekend and change it if it turns out ok.
thomasvt commentedon Jun 15, 2025
Your suggestion is now included as of 3.1.6.
Please note that there already is a 3.1.7, containing an update for the latest Box2D.
tvenclovas96 commentedon Jun 15, 2025
Cheers! Thank you for the great lib, as well!