mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Optimize StringName usage
* Added a new macro SNAME() that constructs and caches a local stringname. * Subsequent usages use the cached version. * Since these use a global static variable, a second refcounter of static usages need to be kept for cleanup time. * Replaced all theme usages by this new macro. * Replace all signal emission usages by this new macro. * Replace all call_deferred usages by this new macro. This is part of ongoing work to optimize GUI and the editor.
This commit is contained in:
@@ -127,7 +127,7 @@ void EditorRunNative::_run_native(int p_idx, int p_platform) {
|
||||
return;
|
||||
}
|
||||
|
||||
emit_signal("native_run", preset);
|
||||
emit_signal(SNAME("native_run"), preset);
|
||||
|
||||
int flags = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user