Page 2 of 2

Re: Deterministic Lock-step in Unity3D(iOS/Android)

Posted: Tue Sep 26, 2017 7:35 pm
by nbg_alta
Hi, I'm looking for cross platform, deterministic physics solution for unity for a long time and almost gave up with my game idea due to lack of knowledge in math and physics programming... Finally I've discovered this physics engine with this great topic, which means the hope is not dead yet... I know, this is an old topic, but I hope there is a chance you can share your work with us, thanks

Re: Deterministic Lock-step in Unity3D(iOS/Android)

Posted: Tue Sep 26, 2017 8:22 pm
by Norbo
This is one of those wishlist areas for v2, too. While local determinism is relatively easy in v2, cross-platform determinism through fixed point math is even trickier than in v1 due to the use of SIMD all over the place. Something I'd like to eventually try (emphasis here on eventually, considering how incomplete the core still is) is setting up some "Scalar" type variants which abstract the underlying representation away. The actual implementation would then swap based on a compiler switch.

I'm not sure if this will end up as a good solution, though- it depends on the JIT compiler being sufficiently clever in many cases, and creates a layer of API mismatch for primitive types. We'll see.

Re: Deterministic Lock-step in Unity3D(iOS/Android)

Posted: Mon Feb 26, 2018 9:13 am
by sAm_vdP
I am currently working on a deterministic fixed-point port of BEPUphysics v1. The current state of the project is available at https://github.com/sam-vdp/bepuphysics1int. All existing BEPUphysics demos work, but the fork is about 4 times slower than the float version. PR, bug reports and performance insights are highly appreciated!

Discussion: viewtopic.php?f=9&t=2507