mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
Replace sleep with uiSleep
see the below links for more info. uiSleep is based off of a more accurate method of tracking time, whereas sleep can fluctuate depending on application performance since it is based on framerate. https://community.bistudio.com/wiki/uiSleep https://community.bistudio.com/wiki/sleep_vs_uiSleep https://community.bistudio.com/wiki/sleep
This commit is contained in:
@@ -103,7 +103,7 @@ if(!isDedicated)then{
|
||||
//};
|
||||
_plyPos = [Player] call FNC_getPos;
|
||||
};
|
||||
sleep _slpTime;
|
||||
uiSleep _slpTime;
|
||||
};
|
||||
};
|
||||
//Attempt a server cleanup - Not detectable..
|
||||
@@ -121,7 +121,7 @@ if(isServer)then{
|
||||
{
|
||||
if (local _x) then {
|
||||
_x call dayz_perform_purge;
|
||||
sleep 0.025;
|
||||
uiSleep 0.025;
|
||||
_delQtyLights = _delQtyLights + 1;
|
||||
} else {
|
||||
if (!alive _x) then {
|
||||
@@ -130,13 +130,13 @@ if(isServer)then{
|
||||
_nearby = {(isPlayer _x) && (alive _x)} count (_pos nearEntities [["CAManBase","AllVehicles"], 420]);//Use calculated range here.
|
||||
if (_nearby==0) then {
|
||||
_x call dayz_perform_purge;
|
||||
sleep 0.025;
|
||||
uiSleep 0.025;
|
||||
_delQtyLights = _delQtyLights + 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
sleep 0.001;
|
||||
uiSleep 0.001;
|
||||
} forEach _missonLights;
|
||||
if (_delQtyLights > 0) then {
|
||||
_qty = count _missonLights;
|
||||
@@ -147,7 +147,7 @@ if(isServer)then{
|
||||
|
||||
while{true}do{
|
||||
[] spawn server_spawnCleanLightpoints;
|
||||
sleep 30;
|
||||
uiSleep 30;
|
||||
};
|
||||
};
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user