mirror of
https://github.com/weyne85/DCS-ExportScripts.git
synced 2025-10-29 16:58:18 +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
|
||||
|
||||
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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user