Reduce the frame interval sample frequency

At the higher frequency we were using earlier, the overhead from
updating the readout contributed significantly to the frame interval.
This commit is contained in:
Aaron Fenyes 2024-08-28 01:47:38 -07:00
parent 01c2af6615
commit c04e29f586

View File

@ -101,7 +101,7 @@ fn main() {
let debug_mode = create_signal(false); /* DEBUG */ let debug_mode = create_signal(false); /* DEBUG */
/* INSTRUMENTS */ /* INSTRUMENTS */
const SAMPLE_PERIOD: i32 = 20; const SAMPLE_PERIOD: i32 = 60;
let mut last_sample_time = 0.0; let mut last_sample_time = 0.0;
let mut frames_since_last_sample = 0; let mut frames_since_last_sample = 0;
let mean_frame_interval = create_signal(0.0); let mean_frame_interval = create_signal(0.0);