Jump to content
Sign in to follow this  
skelebob9

"Script lag" in vanilla game but high FPS

Recommended Posts

I often run into an issue where all scripts lag, and the ArmA UI starts to lag too.

For example, I'll start a mission and all will be fine. I'll get a slight hitch in FPS while everything loads, but then I go up to 40-50 FPS. The game runs fine, but all the scripts and the ArmA UI starts to lag:

  • When I die with a revive script, the revive UI doesn't show up and for my friend, the action to revive me doesn't show up for about 20 seconds after I've died.
  • When using addons, like ACE3, some of the scripts take about 20 seconds (there's a pattern here) to execute. For example, I can pick somebody up fine. It says 'left mouse button to release', so I press left mouse button. It does nothing, then finally drops them after the 20 or so seconds

Both of these are custom content and sure, they could have a flaw that means their content is laggy (I doubt this since no other user has the issues). What gets me, though, is even when I run a vanilla game, the lag is still there for the ArmA UI:

  • Using the debug console to do something (for example, hint format["%1", damage player]; then it doesn't run for about 15-20 seconds, then pops up.
  • Opening the pause menu, then pressing 'configure' doesn't open the drop-down menu for about 20 seconds, and even then it's opened behind the other menu items

I've reinstalled ArmA 3 since it started, I run vanilla and it still happens, I've even reinstalled Windows 10 since it started happening and completely reinstalled everything (drivers included). It still happens.

 

I get about 20-50 FPS depending on the circumstances in multiplayer, and 50-60 on singleplayer with lots of AI bringing it down to about 30 FPS. My PC is more than capable of running the game:

  • AMD FX 4300 Quad-Core @ 4.0 GHz (overclocked; tried reverting to default 3.8 GHz but still happens)
  • AMD R9 270X @ 1100 MHz (overclocked; tried reverting to default 1050 MHz but still happens)
  • HDD @ 7200rpm with 300 GB (60%) free space
  • 6 GB 1333 MHz RAM

This doesn't always happen and when it does happen, restarting the game doesn't seem to fix it. ArmA is using about 60% of my CPU and about 30% of my memory when it happens. Strangely enough it's always using around 80-100% of my disk.

 

I've tried to 'tweak' the ArmA 3 settings through the config, doing all the popular stuff like GPU_MaxFramesAhead=1 and stuff

 

I've honestly got no idea what to do.

Share this post


Link to post
Share on other sites

I often had the same issue-especially the options menu not opening for quite a while. Often happened on very bust script heavy missions. putting Arma on an SSD mostly fixed the issue for me-might be worth a try.

Share this post


Link to post
Share on other sites

Does it happen with all profiles or a new one? Also, what is the size of your profile file? (Arma 3 - Other Profiles\profile name\, .vars.Arma3Profile and .Arma3Profile)

Share this post


Link to post
Share on other sites

I often had the same issue-especially the options menu not opening for quite a while. Often happened on very bust script heavy missions. putting Arma on an SSD mostly fixed the issue for me-might be worth a try.

 

I'll try that as soon as I get an SSD to put it on  :P

 

 

Does it happen with all profiles or a new one? Also, what is the size of your profile file? (Arma 3 - Other Profiles\profile name\, .vars.Arma3Profile and .Arma3Profile)

 

It happens with both profiles I tested it on, default and a new one.

*.vars.Arma3Profile is 267 KB, while the .Arma3Profile is 15 KB.

Share this post


Link to post
Share on other sites

Buy a decent CPU, a SSD won't help you really in this case.

 

AMD CPU - 1 thread per core

INTEL CPU - 2 threads per core

 

https://en.wikipedia.org/wiki/Multithreading_(computer_architecture)

 

AMD CPU's are good for home office or internet browsing but worst you can have for gaming.

 

other question:

do you use any no fatigue/sway mod, if yes do stop use them, most of them are horrible scripts that do use heavy loop's.

https://forums.bistudio.com/topic/186348-q-net-nostamina/

Share this post


Link to post
Share on other sites

I don't use any no fatigue/sway mod, and my friend has an AMD CPU and it works just fine for him, he's never experienced it, so I don't think it's the CPU that's the issue. I'm comfortable with my CPU for gaming and it powers me through anything I've thrown at it so far.

 

I did find the issue, though. As ineptaphid said, it happened when there were scripts, but not necessarily "busy" scripts. I had a { waitUntil SafeToLoad }; in my script and when I set SafeToLoad=true; then it started to slowly chug from 60 fps to 8 fps. Without the waitUntil, it stuck at around 40-60 depending on firefights etc. When I first started experiencing this, however, I didn't have any scripts other than Farooq's revive, which confuses me a little. Nevertheless I've discovered that it's endless scripts that are causing the issue, so I can work from here.

 

Thanks for your suggestions!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×