s-d-a / DCS-ExportScripts

DCS World Export Scripts
GNU Lesser General Public License v3.0
114 stars 53 forks source link

resolving micro-stutters introduced by DCS-ExportScript #27

Open DarthZyll opened 1 year ago

DarthZyll commented 1 year ago

credit to Wombat in the ED forums for finding this. Wanted to make the devs aware, so you can investigate. I can confirm that it was a good fix for me, with no apparent loss of functionality.

https://forum.dcs.world/topic/320067-possible-fix-for-dcs-exportscriptstream-deck-stutter/

Specifically, open the file \Saved Games\DCS\Scripts\DCS-ExportScript\lib\Tools.lua and then search for "settimeout(.001)" or just go to line 48.

Then simply change the value .001 to 0, such that the line reads:

"ExportScript.socket.try(ExportScript.UDPListener:settimeout(0)) -- set the timeout for reading the socket; 250 fps"