Something that adds up what a frame's drawing cost: RenderingEngine,
whose stats then count the ECS world's drawing along with its own.
A drawer that is not the rendering engine itself — the ECS
RenderSystem — reports what it drew each time it draws, and the
engine folds that into the frame it is drawing. What is reported
outside a frame of the engine's is dropped when its next frame starts.
- Implementers
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addFrameStats(
{int drawCalls = 0, int renderedObjects = 0, int culledObjects = 0, int batchedSprites = 0}) → void -
Adds one draw's counts to the frame being drawn:
drawCallscanvas draws (a batch is one),renderedObjectsthings drawn (a batched sprite is one),culledObjectsskipped as hidden or off screen, of which none were drawn, andbatchedSpritessprites drawn in batches. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited