Class for limiting your FPS.
Examples:
FPSLimiter limiter = new FPSLimiter(25);
while(window.open)
{
window.clear();
// Draw and Update stuff
window.display();
limiter.wait();
}
- this(int maxFPS);
- Creates a new FPS Limiter instance with specified max FPS.
- void wait();
- Calculates how long to wait and then waits that amount of time to ensure the target FPS.