Basics
Guides
API Reference
Basics
Guides
API Reference
[13:7] extends: FxObj
Wraps FXGL's MovingAverageQueue (com.almasb.fxgl.core.collection.MovingAverageQueue), a fixed-size FIFO of doubles that tracks the running average. Useful for FPS / latency / damage-per-second widgets.
MovingAverageQueue (int MaxSize = 60)
Creates a new MovingAverageQueue with the given max size.
MaxSize is the queue's max length.put (double Item)
Pushes a new sample. When the queue is full, the oldest entry is evicted.
Item is the value to add.this objectgetAverage ()
Returns the current moving average.
A double.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.