Source

pygame / doc / capi / sdlgfx.rst

Full commit

pygame2.sdlgfx.base

The :mod:`pygame2.sdlgfx.base` C API contains objects for managing constant frame rates and update steps for SDL based screen surfaces.

Import

Include headers:

pygame2/pgsdlgfx.h

PyFPSManager

The PyFPSManager object features a high resolution timer support for accurate and fixed frame rate support using SDL.

Members

Functions