diff options
author | Alistair Leslie-Hughes <leslie_alistair@hotmail.com> | 2024-08-12 10:02:25 +1000 |
---|---|---|
committer | Alistair Leslie-Hughes <leslie_alistair@hotmail.com> | 2024-08-12 10:14:42 +1000 |
commit | f489c313ccc3a0ba06dc210025783d409f6353b2 (patch) | |
tree | 3bda2a80aa104071cdbad2f702519ee563c2d051 /modules/gdscript/gdscript.cpp | |
parent | 88f3b5f9d52f740b24fabfb8bc01b8b7026ba279 (diff) | |
download | redot-engine-f489c313ccc3a0ba06dc210025783d409f6353b2.tar.gz |
gdscript: Only include profiling variables when DEBUG is enabled
Diffstat (limited to 'modules/gdscript/gdscript.cpp')
-rw-r--r-- | modules/gdscript/gdscript.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp index eaf2565e69..7bf5e946fb 100644 --- a/modules/gdscript/gdscript.cpp +++ b/modules/gdscript/gdscript.cpp @@ -2857,8 +2857,11 @@ GDScriptLanguage::GDScriptLanguage() { _debug_parse_err_line = -1; _debug_parse_err_file = ""; +#ifdef DEBUG_ENABLED profiling = false; + profile_native_calls = false; script_frame_time = 0; +#endif int dmcs = GLOBAL_DEF(PropertyInfo(Variant::INT, "debug/settings/gdscript/max_call_stack", PROPERTY_HINT_RANGE, "512," + itos(GDScriptFunction::MAX_CALL_DEPTH - 1) + ",1"), 1024); |