PAWN Complimer Output - 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: PAWN Complimer Output (
/showthread.php?tid=426651)
PAWN Complimer Output -
FalconeX - 29.03.2013
Quote:
Header size: 4580 bytes
Code size: 287520 bytes
Data size: 242056 bytes
Stack/heap size: 16384 bytes; estimated max. usage=8656 cells (34624 bytes)
Total requirements: 550540 bytes
|
How can I lower the Total Requirements?
Re: PAWN Complimer Output -
MP2 - 30.03.2013
By using less memory. Decrease the size of your variables.
To be honest, large resource-intensive gamemodes are always going to go over the memory limit unless you're EXTREMELY memory efficient and/or have not much stuff.
The memory allowance can be set using #pragma dynamic. Your script wants 550540. Set it above that and it should be fine.
See these topics for help with optimisation:
https://sampforum.blast.hk/showthread.php?tid=55261
https://sampforum.blast.hk/showthread.php?tid=57018
FYI: 550540 bytes is 0.525036 MB.
EDIT: Actually, you may want to set #pragma dynamic just higher than 34624 (36,000 perhaps). I think this is the memory that matters in this case. I'm not 100% sure.