pw-dev_script icon indicating copy to clipboard operation
pw-dev_script copied to clipboard

FPS cut in half when enabling the export

Open taipan303 opened this issue 4 years ago • 0 comments

To reproduce: -Disable export of pw-dev_script, test FPS in free flight mission; result = 121 average FPS -Enable export of pw-dev_script, test FPS in same mission; result = 63 average FPS

To narrow it down I've also closed the android apps, so I can see it's caused only by the lua scripts. Also have removed any other exports (commented our SRS and Tacview exports).

Copy of my export.lua

local pw=require('lfs');dofile(pw.writedir()..[[Scripts\pw-dev_script\ExportInit.lua]])

-- Data export script for DCS, version 1.2. -- Copyright (C) 2006-2014, Eagle Dynamics. -- See http://www.lua.org for Lua script system info -- We recommend to use the LuaSocket addon (http://www.tecgraf.puc-rio.br/luasocket) -- to use standard network protocols in Lua scripts. -- LuaSocket 2.0 files (*.dll and *.lua) are supplied in the Scripts/LuaSocket folder -- and in the installation folder of the DCS.

-- Expand the functionality of following functions for your external application needs. -- Look into Saved Games\DCS\Logs\dcs.log for this script errors, please.

-- local Tacviewlfs=require('lfs');dofile(Tacviewlfs.writedir()..'Scripts/TacviewGameExport.lua')

-- pcall(function() local dcsSr=require('lfs');dofile(dcsSr.writedir()..[[Mods\Services\DCS-SRS\Scripts\DCS-SimpleRadioStandalone.lua]]); end,nil);

taipan303 avatar Aug 03 '21 03:08 taipan303