Restore smooth realtime fall ballistics

This commit is contained in:
Mikei386
2026-08-05 20:39:19 +02:00
parent c6a1037611
commit 66110be76d
5 changed files with 55 additions and 30 deletions
+1
View File
@@ -40,6 +40,7 @@ use crate::{
model::{InputSource, MeterFrame, PhoenixRtaConfig},
};
#[cfg(not(target_os = "linux"))]
const PLACEHOLDER_UPDATES_PER_SECOND: u32 = 120;
#[derive(Clone, Copy, Debug, Default)]
+2
View File
@@ -1,10 +1,12 @@
//! Timing and sample-selection helpers for the realtime goniometer stream.
#[cfg(test)]
#[derive(Clone, Debug, Default)]
pub struct GoniometerClock {
phase: u64,
}
#[cfg(test)]
impl GoniometerClock {
/// Returns true at the first capture boundary after the next display tick.
/// The fractional phase is retained, so the average rate is independent