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.
Description
Details
- Legacy ID
- 1321742097
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Category
- Performance
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
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.