mirror of
https://github.com/bleackstorm/SteamFrame-FPV-Control-Center.git
synced 2026-12-03 07:31:57 +01:00
fix(review): apply critical code-review optimizations for locks, memory, and responsiveness
This commit is contained in:
1 parent
2d9be15713
commit
a55ca0a25d
4 files changed
+156
-70
No files matched your search
+19
-17
@@ -347,24 +347,26 @@ fn run_engine_worker(
|
||||
&mut telem_rx_opt,
|
||||
&mut head_tracker_opt,
|
||||
) {
|
||||
log::warn!(
|
||||
"[OpenXR] Session VR indisponible ({}). Bascule automatique en mode Monitoring Bureau / Simulation.",
|
||||
xr_err
|
||||
);
|
||||
monitor.lock().openxr_status =
|
||||
SubsystemStatus::Warning(format!("Mode Bureau (OpenXR inactif : {})", xr_err));
|
||||
if !stop_flag.load(Ordering::Relaxed) {
|
||||
log::warn!(
|
||||
"[OpenXR] Session VR indisponible ({}). Bascule automatique en mode Monitoring Bureau / Simulation.",
|
||||
xr_err
|
||||
);
|
||||
monitor.lock().openxr_status =
|
||||
SubsystemStatus::Warning(format!("Mode Bureau (OpenXR inactif : {})", xr_err));
|
||||
|
||||
run_desktop_fallback_loop(
|
||||
&cfg,
|
||||
&monitor,
|
||||
&stop_flag,
|
||||
&recenter_flag,
|
||||
&telem_enabled_flag,
|
||||
&ht_enabled_flag,
|
||||
video_rx_opt.as_ref(),
|
||||
&mut telem_rx_opt,
|
||||
&mut head_tracker_opt,
|
||||
);
|
||||
run_desktop_fallback_loop(
|
||||
&cfg,
|
||||
&monitor,
|
||||
&stop_flag,
|
||||
&recenter_flag,
|
||||
&telem_enabled_flag,
|
||||
&ht_enabled_flag,
|
||||
video_rx_opt.as_ref(),
|
||||
&mut telem_rx_opt,
|
||||
&mut head_tracker_opt,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
log::info!("[Moteur FPV] Tous les sous-systèmes ont été arrêtés.");
|
||||
|
||||
Reference in new issue
Block a user