49 FPSLimiter(
float maxFPS,
int fpsEstimationInterval=10);
65 virtual void tic()
const;
68 virtual float getFPSVal()
const;
71 virtual std::string getFPSString(
const std::string &fmt=
"%3.4f fps",
int bufferSize=30)
const;
74 virtual void showFPS(
const std::string &
text=
"")
const;
undocument this line if you encounter any issues!
Definition: Any.h:37
void setMaxFPS(float maxFPS)
sets max fps value
Definition: FPSLimiter.h:55
#define ICLUtils_API
this macros are important for creating dll's
Definition: CompatMacros.h:171
ICLQt_API void text(ImgQ &image, int x, int y, const string &text)
renders a text into an image (only available with Qt-Support)
ICL Time class (taken from the Ice lib)
Definition: Time.h:52
An fps limiter can be used to limit online applications FPS.
Definition: FPSLimiter.h:42
bool m_waitOff
Definition: FPSLimiter.h:45
virtual ~FPSLimiter()
virtual destructor
Definition: FPSLimiter.h:52
Time m_lastTime
Definition: FPSLimiter.h:44
float m_maxFPS
Definition: FPSLimiter.h:43
ICLQt_API void tic(const std::string &label="")
starts a timer
float getMaxFPS() const
returns max fps value
Definition: FPSLimiter.h:58
Utility clas for online FPS estimation.
Definition: FPSEstimator.h:41