IRL2 / nanover-rs

Other
0 stars 0 forks source link

Cannot reload a recorded simulation from a paused recorded simulation #227

Open rhoslynroebuck opened 1 week ago

rhoslynroebuck commented 1 week ago

Replicating the bug:

  1. Load a recorded simulation
  2. Pause it
  3. Reload the same recorded simulation

The playback is incorrect: incorrect-frame

You can workaround this by playing the simulation before loading the next one.

  1. Load a recorded simulation
  2. Pause it
  3. Press play
  4. Reload the same recorded simulation (works fine)
Ragzouken commented 1 week ago

code where simulation loading happens: https://github.com/IRL2/nanover-rs/blob/main/nanover-rs/src/simulation_thread.rs#L56-L80

code for playback from recording: https://github.com/IRL2/nanover-rs/blob/main/nanover-rs/src/recording.rs

I would guess something to do with loading the same file simultaneously, but that wouldn't explain why there's a difference when playing vs paused