Skip to content

Improved core brain performance#478

Open
nk3nny wants to merge 2 commits intomasterfrom
improved-core-brain-performance
Open

Improved core brain performance#478
nk3nny wants to merge 2 commits intomasterfrom
improved-core-brain-performance

Conversation

@nk3nny
Copy link
Owner

@nk3nny nk3nny commented Jan 18, 2026

Adds performance improvements to brains.sqf evaluation logic-- as well as the danger.fsm handling of variables.

Test Situations:

Two soldiers (t1 and t2) and an observer placed on Stratis.

Script run 10000 times, four times:


private _time = time + 2; 
[t1, [  
    [1, [2733.44,5782.12,2.65515], _time, player],  
    [8, [2885.58,5761.49,30.3456], _time, t2],  
    [6, [2740.27,5776.39,2.95648], _time, objNull],  
    [5, [2733.44,5782.12,2.65515], _time, player]  
]] call lambs_danger_fnc_brain;

UNMODIFIED

0.0131
0.0132
0.0134
0.0133

MODIFIED

0.0102
0.0099
0.0098
0.0100

Adds performance improvements to brains.sqf evaluation logic-- as well as the danger.fsm handling of variables.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant