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)

Peformance of drawing many Lines

Peformance of drawing many Lines

Sponza Scene

Sponza Scene