Class for limiting your FPS.
Creates a new FPS Limiter instance with specified max FPS.
Calculates how long to wait and then waits that amount of time to ensure the target FPS.
1 FPSLimiter limiter = new FPSLimiter(25); 2 while(window.open) 3 { 4 window.clear(); 5 // Draw and Update stuff 6 window.display(); 7 limiter.wait(); 8 }
See Implementation
Class for limiting your FPS.