From ca194033061b4b29fe00d8e9bddf2f0478b3c3f0 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Fri, 17 Nov 2017 21:21:54 -0300 Subject: [PATCH] change low cpu delay to 1 usec, should make editor smoother and not really use a lot more cpu. Fixes #11030 --- main/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/main.cpp b/main/main.cpp index cc6e66d352e..3a87742528d 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -1764,7 +1764,8 @@ bool Main::iteration() { return exit; if (OS::get_singleton()->is_in_low_processor_usage_mode() || !OS::get_singleton()->can_draw()) - OS::get_singleton()->delay_usec(16600); //apply some delay to force idle time (results in about 60 FPS max) + //OS::get_singleton()->delay_usec(16600); //apply some delay to force idle time (results in about 60 FPS max) + OS::get_singleton()->delay_usec(1000); //apply some delay to force idle time (results in about 60 FPS max) else { uint32_t frame_delay = Engine::get_singleton()->get_frame_delay(); if (frame_delay)