Restore smooth realtime fall ballistics
This commit is contained in:
@@ -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)]
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user