diff options
| author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2019-11-08 18:36:06 +0100 |
|---|---|---|
| committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2019-11-08 18:53:25 +0100 |
| commit | e6d53ba75fe8d58d72fb6f4c261c7fcf73290104 (patch) | |
| tree | c43ebb5a4f51a23dbaaadb2fa1f4df0d525633b4 /core/bind/core_bind.h | |
| parent | 9d4e596c69b0b03e94af4ea4cfb49e0371776ec6 (diff) | |
| download | redot-engine-e6d53ba75fe8d58d72fb6f4c261c7fcf73290104.tar.gz | |
Expose the `OS.low_processor_usage_mode_sleep_usec` property
This makes it possible to change it at runtime in projects.
Diffstat (limited to 'core/bind/core_bind.h')
| -rw-r--r-- | core/bind/core_bind.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/bind/core_bind.h b/core/bind/core_bind.h index 1a4fd1d5cb..18182860c6 100644 --- a/core/bind/core_bind.h +++ b/core/bind/core_bind.h @@ -222,6 +222,9 @@ public: void set_low_processor_usage_mode(bool p_enabled); bool is_in_low_processor_usage_mode() const; + void set_low_processor_usage_mode_sleep_usec(int p_usec); + int get_low_processor_usage_mode_sleep_usec() const; + String get_executable_path() const; int execute(const String &p_path, const Vector<String> &p_arguments, bool p_blocking, Array p_output = Array(), bool p_read_stderr = false); |
