|
| 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.
|
|
|
bool | IsPaused [get, set] |
| Gets or sets whether the timer is paused.
|
|
◆ FpsManager()
OpenCVForUnity.UnityUtils.Helper.FpsManager.FpsManager |
( |
float | targetFPS | ) |
|
Creates a timer to manage timing at the specified FPS.
- Parameters
-
targetFPS | Target FPS. If 0 or less is specified, the update will occur every frame. |
◆ Reset()
void OpenCVForUnity.UnityUtils.Helper.FpsManager.Reset |
( |
| ) |
|
◆ 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
-
deltaTime | Elapsed time (usually pass Time.deltaTime). |
onTick | Callback invoked when the interval is reached. |
- Returns
- Returns true if the callback is invoked, otherwise false.
◆ 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:
- OpenCVForUnity/Assets/OpenCVForUnity/org/opencv/unity/Helper/Source2MatHelper/FpsManager.cs