summaryrefslogtreecommitdiffstats
path: root/core/os/os.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-11-22 14:40:43 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-11-22 14:41:45 -0300
commit62d86b15887371c59f99bfa37dbe2fcaf80478f7 (patch)
treef79db46d86b749cbe64f00a5ae949a583dd07e2f /core/os/os.h
parent81213917d11f9e177db0f0363ee42ff5a47a21dc (diff)
downloadredot-engine-62d86b15887371c59f99bfa37dbe2fcaf80478f7.tar.gz
Modified low processor sleep to 8000 and made it customizable (should be customizable for editor too)
Diffstat (limited to 'core/os/os.h')
-rw-r--r--core/os/os.h3
1 files changed, 3 insertions, 0 deletions
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<String> _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<String> &p_arguments, bool p_blocking, ProcessID *r_child_id = NULL, String *r_pipe = NULL, int *r_exitcode = NULL, bool read_stderr = false) = 0;