FavBar: perf optimization - new 5 sec event

This commit is contained in:
Raymix 2017-08-02 22:07:55 +01:00
parent a09c53b723
commit 49e67d24d4
3 changed files with 6 additions and 3 deletions

View File

@ -162,9 +162,6 @@ if (EPOCH_debugMode) then {
// player to player trade loop
call EPOCH_TradeLoop;
//Updates favorites bar
call epoch_favBar_refresh;
// blank out unused hud elements and prepare for next loop
_hudIndex = missionNamespace getVariable [format["EPOCH_dynHUD_%1","topRight"],1];
for "_i" from _hudIndex to 9 do {

View File

@ -0,0 +1,2 @@
//Updates favorites bar
call epoch_favBar_refresh;

View File

@ -44,6 +44,10 @@ class CfgMasterLoop
{
delay = 600;
};
class Event8
{
delay = 5; //used for FavBar, adjust as required
};
};
};