You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00: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:
@@ -97,7 +97,7 @@ extern EMSCRIPTEN_KEEPALIVE int godot_js_main(int argc, char *argv[]) {
|
||||
if (Main::is_project_manager() && FileAccess::exists("/tmp/preload.zip")) {
|
||||
PackedStringArray ps;
|
||||
ps.push_back("/tmp/preload.zip");
|
||||
os->get_main_loop()->emit_signal("files_dropped", ps, -1);
|
||||
os->get_main_loop()->emit_signal(SNAME("files_dropped"), ps, -1);
|
||||
}
|
||||
#endif
|
||||
emscripten_set_main_loop(main_loop_callback, -1, false);
|
||||
|
||||
Reference in New Issue
Block a user