From c707d6fe717c43fecafa0aca53182f214268ec16 Mon Sep 17 00:00:00 2001 From: George Marques Date: Fri, 13 Nov 2020 10:31:14 -0300 Subject: GDScript: Gather instructions arguments beforehand Almost all instructions need variant arguments. With this change they are loaded in an array before each instruction call. This makes the addressing code be localized to less places, improving compilation overhead and binary size by a small margin. This should not affect performance. --- modules/gdscript/gdscript_function.cpp | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'modules/gdscript/gdscript_function.cpp') diff --git a/modules/gdscript/gdscript_function.cpp b/modules/gdscript/gdscript_function.cpp index 397c1f0bf8..32372439c5 100644 --- a/modules/gdscript/gdscript_function.cpp +++ b/modules/gdscript/gdscript_function.cpp @@ -139,31 +139,13 @@ void GDScriptFunction::debug_get_stack_member_state(int p_line, Listlock); - GDScriptLanguage::get_singleton()->function_list.add(&function_list); } - - profile.call_count = 0; - profile.self_time = 0; - profile.total_time = 0; - profile.frame_call_count = 0; - profile.frame_self_time = 0; - profile.frame_total_time = 0; - profile.last_frame_call_count = 0; - profile.last_frame_self_time = 0; - profile.last_frame_total_time = 0; - #endif } -- cgit v1.2.3