fix rein interpolation jitter by rolling snapshot once per sim tick (#1421)

This commit is contained in:
Loïs
2026-05-15 23:16:36 +02:00
committed by GitHub
parent af8300a77c
commit 30b003c9d9
3 changed files with 17 additions and 4 deletions
+6
View File
@@ -21,6 +21,7 @@ bool g_sync_presentation = false;
float g_step = 0.0f;
bool g_is_sim_frame = false;
bool g_ui_tick_pending = false;
uint64_t g_sim_tick_seq = 0;
Recording g_current_recording;
Recording g_previous_recording;
@@ -134,6 +135,11 @@ void begin_sim_tick() {
s_interpolationCallBackWork.clear();
s_cam_prev = std::move(s_cam_curr);
++g_sim_tick_seq;
}
uint64_t sim_tick_seq() {
return g_sim_tick_seq;
}
void begin_frame(bool enabled, bool is_sim_frame, float step) {