Skip to content

Commit

Permalink
Fix peek-meter falloff
Browse files Browse the repository at this point in the history
  • Loading branch information
brummer10 committed Oct 13, 2023
1 parent 92d50ec commit 90358b4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions plugins/NeuralRecord/profiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 90358b4

Please sign in to comment.