vendor/box3d: add a fallback platform clock hook - #7286
Draft
nic-vdwalt wants to merge 1 commit into
Draft
Conversation
nic-vdwalt
force-pushed
the
box3d-clock-hook
branch
2 times, most recently
from
August 13, 2026 10:10
6e15839 to
3134735
Compare
nic-vdwalt
force-pushed
the
box3d-clock-hook
branch
2 times, most recently
from
August 14, 2026 07:00
68067a9 to
b7c89f2
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-clock-hook
branch
from
August 14, 2026 07:14
b7c89f2 to
58e8bf8
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
This is intentionally limited to the timer hook. Broader raw-WASM support belongs upstream in Box3D.
Related: erincatto/box3d#127
Testing
./odin build vendor/box3d -target:js_wasm32 -build-mode:obj