Fix seeking with map to simulation time to be more exact

This commit is contained in:
Ylva Selling
2023-02-09 13:23:28 -05:00
parent aa4e42bcae
commit f65c89b088

View File

@@ -507,7 +507,7 @@ void VideoTileProvider::renderMpv() {
double time = correctVideoPlaybackTime();
bool shouldSeek = abs(time - _currentVideoTime) > _seekThreshold;
if (shouldSeek) {
seekToTime(time);
seekToTime(time - (2.0/_fps)); // We end up two frames too late
}
}