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

Speed up GDScriptLanguage::finish

This commit is contained in:
Mikael Hermansson
2024-07-18 12:30:43 +02:00
parent 6b5825a0cb
commit 6852f9497c
2 changed files with 17 additions and 4 deletions

View File

@@ -411,6 +411,8 @@ class GDScriptLanguage : public ScriptLanguage {
static GDScriptLanguage *singleton;
bool finishing = false;
Variant *_global_array = nullptr;
Vector<Variant> global_array;
HashMap<StringName, int> globals;