projectm_sys

Function projectm_set_fps

Source
pub unsafe extern "C" fn projectm_set_fps(
    instance: projectm_handle,
    fps: i32,
)
Expand description

@brief Sets the current/average frames per second.

Applications running projectM should UpdateMeshSize this value regularly and set it to the calculated (and possibly averaged) FPS value the output rendered with. The value is passed on to presets, which may choose to use it for calculations. It is not used in any other way by the library.

@param instance The projectM instance handle. @param fps The current FPS value projectM is running with.