Reduce the data size -
prigat10 - 24.01.2015
Hi, can you help me how i can reduce the data size? Because the server has lag...
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Header size: 14348 bytes
Code size: 2141092 bytes
Data size: 20801688 bytes
Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements:22973512 bytes
Thanks
Re: Reduce the data size -
Ironboy - 24.01.2015
Try to optimize your script and also check this out
https://sampwiki.blast.hk/wiki/Keywords:...ives#.23pragma
Re: Reduce the data size -
prigat10 - 24.01.2015
if i make more filterscripts it's ok?
Re: Reduce the data size -
Schneider - 24.01.2015
If you don't optimize the script, it won't make any difference if you devide them in filterscripts.
Just go through your script and check for arrays with unnecessary large sizes like strings with 256 slots reserved while they only need a few...) or huge multidimensional arrays.
Re: Reduce the data size -
prigat10 - 24.01.2015
i understand, i will try to optimize the script, thank you Ironboy and Schneider.
Re: Reduce the data size -
prigat10 - 24.01.2015
So depends only the memory of the host?
Re: Reduce the data size -
prigat10 - 24.01.2015
No, has RAM 128 GB DDR3 and CPU xeon 12 core !
Re: Reduce the data size -
prigat10 - 24.01.2015
Because is lag on server
Re: Reduce the data size -
PowerPC603 - 24.01.2015
Lag can be caused by several other things, it's not related at all to memory usage.
- huge loops
- too many fast timers, or timers that process ALOT
- bad internet connection
- badly written and unoptimized script
- too much code under OnPlayerUpdate
These can all be reasons why scripts are lagging.
There could be others as well.
Re: Reduce the data size -
prigat10 - 24.01.2015
I understand, i will check these things. Thank you ****** and PowerPC603.
The internet connection i think that is not the problem because not only me i have lag.
Under OnPlayerUpdate() are only 200-250 lines.