mirror of
https://github.com/fallout2-ce/fallout2-ce.git
synced 2026-07-27 16:47:11 -07:00
20 lines
295 B
C++
20 lines
295 B
C++
#ifndef FPS_LIMITER_H
|
|
#define FPS_LIMITER_H
|
|
|
|
namespace fallout {
|
|
|
|
class FpsLimiter {
|
|
public:
|
|
FpsLimiter(unsigned int fps = 60);
|
|
void mark();
|
|
void throttle() const;
|
|
|
|
private:
|
|
const unsigned int _fps;
|
|
unsigned int _ticks;
|
|
};
|
|
|
|
} // namespace fallout
|
|
|
|
#endif /* FPS_LIMITER_H */
|