diff options
| author | Arne Dußin | 2020-11-02 11:26:14 +0100 |
|---|---|---|
| committer | Arne Dußin | 2020-11-02 11:26:14 +0100 |
| commit | d2bd3e0e20f269c35dc74486af0578958fe21315 (patch) | |
| tree | ec31818ffd0f417d67b80b9bec272ae0aeb88593 /src | |
| parent | 1374b5a2d7f5d8a894434ee52e07868ab22770a9 (diff) | |
| download | graf_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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 1 |
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(); |
