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:
bleackstorm committed 2026-11-05 21:46:14 +01:00
1 parent 0fbe184716
commit 5d81993bbe
6 files changed
+140 -73

No files matched your search

+2
View File
@@ -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) {}