Closed rpaciorek closed 4 months ago
Thanks for identifying this. I found it to be related to https://github.com/godotengine/godot-cpp/issues/1332. Applying the workaround suggested in https://github.com/godotengine/godot-cpp/issues/1332 resolves the issue.
Adding godot-xterm addon increases the startup time of Godot 4.2 from approximately 7 to 30 seconds. All this extra time is spent on the first call of
set_default_theme_items
fromTerminal
constructor.Removing this call:
fixes the problem and appears to have no side effects.
Additionally, calling
set_default_theme_items
from GdScript (after adding the appropriate bind) is quick, so it looks like some problem with the constructor andset_default_theme_items
being called at the wrong time (too early) when Godot is started.