From 9cb6f35ec1f2815a9f5631d6ade936c34275129c Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Sat, 5 Mar 2022 13:14:36 -0800 Subject: [PATCH] Adjust speed and remove unnecessary window.setFramerateLimit call --- src/Main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Main.cpp b/src/Main.cpp index d4c9a59..abc50dc 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -148,7 +148,6 @@ class Block { int main() { sf::RenderWindow window(sf::VideoMode(WINDOW_WIDTH, WINDOW_HEIGHT), "elnutris"); - window.setFramerateLimit(8); Block block; @@ -174,7 +173,7 @@ int main() window.clear(); // Fast forward - window.setFramerateLimit(sf::Keyboard::isKeyPressed(sf::Keyboard::Key::Down) ? 16 : 8); + window.setFramerateLimit(sf::Keyboard::isKeyPressed(sf::Keyboard::Key::Down) ? 8 : 6); // Rotation if (sf::Keyboard::isKeyPressed(sf::Keyboard::Key::Up)) {