DefaultRenderTimer Class

Defines a default render timer that uses a standard timer.

Definition

Namespace: Avalonia.Rendering
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
[PrivateApiAttribute]
public class DefaultRenderTimer : IRenderTimer
Inheritance
Object    DefaultRenderTimer
Derived
Implements
IRenderTimer

Remarks

This class may be overridden by platform implementations to use a specialized timer implementation.

Properties

FramesPerSecond Gets the number of frames per second at which the loop runs.
RunsInBackground Indicates if the timer ticks on a non-UI thread

Methods

Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Start Starts the timer.
StartCore(ActionTimeSpan) Provides the implementation of starting the timer.
Stop Stops the timer.
ToStringReturns a string that represents the current object.
(Inherited from Object)

Events

Tick Raised when the render timer ticks to signal a new frame should be drawn.

See Also