mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-19 09:41:32 +08:00
libobs: Only update symbols after plugins loaded
Reloading symbols after each plugin is causing the load times to increase a fair bit on some computers, so do it after all plugins are loaded instead.
This commit is contained in:
+4
-3
@@ -114,9 +114,6 @@ int obs_open_module(obs_module_t **module, const char *path,
|
||||
if (mod.set_locale)
|
||||
mod.set_locale(obs->locale);
|
||||
|
||||
#ifdef _WIN32
|
||||
reset_win32_symbol_paths();
|
||||
#endif
|
||||
return MODULE_SUCCESS;
|
||||
}
|
||||
|
||||
@@ -233,10 +230,14 @@ static void load_all_callback(void *param, const struct obs_module_info *info)
|
||||
}
|
||||
|
||||
static const char *obs_load_all_modules_name = "obs_load_all_modules";
|
||||
|
||||
void obs_load_all_modules(void)
|
||||
{
|
||||
profile_start(obs_load_all_modules_name);
|
||||
obs_find_modules(load_all_callback, NULL);
|
||||
#ifdef _WIN32
|
||||
reset_win32_symbol_paths();
|
||||
#endif
|
||||
profile_end(obs_load_all_modules_name);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user