Add reverse UID cache

This commit is contained in:
kobewi
2025-09-12 20:18:44 +02:00
parent dec5a373d9
commit 60591dc7e8
4 changed files with 38 additions and 2 deletions

View File

@@ -2201,6 +2201,9 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
initialize_modules(MODULE_INITIALIZATION_LEVEL_CORE);
register_core_extensions(); // core extensions must be registered after globals setup and before display
if (!editor) {
ResourceUID::get_singleton()->enable_reverse_cache();
}
ResourceUID::get_singleton()->load_from_cache(true); // Load UUIDs from cache.
ProjectSettings::get_singleton()->fix_autoload_paths(); // Handles autoloads saved as UID.