|
Otclient 1.0
14/8/2020
|
#include <adaptativeframecounter.h>
Public Types | |
| enum | { MINIMUM_MICROS_SLEEP = 4000 } |
Public Member Functions | |
| AdaptativeFrameCounter () | |
| bool | shouldProcessNextFrame () |
| void | processNextFrame () |
| bool | update () |
| void | setMaxFps (int maxFps) |
| bool | isFpsLimitActive () |
| int | getMaximumSleepMicros () |
| float | getFrameDelayHit () |
| int | getLastFps () |
| int | getPartialFps () |
| int | getMaxFps () |
| int | getFrames () |
| float | getMediumFrameDelay () |
Class that help counting and limiting frames per second in a application, to make fps limit work as desired, this class requires 2 platforms prerequisites:
Definition at line 34 of file adaptativeframecounter.h.
| anonymous enum |
| Enumerator | |
|---|---|
| MINIMUM_MICROS_SLEEP | |
Definition at line 37 of file adaptativeframecounter.h.
| AdaptativeFrameCounter::AdaptativeFrameCounter | ( | ) |
| float AdaptativeFrameCounter::getFrameDelayHit | ( | ) |
Definition at line 110 of file adaptativeframecounter.cpp.
|
inline |
Definition at line 55 of file adaptativeframecounter.h.
|
inline |
|
inline |
| int AdaptativeFrameCounter::getMaximumSleepMicros | ( | ) |
Definition at line 103 of file adaptativeframecounter.cpp.


|
inline |
Definition at line 56 of file adaptativeframecounter.h.
|
inline |
Definition at line 53 of file adaptativeframecounter.h.
|
inline |
Definition at line 48 of file adaptativeframecounter.h.
| void AdaptativeFrameCounter::processNextFrame | ( | ) |
Definition at line 54 of file adaptativeframecounter.cpp.


| void AdaptativeFrameCounter::setMaxFps | ( | int | maxFps | ) |
Definition at line 90 of file adaptativeframecounter.cpp.

| bool AdaptativeFrameCounter::shouldProcessNextFrame | ( | ) |
Definition at line 43 of file adaptativeframecounter.cpp.


| bool AdaptativeFrameCounter::update | ( | ) |
Definition at line 63 of file adaptativeframecounter.cpp.

