From 90358b4997cdd6ded9146d587f1e8a442a97ddd5 Mon Sep 17 00:00:00 2001 From: brummer10 Date: Fri, 13 Oct 2023 14:03:23 +0200 Subject: [PATCH] Fix peek-meter falloff --- plugins/NeuralRecord/profiler.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/NeuralRecord/profiler.cc b/plugins/NeuralRecord/profiler.cc index 1482f01..11419f7 100644 --- a/plugins/NeuralRecord/profiler.cc +++ b/plugins/NeuralRecord/profiler.cc @@ -666,12 +666,14 @@ void always_inline Profil::compute(int count, const float *input0, float *output iRecb1[1] = iRecb1[0]; fRecb0[1] = fRecb0[0]; } - // peek-meter, when the level fails below threshold trigger a little variance for 24 circles - // to ensure that the value cross the event throttle boarder of the host. + // peek-meter, when the level fails below threshold trigger a little variance every 12 circle + // that reduce the I/O trafic but ensure that the value cross the event throttle boarder. + // This is needed because the peek-meter use a falloff offset for smoother display the level. if (fRecb2[0] < fRef) { - if (iRefSet < 24) { + if (iRefSet > 12) { iRef = !iRef; fRef = iRef ? 0.0000003 : 0.00000031; + } else { iRefSet++; } } else {