vendor/box3d: support WASM atomics builds - #7287
Draft
nic-vdwalt wants to merge 2 commits into
Draft
Conversation
nic-vdwalt
force-pushed
the
box3d-wasm-threads
branch
5 times, most recently
from
August 14, 2026 07:00
db622c2 to
4ed52d4
Compare
b3GetTicks and friends return zero on the generic branch, so World_GetProfile reports all zeroes on freestanding wasm32. Add a weak b3PlatformTicks that a host can override with a strong definition (monotonic microseconds); the weak default preserves the existing zero behaviour. Holding branch. Separate upstream concern from the mutex fix in box3d#124; no issue filed yet.
nic-vdwalt
force-pushed
the
box3d-wasm-threads
branch
from
August 14, 2026 07:16
4ed52d4 to
972b097
Compare
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.
Summary
atomicsfeature__wasm_atomics__is enabledDepends on #7286. Broader raw-WASM support belongs upstream in Box3D.
Related: erincatto/box3d#127
Testing
vendor/box3dforjs_wasm32with and without-target-features:atomics