Posts: 14
Threads: 1
Joined: Jul 2011
Reputation:
0
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
Posts: 14
Threads: 1
Joined: Jul 2011
Reputation:
0
if i make more filterscripts it's ok?
Posts: 515
Threads: 5
Joined: Jun 2007
Reputation:
0
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.
Posts: 14
Threads: 1
Joined: Jul 2011
Reputation:
0
i understand, i will try to optimize the script, thank you Ironboy and Schneider.
Posts: 14
Threads: 1
Joined: Jul 2011
Reputation:
0
So depends only the memory of the host?
Posts: 14
Threads: 1
Joined: Jul 2011
Reputation:
0
No, has RAM 128 GB DDR3 and CPU xeon 12 core !
Posts: 1,733
Threads: 20
Joined: Nov 2010
Reputation:
0
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.
Posts: 14
Threads: 1
Joined: Jul 2011
Reputation:
0
24.01.2015, 19:54
(
Последний раз редактировалось prigat10; 24.01.2015 в 21:10.
)
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.