Reduce the data size
#1

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
Reply
#2

Try to optimize your script and also check this out https://sampwiki.blast.hk/wiki/Keywords:...ives#.23pragma
Reply
#3

if i make more filterscripts it's ok?
Reply
#4

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.
Reply
#5

i understand, i will try to optimize the script, thank you Ironboy and Schneider.
Reply
#6

So depends only the memory of the host?
Reply
#7

No, has RAM 128 GB DDR3 and CPU xeon 12 core !
Reply
#8

Because is lag on server
Reply
#9

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.
Reply
#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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)