OpenCV for Unity 2.6.5
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.10.0/index.html ) for the details of the argument of the method.
Loading...
Searching...
No Matches
OpenCVForUnity.UnityUtils.Helper.FpsManager Class Reference

Public Member Functions

 FpsManager (float targetFPS)
 Creates a timer to manage timing at the specified FPS.
 
void Reset ()
 Resets the timer.
 
bool Update (float deltaTime, Action onTick)
 Determines whether to execute certain processing at the FPS interval, and executes it if necessary.
 

Properties

bool IsPaused [get, set]
 Gets or sets whether the timer is paused.
 

Constructor & Destructor Documentation

◆ FpsManager()

OpenCVForUnity.UnityUtils.Helper.FpsManager.FpsManager ( float targetFPS)

Creates a timer to manage timing at the specified FPS.

Parameters
targetFPSTarget FPS. If 0 or less is specified, the update will occur every frame.

Member Function Documentation

◆ Reset()

void OpenCVForUnity.UnityUtils.Helper.FpsManager.Reset ( )

Resets the timer.

◆ Update()

bool OpenCVForUnity.UnityUtils.Helper.FpsManager.Update ( float deltaTime,
Action onTick )

Determines whether to execute certain processing at the FPS interval, and executes it if necessary.

Parameters
deltaTimeElapsed time (usually pass Time.deltaTime).
onTickCallback invoked when the interval is reached.
Returns
Returns true if the callback is invoked, otherwise false.

Property Documentation

◆ IsPaused

bool OpenCVForUnity.UnityUtils.Helper.FpsManager.IsPaused
getset

Gets or sets whether the timer is paused.


The documentation for this class was generated from the following file: