Table of Contents

Interface IThreadThrottler

Namespace
Stride.Core
Assembly
Stride.Core.dll
public interface IThreadThrottler

Properties

MinimumElapsedTime

TimeSpan MinimumElapsedTime { get; set; }

Property Value

TimeSpan

Type

ThreadThrottler.ThrottlerType Type { get; }

Property Value

ThreadThrottler.ThrottlerType

Methods

SetMaxFrequency(int)

void SetMaxFrequency(int frequencyMax)

Parameters

frequencyMax int

SetToPreciseAuto()

void SetToPreciseAuto()

SetToPreciseManual(long)

void SetToPreciseManual(long spinwaitWindowParam)

Parameters

spinwaitWindowParam long

SetToStandard()

void SetToStandard()

Throttle(out double)

bool Throttle(out double elapsedInSeconds)

Parameters

elapsedInSeconds double

Returns

bool

Throttle(out long)

bool Throttle(out long elapsedInSwFreq)

Parameters

elapsedInSwFreq long

Returns

bool

Throttle(out TimeSpan)

bool Throttle(out TimeSpan elapsedTimeSpan)

Parameters

elapsedTimeSpan TimeSpan

Returns

bool