mirror of
https://github.com/bleackstorm/SteamFrame-FPV-Control-Center.git
synced 2026-12-03 07:31:57 +01:00
perf(core): apply code-review optimizations for latency, allocations and concurrency
- LogBuffer: add revision counter and sync only latest 50 entries when revision changes, eliminating ~180k heap string allocations/sec. - Engine: move dome_lut.apply outside of latest_frame lock guard to prevent GStreamer appsink thread contention. - Video: reuse existing Vec buffer in appsink callback, render standby pattern in-place to avoid 3.7MB/frame alloc. - GPUI: remove premature texture drain on idle ticks, spawn background threads for bash/ssh scripts to avoid zombie processes. - Nomad: add NaN guard in deg_to_crsf, track last_send_ok to prevent permanent error state latch, add CRSF packet & CRC8 unit tests. - OpenXR/Engine: enforce Acquire/Release ordering on atomic control flags, join worker thread reliably on stop.
This commit is contained in:
1 parent
0fbe184716
commit
5d81993bbe
6 files changed
+140
-73
No files matched your search
@@ -28,6 +28,7 @@ pub struct LogBuffer {
|
||||
pub entries: VecDeque<LogEntry>,
|
||||
pub error_count: usize,
|
||||
pub warn_count: usize,
|
||||
pub revision: u64,
|
||||
}
|
||||
|
||||
/// Logger centralisé capturant tous les événements et erreurs pour l'interface graphique
|
||||
@@ -112,6 +113,7 @@ impl Log for GuiLogger {
|
||||
lock.entries.pop_front();
|
||||
}
|
||||
lock.entries.push_back(entry);
|
||||
lock.revision = lock.revision.wrapping_add(1);
|
||||
}
|
||||
|
||||
fn flush(&self) {}
|
||||
|
||||
Reference in new issue
Block a user