Ppgtjmad / SimpleShops

[HG] Simple Shops
27 stars 8 forks source link

Lag every few seconds like BrianV1981 reported #61

Closed Kasper9683 closed 4 years ago

Kasper9683 commented 4 years ago

I am encountering the same bug as BrianV1981, I am experiencing "lag" spikes every few seconds when using SimpleShops. To stop this I remove simple shops from my mission.

Kasper9683 commented 4 years ago

After increasing and decreasing cleanup time, the problem still persisted.

Kasper9683 commented 4 years ago

After more experimenting, the issue persists even in an empty mission with SimpleShops. The best way to describe the problem is a freeze that lasts around a second which reoccurs every few seconds.

Ppgtjmad commented 4 years ago

@Kasper9683 Thanks for reporting, can you open the debug console while in editor and run this (with default SimpleShops mission):

arr = [];
arr pushBack diag_activeSQFScripts; 
arr pushBack diag_activeScripts;
copyToClipboard str arr;

Then Ctrl+V the result here, thank you.

Kasper9683 commented 4 years ago

[[["APS_Anims\bootstrap\init_all.sqf","APS_Anims\bootstrap\init_all.sqf",true,23],[" for ""_x"" from 1 to 4 do { endLoadingScreen; sleep 3; }; ","\gge_core\functions\fn_fixSplashScreen.sqf [gge_core_fnc_fixSplashScreen]",true,4],["

_csys_uuniform = ''; _csys_usurf = '';

while {true} do { _csys_uuniform_upd = uniform _this; _csy","real_camosystem\real_camosystem.sqf",true,1396],["#line 1 ""C:\Users\n_rd2\Documents\Arma 3\mpmissions\SimpleShops.Altis\HG\Functions\Server\fn_cleanup","C:\Users\n_rd2\Documents\Arma 3\mpmissions\SimpleShops.Altis\HG\Functions\Server\fn_cleanup.sqf",true,48],["HG_fnc_paycheck","HG\Functions\Client\Generic\fn_paycheck.sqf [HG_fnc_paycheck]",true,10],["fn_animalBehaviour_mainLoop","A3\functions_f\ambient\fn_animalBehaviour.sqf [BIS_fnc_animalBehaviour]",true,231],["fn_animalBehaviour_mainLoop","A3\functions_f\ambient\fn_animalBehaviour.sqf [BIS_fnc_animalBehaviour]",true,349],["BIS_fnc_debugConsoleExec","A3\functions_f\Debug\fn_debugConsoleExec.sqf [BIS_fnc_debugConsoleExec]",true,25],[" private _fnc_scriptNameParent = if (isNil '_fnc_scriptName') then {'BW_WMO_fnc_leave'} else {fnc","",true,1]],[8,1,0,1]]

Kasper9683 commented 4 years ago

That's what was produced when using the mission that comes with simple shops (I only renamed it). Thank you for the fast response I appreciate it, hopefully we can narrow down the issue and resolve it.

Ppgtjmad commented 4 years ago

Comment line 90 in HG\Setup\fn_serverInitialization.sqf that reads

HG_CLEANUP_THREAD = [] spawn HG_fnc_cleanup;

Check if the lag's gone. Report Back.

Kasper9683 commented 4 years ago

Removing the line that reads

HG_CLEANUP_THREAD = [] spawn HG_fnc_cleanup;

Fixed my issue entirely, Cheers!

Ppgtjmad commented 4 years ago

e3dd1219ef8bd249e6895aeface30cc3515e343e should fix the issue while keeping the cleanup active.

Ppgtjmad commented 4 years ago

Got enough feedback to know that the issue is fixed, closing.