pygfx.helpers.Stats

class pygfx.helpers.Stats(viewport)

Bases: Group

A Stats helper which displays performance statistics such as FPS and draw time on the screen.

Parameters:

viewport (Viewport, Renderer) – Required for positioning lines of text in the corner of the screen.

Examples

Hello World

Hello World

Stats helper (Manual)

Stats helper (Manual)

Performance of drawing many Lines

Performance of drawing many Lines

Sponza Scene

Sponza Scene