fixes slow reverse playback (#334)

This commit is contained in:
Dethrace Engineering Department 2023-06-01 14:55:43 +12:00 committed by GitHub
parent 3b0f32284a
commit db5a953edc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -342,8 +342,7 @@ void UpdateFramePeriod(tU32* pCamera_period) {
last_AR_mode = gAction_replay_mode;
}
if (gAction_replay_mode) {
// Was (removed abs to avoid compiler warning) gFrame_period = abs(gLast_replay_frame_time - gLast_tick_count);
gFrame_period = gLast_replay_frame_time - gLast_tick_count;
gFrame_period = abs((int)(gLast_replay_frame_time - gLast_tick_count));
gLast_tick_count = gLast_replay_frame_time;
new_camera_tick_count = PDGetTotalTime();
new_tick_count = GetTotalTime();