diff options
Diffstat (limited to '')
-rw-r--r-- | src/Plugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Plugin.cpp b/src/Plugin.cpp index 5134aa6..ce995fc 100644 --- a/src/Plugin.cpp +++ b/src/Plugin.cpp @@ -301,6 +301,7 @@ void PluginSystem::CallOnChangeState(std::string newState) { void PluginSystem::CallOnTick(double deltaTime) { OPTICK_EVENT(); + lua.safe_script("collectgarbage('collect')"); for (Plugin& plugin : plugins) { if (plugin.onTick && plugin.errors < 10) try { |