RenderBudgetController class

Tracks render budget pressure and adjusts degradation levels.

Constructors

RenderBudgetController({required RenderBudgetOptions options, required Duration frameBudget})
Creates a render budget controller.

Properties

enabled bool
Whether degradation is enabled.
no setter
hashCode int
The hash code for this object.
no setterinherited
level DegradationLevel
The active degradation level.
no setter
options RenderBudgetOptions
Controller configuration.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state RenderBudgetState
The current controller state.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recordFrame(Duration renderDuration) bool
Records one completed render and returns whether the level changed.
reset() → void
Resets controller state back to full-fidelity rendering.
toString() String
A string representation of this object.
inherited
updateFrameBudget(Duration frameBudget) → void
Updates the frame budget used by this controller.

Operators

operator ==(Object other) bool
The equality operator.
inherited