How to make Box2D more deterministic?

I thought I'd write a quick follow-up to my above post, in case anybody gets too hopeful. 🙂 The bigger problem with networking comes in when your clients desync due to latency causing one of them not to get some input in time. After that I've had really mixed results with getting them to sync back up again. Basically, it works great when I have simple objects, but doesn't work very well when I have ragdolls (joints and so on) in play. I don't know why. I suspect it may be workable depending on what functionality of Box2D you need, but without going a lot deeper into the Box2D internals, I'm stuck for now (I'm aware that the order of object-creation matters, but I'm not sure to what extent that's causing problems). Just sending positions, rotations and impulses does not seem to be enough when complicated objects are involved.

I could write more, but it's probably a derail. I guess a really sophisticated networked game would want to be able to rewind and fast-forward bodies independently of each other, and that's a whole other issue. I think mine will end up working ok, but it's going to be a bit ugly - each side has to pause when a desync happens, and then objects can jump around to their new locations before the game starts up again.
I believe there are two things that were brought up before that are barriers to complete restoration of Box2D state (to support quicksave/quickload, and hopefully network rewind).

These are warm starting and ordering of containers.

Warm starting can be switched off.

Containers can be manually synchronized.

This is all speculation coming from me, though, I haven't made my way through to tackling this topic yet.
big_friendly_giant, i'd be pleasantly surprised to see reproducibility between the ios simulator x86 build and the arm builds. for production i see no reason why you would need them to sync up -- you just may want to ensure the different arm builds sync up.

Original thread: https://box2d.org/forum/viewtopic.php?t=1800