summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2018-06-22 03:45:58 +0300
committerOxore <oxore@protonmail.com>2018-06-22 03:45:58 +0300
commit63e929f7a23b44ff2b1e33ccf16307de20c2bdc8 (patch)
tree478ee7523a335f0b4a2a44668f7117890a153e11
parent473833b6e649ba0e23dd0817decedfb445f0e47b (diff)
Set frame rate limit
-rw-r--r--src/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 8c1d7a1..521d1c5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -65,6 +65,7 @@ void prepare() {
NULL);
if (!w.window)
exit(EXIT_FAILURE);
+ sfRenderWindow_setFramerateLimit(w.window, 60);
}
void handleWindowEvents() {