From 62d86b15887371c59f99bfa37dbe2fcaf80478f7 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Wed, 22 Nov 2017 14:40:43 -0300 Subject: Modified low processor sleep to 8000 and made it customizable (should be customizable for editor too) --- core/os/os.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/os/os.h') diff --git a/core/os/os.h b/core/os/os.h index fe4ffb2922..d7a1512e39 100644 --- a/core/os/os.h +++ b/core/os/os.h @@ -50,6 +50,7 @@ class OS { List _cmdline; bool _keep_screen_on; bool low_processor_usage_mode; + int low_processor_usage_mode_sleep_usec; bool _verbose_stdout; String _local_clipboard; uint64_t _msec_splash; @@ -202,6 +203,8 @@ public: virtual bool is_keep_screen_on() const; virtual void set_low_processor_usage_mode(bool p_enabled); virtual bool is_in_low_processor_usage_mode() const; + virtual void set_low_processor_usage_mode_sleep_usec(int p_usec); + virtual int get_low_processor_usage_mode_sleep_usec() const; virtual String get_executable_path() const; virtual Error execute(const String &p_path, const List &p_arguments, bool p_blocking, ProcessID *r_child_id = NULL, String *r_pipe = NULL, int *r_exitcode = NULL, bool read_stderr = false) = 0; -- cgit v1.2.3