Posts: 2,856
Threads: 6
Joined: Jun 2007
Reputation:
0
The truth is this message doesn't tell us anything important
It just shows how much bytes the header, code, data and stack/heap uses
Just disable it and come again if the compiler pops it up by itself, than you should worry
Posts: 235
Threads: 7
Joined: Nov 2013
Reputation:
0
Do you use strings[256] and over in your script?
Posts: 198
Threads: 56
Joined: Aug 2009
Reputation:
0
Don't you think keeping track of how many bytes of RAM is being used in the script important?
Posts: 2,856
Threads: 6
Joined: Jun 2007
Reputation:
0
No because you should be aware of how many bytes you use
If you split the bytes down you get around 4k that you could use in a function + all function called by the first one
Even for long strings 4000 cells are enough...
Exceptions could be a temp array for checking data in a streamer or systems with huge global arrays
But even there you could use optimise your code and go below that limit
The other numbers from header, code and data are unimportant because you cant change anything about them
Posts: 198
Threads: 56
Joined: Aug 2009
Reputation:
0
Let me rephrase my question: Is 1233 cells (4932 bytes) of Heap okay? And why does my bytes of stack never drop down?
Posts: 2,856
Threads: 6
Joined: Jun 2007
Reputation:
0
The size of the stack/heap block needs to be known before compilation, therefore it is a fixed amount of 16kB
The 1233 cells aren't all function with local memory, it is the highest number of cells used by one function
Means there could be 50 functions using 150 cells and only one using 1233 cells
Posts: 198
Threads: 56
Joined: Aug 2009
Reputation:
0
So there's basically just a single function using 1233 cells instead of different local variables totaling to 1233 altogether?
Posts: 2,856
Threads: 6
Joined: Jun 2007
Reputation:
0
Yes it is just one function, the obvious reason is that the stack gets reseted after each call
The call could be either a native public calling x functions or a timer public (no other way to start a function in pawn)