Bug #28689

Lag when doing Examine actions, progressbar lag and weird lag when exiting a vehicle

Added by admin about 3 years ago. Updated about 3 years ago.

Status:Expired Start date:02/15/2012
Priority:Normal Due date:03/09/2012
Assignee:Sickboy % Done:

60%

Category:-
Target version:1.14
Component:sys_wounds Affected Version:
Close Reason:

Description

I'm getting a lot of lag now when trying to do "Examine" actions, as well as progress bar lag when using morphine, epi, first aid, etc.

Also, I was getting some weird lag where I would exit a vehicle immediately, then the ACE "exiting" animation would play after the fact.

Only started happening after this recent update.

http://forums.bistudio.com/showthread.php?129084-ACE-for-OA-1-13&p=2106588&viewfull=1#post2106588

History

Updated by Sickboy about 3 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 50
  • Component set to sys_wounds

Cannot reproduce, please provide a repro mission and the RPT file.
Are you using the latest hotfixed version? (Released yesterday)

Updated by MavericK96 about 3 years ago

Yes, I am using the latest version. Let me get back to you with a repro. Need to test on a couple different missions to see if it's mission-dependent or not.

Updated by Kroky about 3 years ago

Yes I can confirm this too. I experience script lag since 527. I'm not sure when the script lag was introduced but the last time I played the same mission with build 522 there was no script lag. IMHO it not only affects healing (epi, morphine, stop bleeding and treating wounds) it also affects other ACE scripts like grenade throwing etc. It only occurs after some minutes of play, not right from the start of the mission. Using beta build 89223.

Updated by Sickboy about 3 years ago

  • Due date set to 02/20/2012
  • Status changed from Feedback to Assigned
  • Assignee set to Sickboy

Updated by Kroky about 3 years ago

I experienced this script lag on this exact mission: http://www.armaholic.com/page.php?id=15883&highlight=COVERT%2BSTRIKE
As I said before: same addons same mods with ACE 522 no script lag, with ACE 527 script lag the longer the mission goes on the worse it becomes.

Note you won't notice any script lag from the beginning. It starts after there is enemy contact and the enemy starts moving around and calls reinforcements.

If this is any help here is also the coop version of this mission: http://www.armaholic.com/page.php?id=15884&highlight=COVERT%2BSTRIKE

Updated by Sickboy about 3 years ago

  • Status changed from Assigned to In progress
  • % Done changed from 50 to 60
Few findings:
  • wounds fnc_isUncon is called two times each frame for the player:
    [23375,453.815,239.369,"x\ace\addons\sys_wounds\fnc_isUncon.sqf:4","EXPLODE_1 _this: _unit=Player1"]
    [23375,453.815,239.369,"x\ace\addons\sys_wounds\fnc_isUncon.sqf:4","EXPLODE_1 _this: _unit=Player1"]
    [23376,453.831,239.385,"x\ace\addons\sys_wounds\fnc_isUncon.sqf:4","EXPLODE_1 _this: _unit=Player1"]
    [23376,453.831,239.385,"x\ace\addons\sys_wounds\fnc_isUncon.sqf:4","EXPLODE_1 _this: _unit=Player1"]

    Though perhaps its genuine
  • Even though ace wounds enabled, I dont have ace wounds actions in self interaction or interaction menu?
  • Not yet been able to reproduce the script lag, but will let it run for a bit.

Updated by Sickboy about 3 years ago

Kroky what slot do you play, and what mission options?'
Also how do you start it, from MP Host/Editor, or SP Scenarios or Editor?

Updated by Sickboy about 3 years ago

I've tracked at least one of the isUncon calls per frame, in waitUntils of ace_sys_wounds_painFX, the other one is probably also used in such situation, so probably these are genuine and unrelated.

A similar situation is in bleedFX

Updated by MavericK96 about 3 years ago

I'm glad someone was able to reproduce it. It doesn't happen in something simple like placing a single unit on the editor, but it seems like missions where there are more scripts running it seems to happen.

I even noticed that while using 3D Reticules, they would lag tremendously, the result being that when you zoom in with an ACOG, there would be no reticule for several seconds. Then, if you zoomed back out to normal view, the reticule would appear and be "stuck" on the screen for a few seconds before disappearing.

Basically, any ACE script/animation feature seems to lag. This did not seem to be a problem in previous builds of ACE, even in complex missions.

Updated by Sickboy about 3 years ago

It would be really helpful if someone could provide a repro mission that didn't involve walking, ordering, waiting, and hoping to come across the issue.

Updated by Sickboy about 3 years ago

Some possible candidates of issues - please try and remove the pbo's temporary to see if the problem goes away:
  • ace_sys_cargo
  • ace_sys_repair
  • ace_sys_eject
  • ace_sys_arty*
  • ace_sys_stamina

Updated by Sickboy about 3 years ago

Released latest code on Six Updater.

Are you guys sure you are also running the latest build of CBA (b177), I guess so?

Updated by Kroky about 3 years ago

Like Maverick said, it happens after some time in a more complex mission like the one I linked to.
Script lag also occurs on grenade launcher (M203) animations, basically on every ACE script after some time.
I started the mission in SP.
Sorry can't setup a simple scenario for it. The mission above is the best example for it, I have.
Did you try it, Sickboy?

EDIT: will try the latest build

Updated by Sickboy about 3 years ago

Kroky wrote:

Like Maverick said, it happens after some time in a more complex mission like the one I linked to.
Script lag also occurs on grenade launcher (M203) animations, basically on every ACE script after some time.
I started the mission in SP.
Sorry can't setup a simple scenario for it. The mission above is the best example for it, I have.

As long as I cannot reproduce it reliably, it will be very hard to fix. I cannot spend hours on this problem currently, so if you want and can assist, please do try to find a better, shorter repro.

Also as mentioned, you can help out by removing the following PBO's to see if the problem disappears:
  • ace_sys_cargo
  • ace_sys_repair
  • ace_sys_eject
  • ace_sys_arty
  • ace_sys_stamina

then you can put them back 1 by 1 until the problem reappears, and we will have found the cause.

Did you try it, Sickboy?

Yes, this is what my results were based on.

EDIT: will try the latest build

How did it go?

Updated by Kroky about 3 years ago

I took a different approach to it and it seems the the script lag is mission specific. After playing some other missions I didnt't notice very much script lag. Sometimes it lags a little bit, espiecially when the mission is long. We still don't know what caused the lag in the above mission but as long as it concerns only a few missions it's not a problem. Weird is only the fact, that the very same mission with build 522 was running without any script lag...

BTW. the same effect after trying build 530 on beta 89223

Updated by rocko about 3 years ago

  • Due date changed from 02/20/2012 to 03/09/2012

Updated by rocko about 3 years ago

  • Status changed from In progress to Expired

Also available in: Atom PDF