Lyceum / LyceumMuJoCoViz.jl

MIT License
3 stars 0 forks source link

lag when reversing time #17

Closed colinxs closed 4 years ago

colinxs commented 4 years ago

When pressing "r" to reverse time for Playback mode there's a visible lag. This is more apparent when running less than realtime (by using "speed mode").

Pretty sure I know where this is coming from: in runmode! I overshoot slightly by SYNC_MISALIGN_SECONDS, so when reversing time I have to step by (in the worst case) 2 * SYNC_MISALIGN_SECONDS.

Running less than realtime makes this worse because it will take 1/speed_factor * 2 * SYNC_MISALIGN_SECONDS to catch up.

colinxs commented 4 years ago

fixed in #20