fallout2-ce/src/fps_limiter.h

16 lines
232 B
C
Raw Normal View History

2022-05-23 01:13:28 -07:00
#ifndef FPS_LIMITER_H
#define FPS_LIMITER_H
class FpsLimiter {
public:
FpsLimiter(size_t fps = 60);
void mark();
void throttle() const;
private:
const size_t _fps;
size_t _ticks;
};
#endif /* FPS_LIMITER_H */