File tree Expand file tree Collapse file tree
source/CapFrameX.PresentMonInterface Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ namespace CapFrameX.PresentMonInterface
1818{
1919 public class OnlineMetricService : IOnlineMetricService
2020 {
21- private const int LIST_CAPACITY = 20000 ;
22- private const int PMD_BUFFER_CAPACITY = 2200 ;
21+ private const int LIST_CAPACITY = 30000 ;
22+ private const int PMD_BUFFER_CAPACITY = 3000 ;
2323 private const double FIVE_SECONDS_INTERVAL_LENGTH = 5.0 ;
2424 private const double ANIMATION_ERROR_INTERVAL_LENGTH = 0.5 ;
2525
@@ -586,6 +586,12 @@ public double GetOnlineAnimationErrorValue()
586586 }
587587 }
588588
589+ // Clamp to ±1000ms (1 second) to avoid extreme outliers
590+ if ( ! double . IsNaN ( resultValue ) )
591+ {
592+ resultValue = Math . Max ( - 1000d , Math . Min ( 1000d , resultValue ) ) ;
593+ }
594+
589595 return resultValue ;
590596 }
591597 }
You can’t perform that action at this time.
0 commit comments