perf(video): immediate Annex-B burst flush for Android and Condvar frame wake-up on PC

This commit is contained in:
bleack committed 2026-11-28 00:40:08 +01:00
1 parent f75dd39bd5
commit 4fdffe3393
3 files changed
+98 -5

No files matched your search

+7 -2
View File
@@ -178,9 +178,14 @@ pub fn run_desktop_fallback_loop(ctx: &mut EngineWorkerRefs<'_>) {
);
let elapsed = loop_start.elapsed();
let target_dt = Duration::from_millis(8); // Jusqu'à 120 Hz sur les flux 90/120 FPS
let target_dt = Duration::from_millis(8);
if elapsed < target_dt {
thread::sleep(target_dt - elapsed);
let remaining = target_dt - elapsed;
if let Some(rx) = ctx.video_rx_opt {
rx.wait_for_frame(last_frame_id, remaining);
} else {
thread::sleep(remaining);
}
}
}
}