Skip to content

GameStats

What a game may add to its stats message (debug, only when init said stats): how it draws. renderer is a short lowercase name (‘webgl2’, ‘webgl1’, ‘canvas2d’, or another engine’s own), up to 16 characters.

optional fps?: number

Frames the game drew in the last second (all of its drawing, not only the avatars).


optional renderer?: string

What draws: ‘webgl2’, ‘webgl1’, ‘canvas2d’, …


optional tier?: DeviceTier

The quality tier it draws at now.