Page MenuHomeFeedback Tracker

selectBestPlaces-command is much more heavy than in ArmA2 (CO)
Closed, ResolvedPublic

Description

I use this command a lot in my dynamic mission concept that I basically copy-pasted from ArmA2 to ArmA3. In A2 maps selectBestPlaces-command work almost unnoticeable smooth, but with Stratis the game halts often for ~0.5sec time when the command is used (especially when near water). Performance difference between A2 CO and A3 is massive.

Details

Legacy ID
1321742097
Severity
None
Resolution
Open
Reproducibility
Always
Category
Performance
Steps To Reproduce

FindPos.sqf
private ["_position", "_radius", "_expression", "_precision", "_sourcesCount"];
_position = _this select 0;
_radius = _this select 1;
_expression = _this select 2;
_precision = 7;
_sourcesCount = 1;
_bestplace = selectBestPlaces [_position,_radius,_expression,_precision,_sourcesCount];
_bestplace

In init.sqf
FUNKTIO_POS=compile preprocessfileLineNumbers "FindPos.sqf";

Then search places with these (try looping it e.g. with "while do"):
_st = [vehicle player,600,"(1 + trees) * (1 - sea)"] CALL FUNKTIO_POS;
_st = [vehicle player, 600,"(1 + houses) * (1 - sea)"] CALL FUNKTIO_POS;
_st = [vehicle player, 600,"(1 + trees) * (1 + houses)* (1 + hills) * (1 - sea)"] CALL FUNKTIO_POS;

Especially when moving near the ocean, the stutter seem to get worse. E.g. When near the spartan, there is heavy stutter.

Event Timeline

SaOk edited Steps To Reproduce. (Show Details)Jun 26 2013, 1:35 PM
SaOk edited Additional Information. (Show Details)
SaOk set Category to Performance.
SaOk set Reproducibility to Always.
SaOk set Severity to None.
SaOk set Resolution to Open.
SaOk set Legacy ID to 1321742097.May 7 2016, 2:58 PM
MadDogX added a subscriber: MadDogX.May 7 2016, 2:58 PM

Mass closing ancient tickets with no activity for > 12 months; assume fixed or too trivial.

If this issue is still relevant in current dev build, please re-post.