aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Dußin2020-11-02 11:26:14 +0100
committerArne Dußin2020-11-02 11:26:14 +0100
commitd2bd3e0e20f269c35dc74486af0578958fe21315 (patch)
treeec31818ffd0f417d67b80b9bec272ae0aeb88593
parent1374b5a2d7f5d8a894434ee52e07868ab22770a9 (diff)
downloadgraf_karto-d2bd3e0e20f269c35dc74486af0578958fe21315.tar.gz
graf_karto-d2bd3e0e20f269c35dc74486af0578958fe21315.zip
Limit FPS to 120
At least under windows a very high CPU and GPU load was noticed, which is why this change was made.
-rw-r--r--src/main.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index d44131b..f116561 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -11,6 +11,7 @@ use transform::Transform;
fn main() {
let (mut rl, thread) = raylib::init().resizable().title("Hello there!").build();
+ rl.set_target_fps(120);
let mut editor = Editor::new();