Skip to content

How to setup best-case save/restore determinism for C++ API #4722

@ChrisUMB

Description

@ChrisUMB

Hello, was just curious about how I can maximize my determinism while using the C++ API.

I know that Python has p.setPhysicsEngineParameter(deterministicOverlappingPairs=1), what is the way to do this from C? We experienced "desync" using save states where loading the state would result in a different simulation than when we allowed the simulation to just continue. To illustrate;

1: Tick, Tick, Tick, Save!, Tick, Tick Tick, ....
2: Tick, Tick, Tick, Tick, Tick, Tick, Tick, ....

Loading the save state made in track 1 would simulate differently after that point than in track 2, where we just let it continue without trying to save restore.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions