SA-MP Forums Archive
[Help] Stack/heap size - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Help] Stack/heap size (/showthread.php?tid=476280)



[Help] Stack/heap size - David (Sabljak) - 17.11.2013

I have this with -d3 compile

Код:
	

    Header size:          24152 bytes
    Code size:          5021872 bytes
    Data size:         18298672 bytes
    Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
    Total requirements:23361080 bytes
Maximum string in my Gamemod is [256];

should i put #pragma dynamic or what?


Re: [Help] Stack/heap size - Patrick - 17.11.2013

I believe Stack/heap size shows when it's compiled as -d3


Re: [Help] Stack/heap size - Konstantinos - 17.11.2013

Quote:
Originally Posted by pds2k12
Посмотреть сообщение
I believe Stack/heap size shows when it's compiled as -d3
Not only. It's also shown when it's not compiled with -d3 and there's problem with the stack/heap size (when it's shown by itself) and that's bad.

Before increasing the size of the memory, why don't you try to optimise the script a bit? Reduce large arrays that not all the elements are used etc.

Here's a really good thread related to that: https://sampforum.blast.hk/showthread.php?tid=57018


Re: [Help] Stack/heap size - David (Sabljak) - 17.11.2013

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Not only. It's also shown when it's not compiled with -d3 and there's problem with the stack/heap size (when it's shown by itself) and that's bad.

Before increasing the size of the memory, why don't you try to optimise the script a bit? Reduce large arrays that not all the elements are used etc.

Here's a really good thread related to that: https://sampforum.blast.hk/showthread.php?tid=57018
Yes thanks, i read that, im trying to optimise much as i can, but maybe i'm doing something wrong.

So i dont know if it's good to use pragma dynamic or just ignore that