1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Make the performance reporting update frequency customizable

The default update frequency has been changed from 1000ms to 250ms.
This commit is contained in:
Hugo Locurcio
2018-05-17 02:02:35 +02:00
parent 942e0c4832
commit 228ae60a63
6 changed files with 21 additions and 8 deletions

View File

@@ -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) {