1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 06:23:04 +01:00

Initialise script engine off main thread (#22230)

* Initialise script engine off main thread

* Do not run ScriptEngine.Tick() during initialisation/preloading

* Add 'Loading plugin engine…' string

* Add changelog entry

---------

Co-authored-by: Bas <Basssiiie@users.noreply.github.com>
This commit is contained in:
Aaron van Geffen
2024-07-09 20:19:01 +02:00
committed by GitHub
parent bc0f6c4489
commit 4bfd3f3369
8 changed files with 29 additions and 10 deletions

View File

@@ -913,6 +913,11 @@ bool ScriptEngine::ShouldStartPlugin(const std::shared_ptr<Plugin>& plugin)
void ScriptEngine::Tick()
{
if (!_initialised)
{
return;
}
PROFILED_FUNCTION();
CheckAndStartPlugins();