From 84ff4ec1edd98ae4c3f8efc32c91894adb79a176 Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Thu, 14 Apr 2022 13:15:57 +0200 Subject: [PATCH 1/2] fix editor freeze --- editor/src/editor/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/src/editor/main.rs b/editor/src/editor/main.rs index 3455724465..e1076dbe11 100644 --- a/editor/src/editor/main.rs +++ b/editor/src/editor/main.rs @@ -267,6 +267,7 @@ 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 = From 3fc777a7be8fd961dadf157b34349cd5b15ef063 Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Thu, 14 Apr 2022 18:15:35 +0200 Subject: [PATCH 2/2] made changes to keep performance and not freeze --- editor/src/editor/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/editor/src/editor/main.rs b/editor/src/editor/main.rs index e1076dbe11..5dbfac12f7 100644 --- a/editor/src/editor/main.rs +++ b/editor/src/editor/main.rs @@ -236,6 +236,8 @@ fn run_event_loop(project_dir_path_opt: Option<&Path>) -> Result<(), Box) -> Result<(), Box) -> Result<(), Box { keyboard_modifiers = modifiers; } - Event::MainEventsCleared => window.request_redraw(), Event::RedrawRequested { .. } => { // Get a command encoder for the current frame let mut encoder =