From ace5b066f8887a0e178015d4a3ca00c72358cebd Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Fri, 1 Apr 2022 09:41:13 +0200 Subject: [PATCH] fixed high mem+CPU usage for gui-example and editor --- editor/src/editor/main.rs | 1 - examples/gui/platform/src/gui.rs | 1 - 2 files changed, 2 deletions(-) diff --git a/editor/src/editor/main.rs b/editor/src/editor/main.rs index fc2a4f3036..1ae4bdd7a4 100644 --- a/editor/src/editor/main.rs +++ b/editor/src/editor/main.rs @@ -266,7 +266,6 @@ fn run_event_loop(project_dir_path_opt: Option<&Path>) -> Result<(), Box { keyboard_modifiers = modifiers; } - Event::MainEventsCleared => window.request_redraw(), Event::RedrawRequested { .. } => { // Get a command encoder for the current frame let mut encoder = diff --git a/examples/gui/platform/src/gui.rs b/examples/gui/platform/src/gui.rs index 29caa01404..755fa40ae8 100644 --- a/examples/gui/platform/src/gui.rs +++ b/examples/gui/platform/src/gui.rs @@ -187,7 +187,6 @@ fn run_event_loop(title: &str, root: RocElem) -> Result<(), Box> { } => { keyboard_modifiers = modifiers; } - Event::MainEventsCleared => window.request_redraw(), Event::RedrawRequested { .. } => { // Get a command cmd_encoder for the current frame let mut cmd_encoder =