Add 60 FPS limit

cpp
Elnu 3 years ago
parent e663e8c061
commit 797ab34246

@ -146,7 +146,9 @@ int main()
{ {
srand(time(NULL)); srand(time(NULL));
sf::RenderWindow window(sf::VideoMode(WINDOW_WIDTH, WINDOW_HEIGHT), "elnutris"); sf::RenderWindow window(sf::VideoMode(WINDOW_WIDTH, WINDOW_HEIGHT), "elnutris");
window.setFramerateLimit(60);
Block block; Block block;

Loading…
Cancel
Save