From 797ab342463aac3f902f1313f0ec620412f65638 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Sun, 6 Mar 2022 11:40:38 -0800 Subject: [PATCH] Add 60 FPS limit --- src/Main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Main.cpp b/src/Main.cpp index 5fea516..a7016c3 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -145,8 +145,10 @@ class Block { int main() { srand(time(NULL)); + sf::RenderWindow window(sf::VideoMode(WINDOW_WIDTH, WINDOW_HEIGHT), "elnutris"); + window.setFramerateLimit(60); Block block;