SA-MP Forums Archive
Saving memory with const arrays - 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: Saving memory with const arrays (/showthread.php?tid=343683)



Saving memory with const arrays - MP2 - 18.05.2012

Does making an array const save memory? i.e. for random spawns.


Re: Saving memory with const arrays - Vince - 18.05.2012

If I'm not mistaken, constant variables are not saved on the stack. So it does free up some memory in a way.