Class RenderScheduler
Namespace: VelloSharp.ChartRuntime
Assembly: VelloSharp.ChartRuntime.dll
Coordinates render callbacks against an abstract frame tick source.
public sealed class RenderScheduler : IDisposable
Inheritance
Implements
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
RenderScheduler(TimeSpan, TimeProvider)
public RenderScheduler(TimeSpan frameBudget, TimeProvider timeProvider)
Parameters
frameBudget TimeSpan
timeProvider TimeProvider
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Schedule(FrameTickCallback)
public void Schedule(FrameTickCallback callback)
Parameters
callback FrameTickCallback
SetAutomaticTicksEnabled(bool)
public void SetAutomaticTicksEnabled(bool enabled)
Parameters
enabled bool
SetTickSource(IFrameTickSource?, bool)
Attaches an external tick source (e.g., framework animation loop). Passing null reverts to the internal background driver.
public void SetTickSource(IFrameTickSource? tickSource, bool ownsSource = false)
Parameters
tickSource IFrameTickSource?
ownsSource bool
TryRunManualTick(TimeSpan?)
Executes a single scheduled callback synchronously. Returns false when no work is pending.
public bool TryRunManualTick(TimeSpan? timestampOverride = null)
Parameters
timestampOverride TimeSpan?