Jump to content

Export.lua causing stuttering


Recommended Posts

I posted this in the SRS topic in "Mods and Apps" but I decided I should post it here as well.

 

Unfortunately, I am one of the players who has been negatively impacted by performance in 2.7 in VR, specifically stuttering caused by spikes in CPU frame times. This is especially bad when joining any multiplayer server. Every 1.5 to 2 seconds I see a spike in CPU frame time. Here is an example using the F-14 caucases take off instant action mission:

 

oAaRUMv.jpg

 

This is a freshly repaired install of DCS with no mods other than SRS. The issue is clearly visible on the CPU graph. If I do anything more strenuous than fly around in an empty mission, especially joining a multiplayer server, these spikes are enough to cause a visible stutter in the headset every 2 seconds. It has made VR unplayable for me, especially online.

 

I have been experimenting with settings in DCS, NVidia control panel, Process Lasso, enabling and disabling various mods etc and I think I have finally tracked down the source of my issues. It seem that my problem is related to the Exports.lua file found in Saved Games\DCS.openbeta\Scripts. My Exports.lua file just has a single line related to SRS:

 

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

 

I have discovered that if I delete the Exports.lua file the issue goes away:

 

JOXesBq.jpg

 

Not only are the spikes in CPU frame time gone, but the average CPU frame time is 1 - 2 ms lower. The headset was on the table in the same position for both test runs, all settings were the same, and the applications running in the background in windows was identical in each case. The only difference was the deleted Export.lua file. As a test I tried joining one of the hoggit servers with Export.lua deleted and 90% of the stutters in VR are gone.

 

Note that these stutters happen even when SRS is not actually running, just having the entry in the Export.lua file is enough to cause them.

 

  • Like 1
Link to comment
Share on other sites

export lua basically calls into the game for information so it can depending on the export have significant CPU impact.. for some very innocuous settings

SYSTEM SPECS: Hardware Intel Corei7-9700K @ 5.1 GHz, 32Gb RAM, EVGA 3090 XC3, Dell S2716DG, Virpil T50CM3 Throttle, T-50CM2 Base & Constellation Alpha + MFG Crosswinds V2, HP Reverb G2 @ 2836 x 2768
SOFTWARE: Microsoft Windows 11, VoiceAttack & VIACOM PRO, TacView

VR Stuff:   My Settings for 3090 and G2  My Settings for 1080ti  Shaders MOD for VR  My variant of Kegetys mod with clear water and also IC PASS for current beta & stable, Patch Status

1569924735_WildcardsBadgerFAASig.jpg.dbb8c2a337e37c2bfb12855f86d70fd5.jpg

Link to comment
Share on other sites

Posted (edited)
On 5/18/2021 at 12:43 PM, MPK said:

I posted this in the SRS topic in "Mods and Apps" but I decided I should post it here as well.

 

Unfortunately, I am one of the players who has been negatively impacted by performance in 2.7 in VR, specifically stuttering caused by spikes in CPU frame times. This is especially bad when joining any multiplayer server. Every 1.5 to 2 seconds I see a spike in CPU frame time. Here is an example using the F-14 caucases take off instant action mission:

 

oAaRUMv.jpg

 

This is a freshly repaired install of DCS with no mods other than SRS. The issue is clearly visible on the CPU graph. If I do anything more strenuous than fly around in an empty mission, especially joining a multiplayer server, these spikes are enough to cause a visible stutter in the headset every 2 seconds. It has made VR unplayable for me, especially online.

 

I have been experimenting with settings in DCS, NVidia control panel, Process Lasso, enabling and disabling various mods etc and I think I have finally tracked down the source of my issues. It seem that my problem is related to the Exports.lua file found in Saved Games\DCS.openbeta\Scripts. My Exports.lua file just has a single line related to SRS:

 

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

 

I have discovered that if I delete the Exports.lua file the issue goes away:

 

JOXesBq.jpg

 

Not only are the spikes in CPU frame time gone, but the average CPU frame time is 1 - 2 ms lower. The headset was on the table in the same position for both test runs, all settings were the same, and the applications running in the background in windows was identical in each case. The only difference was the deleted Export.lua file. As a test I tried joining one of the hoggit servers with Export.lua deleted and 90% of the stutters in VR are gone.

 

Note that these stutters happen even when SRS is not actually running, just having the entry in the Export.lua file is enough to cause them.

 

The only 'scripts' folder that I have in 'Saved Games/DCS Open Beta' is the one I created for 'Rescue Helo' and 'Random Air Traffic' scripts.

There is no 'export.lua' in that folder, however, I do have one in the main game folder 'DCS Open Beta/scripts'.

This one seem to mostly reference 'Lock On' and the first line is "DO NOT EDIT". What would happen if I delete this one?

 

 

Export.lua.jpg

Export.lua


Edited by rayrayblues

