Jump to content

Recommended Posts

Posted (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 by wombat778
Posted
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? 

Posted
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. 
 

  • 7 months later...
Posted
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.
  • 4 months later...
Posted (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 by Alighierian
Posted

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

Posted

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

Posted (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 by rem27

Intel® Core i7-7700K @4,20GHz - 64 Go RAM - GeForce GTX 1070 Ti - Windows Pro 64 bit - Stream Deck - HOTAS Warthog

  • 5 months later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...