mirror of
https://github.com/bleackstorm/SteamFrame-FPV-Control-Center.git
synced 2026-12-03 07:31:57 +01:00
perf(video): immediate Annex-B burst flush for Android and Condvar frame wake-up on PC
This commit is contained in:
1 parent
f75dd39bd5
commit
4fdffe3393
3 files changed
+98
-5
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user