EpochModTeam / Epoch

Epoch Survival Game Mode for ARMA 3
http://epochmod.com/
Other
91 stars 82 forks source link

Battleye speedup #982

Closed mr-guard closed 6 years ago

mr-guard commented 6 years ago

Battleye filters are known to be a huge performance bottleneck. Since there are a lot of script commands that you simply kick for in any case, why not remove them from BE filters and use: https://community.bistudio.com/wiki/CfgDisabledCommands instead

This way battleye does not need to scan for them.

mr-guard commented 6 years ago

A full list of said commands loadFile setFriend setAmmo enableFatigue setUnitRecoilCoefficient callExtension enableCollisionWith removeAllItems removeAllActions createTeam forceAddUniform removeAllMPEventHandlers setDammage displaySetEventHandler addMPEventHandler removeAllMissionEventHandlers ctrlClassName ctrlModel ctrlModelDirection ctrlModelSide ctrlModelUp setGroupIconsVisible setGroupIconsSelectable setGroupIconParams addGroupIcon

Ahriana commented 6 years ago

this has been suggested in the past #728

vbawol commented 6 years ago

@RZSenfo This does sound like a good reason to make use of CfgDisabledCommands, and I am all for removing scripts.txt filters lines. If you want please make a pull request against the experimental branch to add these changes. 👍

vbawol commented 6 years ago

Thanks for the suggestion and the pull request https://github.com/EpochModTeam/Epoch/pull/983