In-game tools · interface
FrameHistory
A fixed window of frame times, oldest first.
Explained in In-game tools.
interface FrameHistoryimport type { FrameHistory } from '@driftengine/tools';In depth
A ring rather than a growing array, because this is pushed once a frame forever and the window is the only part anybody looks at.
Properties
| Name | Type | Description |
|---|---|---|
msreadonly | Float64Array | |
head | number | Where the next frame goes. |
filled | number | How many of ms are live, up to its length. |