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(input): Remove SendWrapper from GILRS_CONTEXT (unless on wasm) #477

Merged
merged 2 commits into from
Oct 7, 2024

Conversation

MaxCWhitehead
Copy link
Collaborator

I don't think we want SendWrapper here - this will panic if accessed from a different thread than it was initialized with, was panicking on start updating bones in jumpy. Bevy systems may be scheduled to other threads.

Arc + Mutex should make us sync + send here anyway. Lmk if any concerns with this @RockasMockas

@MaxCWhitehead
Copy link
Collaborator Author

MaxCWhitehead commented Oct 7, 2024

Thank you CI - I see I got this wrong, GilrContext needs to be sync/send and isn't on wasm. Maybe only SendWrapper on wasm? Bevy runs single threaded in this case.

@MaxCWhitehead MaxCWhitehead changed the title fix(input): Remove SendWrapper from GILRS_CONTEXT fix(input): Remove SendWrapper from GILRS_CONTEXT (unless on wasm) Oct 7, 2024
@MaxCWhitehead MaxCWhitehead added this pull request to the merge queue Oct 7, 2024
Merged via the queue into fishfolk:main with commit 4a72715 Oct 7, 2024
10 checks passed
@MaxCWhitehead MaxCWhitehead deleted the gilrs-fix branch October 7, 2024 04:46
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