Compiler suddenly shows size requirements - 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: Compiler suddenly shows size requirements (
/showthread.php?tid=327233)
Compiler suddenly shows size requirements -
ikkentim - 20.03.2012
Hello, Since I added some data arrays to my code, it suddenly showed this in the compiler:
Код:
Header size: 8924 bytes
Code size: 919204 bytes
Data size: 4511384 bytes
Stack/heap size: 16384 bytes; estimated max. usage=5214 cells (20856 bytes)
Total requirements: 5455896 bytes
I see this isn't a problem, but why is it suddenly here, and what does it exactly mean?
Thanks in advance!
Re: Compiler suddenly shows size requirements -
.FuneraL. - 20.03.2012
Quote:
Originally Posted by ikkentim
Hello, Since I added some data arrays to my code, it suddenly showed this in the compiler:
Код:
Header size: 8924 bytes
Code size: 919204 bytes
Data size: 4511384 bytes
Stack/heap size: 16384 bytes; estimated max. usage=5214 cells (20856 bytes)
Total requirements: 5455896 bytes
I see this isn't a problem, but why is it suddenly here, and what does it exactly mean?
Thanks in advance!
|
You are using a lot of unneeded cells, change the value of strings and other.
Re: Compiler suddenly shows size requirements -
ikkentim - 20.03.2012
Quote:
Originally Posted by .FuneraL.
You are using a lot of unneeded cells, change the value of strings and other.
|
Edit:None of them are unused.
Re: Compiler suddenly shows size requirements -
Roel - 20.03.2012
Well I have this too sometimes, and I fix it by setting all the big cells (strings) at the top of the gamemode.
So when you have a function that needs string[2048];
I don't put this at the top of the function, but I put this at the top of the gamemode.
Don't know if it change anything, but the annoying messages are gone.
Re: Compiler suddenly shows size requirements -
RoleplayEditor - 20.03.2012
Your script or Gamemode is getting higher..for your PC.
That is why this comes.
Re: Compiler suddenly shows size requirements - Zeex_ - 20.03.2012
Increase stack size with #pragma dynamic and it should be gone