docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SimpleMovingAverageParams

    Parameters for the simple moving average smoothing method in CounterConfiguration.

    Inheritance
    object
    SimpleMovingAverageParams
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Multiplayer.Tools.NetStatsMonitor
    Assembly: Unity.Multiplayer.Tools.NetStatsMonitor.Configuration.dll
    Syntax
    [Serializable]
    public sealed class SimpleMovingAverageParams

    Properties

    SampleCount

    The number of samples that are maintained for the purpose of smoothing.

    Declaration
    public int SampleCount { get; set; }
    Property Value
    Type Description
    int
    Remarks

    The value is clamped to the range [8, 512].

    SampleRate

    The sample rate of the Simple Moving Average counter.

    Declaration
    [Tooltip("The sample rate of the counter. If the sample rate is Per Second then each sample in the counter is collected over a full second, whereas if the sample rate is Per Frame then each sample in the counter is collected during a single frame.")]
    public SampleRate SampleRate { get; set; }
    Property Value
    Type Description
    SampleRate
    Remarks

    If the sample rate is PerSecond then each sample in the counter is collected over a full second, whereas if the sample rate is PerFrame then each sample in the counter is collected during a single frame.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)