Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BFT frame drop on update #1181

Closed
SecMeyo opened this issue May 14, 2015 · 9 comments
Closed

BFT frame drop on update #1181

SecMeyo opened this issue May 14, 2015 · 9 comments

Comments

@SecMeyo
Copy link

SecMeyo commented May 14, 2015

i got a frame drop of ~30 fps when blue force tracking updates. does anyone else experience this?
i am not able to reproduce this in the editor.

Measured using
[]spawn{frames = true;while{frames} do {hintSilent format["%1", round diag_fps];sleep 0.05;}}

Symptoms:
screen freezes for ~0.1 sec exactly when the map markers update their position

Steps to reproduce:

  1. create mission with BFT Module
  2. load it on a dedicated Server
  3. play
@nicolasbadano
Copy link
Contributor

We've had a previous report of this, but it got fixed when restarting the mission and we couldn't repro anymore (@bux). My guess is that's totally unrelated to the bft (other things are calculated on 1 sec intervals too).

@nicolasbadano
Copy link
Contributor

BTW; please follow this instructions for reporting issues: http://ace3mod.com/wiki/user/how-to-report-an-issue.html

Edit the report above to comply; we specially need the rpt log

@SecMeyo
Copy link
Author

SecMeyo commented May 15, 2015

is there any way to disable bft or change the update interval mid-mission? tried to change ace_map_bft_interval at runtime :p

@PabstMirror PabstMirror self-assigned this May 17, 2015
@PabstMirror
Copy link
Contributor

ace_map_BFT_markers was never getting reset, and we added new marker string to the array each update.

With 45 groups, after 3 minutes count ace_map_BFT_markers = 8100 and was taking
4.39136s / 284 = 15.4625ms. After an hour it would be pretty bad.

after fix, 45 groups seemed to stay arround 5.5ms.

You can change ace_map_BFT_Interval on the module, but can't change it at runtime because it's only used at start.

@nicolasbadano
Copy link
Contributor

Nice find @PabstMirror, gj!

@bux
Copy link
Member

bux commented May 17, 2015

That could really be the cause of the frame drops I was experiencing.

@jaynus
Copy link
Contributor

jaynus commented May 17, 2015

5.5ms

Thats really bad....can you point me to this code? What is it doing? It sounds like it needs some faster string functions tbh.

@PabstMirror
Copy link
Contributor

map/functions/fnc_blueForceTrackingUpdate.sqf
that's with 45 groups, which should be untypically high

@nicolasbadano
Copy link
Contributor

Yes, 5.5 ms seems high, but it's only done one frame a sec + the bft will be completely changed soon.

alganthe pushed a commit to alganthe/ACE3ganthe that referenced this issue May 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants