mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
CreateLitter / syncEvents performance fixes
This commit is contained in:
parent
ce1256b75f
commit
e45bd43e5e
@ -118,8 +118,9 @@ if(!isServer) then {
|
|||||||
};
|
};
|
||||||
["SEH", FUNC(_handleSyncedEvent)] call FUNC(addEventHandler);
|
["SEH", FUNC(_handleSyncedEvent)] call FUNC(addEventHandler);
|
||||||
["SEH_s", FUNC(_handleRequestSyncedEvent)] call FUNC(addEventHandler);
|
["SEH_s", FUNC(_handleRequestSyncedEvent)] call FUNC(addEventHandler);
|
||||||
[FUNC(syncedEventPFH), 0.5, []] call CBA_fnc_addPerFrameHandler;
|
if (isServer) then {
|
||||||
|
[FUNC(syncedEventPFH), 0.5, []] call CBA_fnc_addPerFrameHandler;
|
||||||
|
};
|
||||||
call FUNC(checkFiles);
|
call FUNC(checkFiles);
|
||||||
|
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@ if((count GVAR(allCreatedLitter)) > _maxLitterCount ) then {
|
|||||||
GVAR(allCreatedLitter) pushBack [ACE_time, [_litterObject]];
|
GVAR(allCreatedLitter) pushBack [ACE_time, [_litterObject]];
|
||||||
|
|
||||||
if(!GVAR(litterPFHRunning) && {GVAR(litterCleanUpDelay) > 0}) then {
|
if(!GVAR(litterPFHRunning) && {GVAR(litterCleanUpDelay) > 0}) then {
|
||||||
|
GVAR(litterPFHRunning) = true;
|
||||||
[{
|
[{
|
||||||
{
|
{
|
||||||
if (ACE_time - (_x select 0) >= GVAR(litterCleanUpDelay)) then {
|
if (ACE_time - (_x select 0) >= GVAR(litterCleanUpDelay)) then {
|
||||||
|
Loading…
Reference in New Issue
Block a user