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

Animation Mixer

Animation Mixer

Animations with glTF

Animations with glTF

Remote glTF Viewer

Remote glTF Viewer

Stats helper (Manual)

Stats helper (Manual)

Facecap animation with morph targets

Facecap animation with morph targets

Skinning Animation

Skinning Animation

Detached Bind Mode

Detached Bind Mode

Video YUV

Video YUV

Hello World

Hello World

Performance of drawing many Lines

Performance of drawing many Lines

Sponza Scene

Sponza Scene