docs.unity3d.com
    Show / Hide Table of Contents

    Class SimpleMovingAverageParams

    Parameters for the simple moving average smoothing method in CounterConfiguration.

    Inheritance
    Object
    SimpleMovingAverageParams
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Multiplayer.Tools.NetStatsMonitor
    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
    Int32
    Remarks

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

    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.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 26 October 2023