Guest Posted February 25, 2023 Posted February 25, 2023 (edited) All, I have been using DCS-ExportScript with my Stream Deck, and have been very frustrated by the microstutter that constantly occurs. I have spent the last few hours troubleshooting, and _think_ I have found a fix. 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" Save the file and try to see if the stutters are gone and the Stream Deck works as normal. On my system, it seems smooth as butter, and everything seems to work, but I have NOT done extensive testing to see if this change has some side effects that I am not aware of. Please report your findings if it works. Edited February 25, 2023 by wombat778
Norsk-L Posted March 3, 2023 Posted March 3, 2023 On 2/25/2023 at 2:01 AM, wombat778 said: All, I have been using DCS-ExportScript with my Stream Deck, and have been very frustrated by the microstutter that constantly occurs. I have spent the last few hours troubleshooting, and _think_ I have found a fix. 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" Save the file and try to see if the stutters are gone and the Stream Deck works as normal. On my system, it seems smooth as butter, and everything seems to work, but I have NOT done extensive testing to see if this change has some side effects that I am not aware of. Please report your findings if it works. What are the gears you use besides stream deck winwing?
Guest Posted March 3, 2023 Posted March 3, 2023 4 hours ago, Norsk-L said: What are the gears you use besides stream deck winwing? I use a VKB Gunfighter mkiii, a Virpil throttle, a Loupedeck, and a TrackIR 5. Oh and I use Logitech g923 pedals as my rudder pedals.
Zyll Posted October 15, 2023 Posted October 15, 2023 Thank you @wombat778, this does appear to have resolved my issues as well. I use RivaTuner to show me my frametimes, and prior to your fix, it showed extremely erratic frames. A previous tip had mentioned to update DCS-ExportScripts/Config.lua to change the export interval to something higher: ExportScript.Config.ExportInterval = 0.05 -- export evry 0.05 secounds Which helped a little bit, but was not a permanent solve. Your fix here is truly a REAL fix. I'm going to submit a bug on the github to get input on this.
Alighierian Posted February 28, 2024 Posted February 28, 2024 (edited) Just to also chime in on this, as I never properly followed up on the same stuttery mess issue: Updated to 2.9.3.51704 (unification update), and applied the 'settimeout(0)' fix. Along with an export interval of .5s / 1s (lowtick), and my Apache is finally flyable with CMWS on in a heavy mission. Testing point - Pretense, Beirut airport Previous OB (pre-update, r5 5600): ~15-25 FPS with CMWS on, ~40-60 with CMWS off Previous OB, and current patch (r7 5800X3D): ~20-30 FPS, though I didn't test these for long Current + fix (r7 5800X3D): ~65 FPS stable, with and without CMWS on So far it seems to have launched the FPS into properly usable territory. Edited February 28, 2024 by Alighierian
rem27 Posted March 3, 2024 Posted March 3, 2024 Streamdeck stuttering went Winwing Simapp pro is on. settimoute to 0 or export script interval to 0,5 didn’t improve Sté stuttering of my Streamdeck (dcs takes a lot of time to respond to my Streamdeck commands). any advise? thank you Intel® Core i7-7700K @4,20GHz - 64 Go RAM - GeForce GTX 1070 Ti - Windows Pro 64 bit - Stream Deck - HOTAS Warthog
Trigati Posted March 3, 2024 Posted March 3, 2024 Try…changing the order of items in Export.luaHave the streamdeck plugged direct to a motherboard USB, not a hub.Those 2 things fixed all my stuttering.Sent from my iPhone using Tapatalk
rem27 Posted March 4, 2024 Posted March 4, 2024 (edited) 12 hours ago, Trigati said: Try…changing the order of items in Export.lua Have the streamdeck plugged direct to a motherboard USB, not a hub. Those 2 things fixed all my stuttering. Sent from my iPhone using Tapatalk Thank you Trigati, I'll give it a try Edited March 4, 2024 by rem27 Intel® Core i7-7700K @4,20GHz - 64 Go RAM - GeForce GTX 1070 Ti - Windows Pro 64 bit - Stream Deck - HOTAS Warthog
Floydrix Posted August 9, 2024 Posted August 9, 2024 (edited) @wombat778 you absolute legend, thanks. Edited August 9, 2024 by Floydrix
Recommended Posts