Change the function call ExportScript.Tools.ProcessInput() to coroutine call, to increase speed.

This commit is contained in:
mcmicha 2017-04-15 16:29:32 +02:00
parent d6deebbdc5
commit 29037f8e3d

View File

@ -78,7 +78,12 @@ function LuaExportStart()
end
function LuaExportBeforeNextFrame()
ExportScript.Tools.ProcessInput()
if ExportScript.Config.Debug then
ExportScript.Tools.ProcessInput()
else
ExportScript.coProcessArguments_BeforeNextFrame = coroutine.create(ExportScript.Tools.ProcessInput)
coStatus = coroutine.resume(ExportScript.coProcessArguments_BeforeNextFrame)
end
end
function LuaExportAfterNextFrame()