ASUS 990FX R2 Sabertooth MoBo  -  AMD FX 9590 @4.7Gb. No OC
GSkill RipJaws DDR3 32 Gb @1866 MHZ  -  EVGA GeForce GTX 1660Ti 6Gb DDR5
Game drive, Samsung 980 M.2 EVO 1Tb SSD  -  Win10 Pro 21H1 on Samsung 860 EVO 500Gb SATA SSD

Thrustmaster T-Flight HOTAS X  -  LG 32" 1920 X 1080 Monitor - Prestige ATX-PR800W PSU

Link to comment
Share on other sites

DCS itself doesn't produce this Export.lua file. It contains "hooks" used by mods such as Tacview, SRS and others.

So you're free to rename it so DCS cannot load it anymore.

A track or it didn't happen.

Link to comment
Share on other sites

7 hours ago, Flappie said:

DCS itself doesn't produce this Export.lua file. It contains "hooks" used by mods such as Tacview, SRS and others.

So you're free to rename it so DCS cannot load it anymore.

 

Do you mean the one in the main game folder  'DCS Open Beta/Scripts'?  Can I delete it?  Remember, that's the only one I have.

ASUS 990FX R2 Sabertooth MoBo  -  AMD FX 9590 @4.7Gb. No OC
GSkill RipJaws DDR3 32 Gb @1866 MHZ  -  EVGA GeForce GTX 1660Ti 6Gb DDR5
Game drive, Samsung 980 M.2 EVO 1Tb SSD  -  Win10 Pro 21H1 on Samsung 860 EVO 500Gb SATA SSD

Thrustmaster T-Flight HOTAS X  -  LG 32" 1920 X 1080 Monitor - Prestige ATX-PR800W PSU

Link to comment
Share on other sites

Posted (edited)

I asked you to rename it, not delete it. 😉

 

EDIT: sorry,  I misread your post. Donc delete nor rename the Export.lua file found in the main game folders.


Edited by Flappie
  • Thanks 1

A track or it didn't happen.

Link to comment
Share on other sites

i would not delete something from the main game folder ... if you are experiencing stuttering and you don't have an export.lua in saved games\dcs\scripts deleting or renaming the file in the main game directory is not likely to help you as all the entries you showed in the file from your post were remarked out... 

 

I would suggest that you have something else causing a problem . you can try RENAMING the saved games directory,  and removing your mods/running repair

  • Thanks 1

SYSTEM SPECS: Hardware Intel Corei7-9700K @ 5.1 GHz, 32Gb RAM, EVGA 3090 XC3, Dell S2716DG, Virpil T50CM3 Throttle, T-50CM2 Base & Constellation Alpha + MFG Crosswinds V2, HP Reverb G2 @ 2836 x 2768
SOFTWARE: Microsoft Windows 11, VoiceAttack & VIACOM PRO, TacView

VR Stuff:   My Settings for 3090 and G2  My Settings for 1080ti  Shaders MOD for VR  My variant of Kegetys mod with clear water and also IC PASS for current beta & stable, Patch Status

1569924735_WildcardsBadgerFAASig.jpg.dbb8c2a337e37c2bfb12855f86d70fd5.jpg

Link to comment
Share on other sites

Posted (edited)

I was talking about renaming the Saves Games\DCS...\Scripts\Export.lua, not the one from the main game files. I didn't see rayray was talking bout that one.


Edited by Flappie
  • Like 1

A track or it didn't happen.

Link to comment
Share on other sites

no worries we are both aiming at the same outcome! 🙂

SYSTEM SPECS: Hardware Intel Corei7-9700K @ 5.1 GHz, 32Gb RAM, EVGA 3090 XC3, Dell S2716DG, Virpil T50CM3 Throttle, T-50CM2 Base & Constellation Alpha + MFG Crosswinds V2, HP Reverb G2 @ 2836 x 2768
SOFTWARE: Microsoft Windows 11, VoiceAttack & VIACOM PRO, TacView

VR Stuff:   My Settings for 3090 and G2  My Settings for 1080ti  Shaders MOD for VR  My variant of Kegetys mod with clear water and also IC PASS for current beta & stable, Patch Status

1569924735_WildcardsBadgerFAASig.jpg.dbb8c2a337e37c2bfb12855f86d70fd5.jpg

Link to comment
Share on other sites

On 5/20/2021 at 11:38 PM, Flappie said:

I asked you to rename it, not delete it. 😉

 

EDIT: sorry,  I misread your post. Donc delete nor rename the Export.lua file found in the main game folders.

 

 

           SRsfa58.gif

ASUS 990FX R2 Sabertooth MoBo  -  AMD FX 9590 @4.7Gb. No OC
GSkill RipJaws DDR3 32 Gb @1866 MHZ  -  EVGA GeForce GTX 1660Ti 6Gb DDR5
Game drive, Samsung 980 M.2 EVO 1Tb SSD  -  Win10 Pro 21H1 on Samsung 860 EVO 500Gb SATA SSD

Thrustmaster T-Flight HOTAS X  -  LG 32" 1920 X 1080 Monitor - Prestige ATX-PR800W PSU

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...