Skip to content

Cross platform determinism #252

Answered by jrouwe
LeXXik asked this question in Q&A
Discussion options

You must be logged in to vote

It is off by default in the jolt-physics npm package. If you want it on, you need to build it yourself using:

./build.sh Distribution -DCROSS_PLATFORM_DETERMINISTIC=ON

I'm not sure if you will actually need this setting as it is mostly there to remove the differences in SIMD calculations between platforms (e.g. replacing -x with 0.0-x to make the handling of -0.0 the same between platforms). Since the WASM version is the same everywhere, there is a good chance that it will produce the same results.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LeXXik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants