mirror of
https://github.com/s-d-a/DCS-ExportScripts.git
synced 2025-10-29 16:59:03 +00:00
Change the function call ExportScript.Tools.ProcessInput() to coroutine call, to increase speed.
This commit is contained in:
parent
d6deebbdc5
commit
29037f8e3d
@ -78,7 +78,12 @@ function LuaExportStart()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function LuaExportBeforeNextFrame()
|
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
|
end
|
||||||
|
|
||||||
function LuaExportAfterNextFrame()
|
function LuaExportAfterNextFrame()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user