Repository navigation
Replies: 5 comments 9 replies
|
Summary of solver changes for the island-independence which |
|
This seems to be a feature request? It is hard to tell. Discussions should be among humans. For getting snapshots and rollback the main problem in Box3D is the large amount of data. Namely all the hull and mesh data. That data should be manage separately and survive a rollback. My idea for this is a context object in the world, like the hull database that persists even with rollbacks. For example So this the problem to solve first. It appears the LLM plan misses an important requirement that is important to most of the work I do in Box3D:
|
|
I just realized there is an existing topic for this: #152 |
|
I'm going to work through this stuff bit by bit and post my thoughts here. One of the problems with LLM plans like this is they often miss the "why" and go straight to the solution. |
|
That is interesting. Having separate trees could optimise the whole thing.
In benchmarking explode it appears that if the sort brings the nearer
collision candidates to the front of the list then the cost of the sort
could be offset. Have tried a few options but haven't found a key which
works yet.
Under ideal situation with the world setup just right the sort is up to 15%
faster, but that's only with all the motion in the scene working with it.
Real world scenarios that doesn't hold.
Away for most of the day but will have another look later. I'll update here
with results.
|
Uh oh!
There was an error while loading. Please reload this page.
Designs
client-prediction-rollback
Started with a non-bit-exact simulating a subset approach with existing APIs. Includes benchmarks of largest islands and some useful ideas about partial simulations.
https://github.com/mryellow/box3d/blob/3caa9080435fa4ff8638ab52c91c9a0e408f3247/docs/designs/20260927-001-client-prediction-rollback.md
bit-exact-history-ring
This introduces the machinery required to keep state in sync while avoiding too many caches/indexes/lookups or tracking the state of each participating element. The scrub/rewind is nice, I could see this generating game ideas.
https://github.com/mryellow/box3d/blob/3caa9080435fa4ff8638ab52c91c9a0e408f3247/docs/designs/20260927-002-bit-exact-history-ring.md
Note that this section proposes that with some solver changes islands could be handled separately and with "split timing" to cut down on the processing required:
https://github.com/mryellow/box3d/blob/feat-rollback-v2/docs/designs/20260927-002-bit-exact-history-ring.md#112-resimulation-is-n-whole-world-steps
rewind-only-history-ring
This one came next and takes
bit-exact-history-ringbut removes the complexity introduced by the ability to scrub forward.https://github.com/mryellow/box3d/blob/3caa9080435fa4ff8638ab52c91c9a0e408f3247/docs/designs/20260929-002-rewind-only-history-ring.md
History Ring + Journal Variations
Note that these documents are copies of each other where one has been modified for rewind only.
https://github.com/mryellow/box3d/blob/3caa9080435fa4ff8638ab52c91c9a0e408f3247/docs/designs/20260930-001-history-ring-vs-rewind-only-differences.md
Differences:
Scrub + Rewind
Rewind only
Comparisons
Here we get some tables comparing features and how various sized worlds would perform.
https://github.com/mryellow/box3d/blob/3caa9080435fa4ff8638ab52c91c9a0e408f3247/docs/designs/20260929-001-rollback-designs-comparison.md
Then comparison with Box2D.
https://github.com/mryellow/box3d/blob/3caa9080435fa4ff8638ab52c91c9a0e408f3247/docs/designs/20260929-003-box2d-snapshot-comparison.md
All reactions