summaryrefslogtreecommitdiff
path: root/core/script_language.cpp
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2018-05-17 02:02:35 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2018-05-18 11:49:21 +0200
commit228ae60a63df4190028a34648290417982c0d268 (patch)
tree3ed8c257c7a40c8c3ca0d62e980e1d8b3b3823bb /core/script_language.cpp
parent942e0c483247af1e84b7992be48f8ef6317d45c6 (diff)
Make the performance reporting update frequency customizable
The default update frequency has been changed from 1000ms to 250ms.
Diffstat (limited to 'core/script_language.cpp')
-rw-r--r--core/script_language.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/script_language.cpp b/core/script_language.cpp
index 1dab58e29e..ce9b138bb2 100644
--- a/core/script_language.cpp
+++ b/core/script_language.cpp
@@ -29,6 +29,7 @@
/*************************************************************************/
#include "script_language.h"
+#include "project_settings.h"
ScriptLanguage *ScriptServer::_languages[MAX_LANGUAGES];
int ScriptServer::_language_count = 0;
@@ -283,6 +284,7 @@ ScriptDebugger::ScriptDebugger() {
lines_left = -1;
depth = -1;
break_lang = NULL;
+ update_frequency = GLOBAL_GET("debug/settings/performance/update_frequency_msec");
}
bool PlaceHolderScriptInstance::set(const StringName &p_name, const Variant &p_value) {