mzxrules Posted March 8, 2014 Share Posted March 8, 2014 Where can I find how much memory is being allocated to an actor instance? Link to comment Share on other sites More sharing options...
0 Airikita Posted March 8, 2014 Share Posted March 8, 2014 Yupp.... luff dat diggun... I'd say it's within the actor, but then again.... there must be a preset value for each category, or I am mistaken... Would be something like: <Actor File Size> + <variable RAM space extra> = RAM size for that actor Link to comment Share on other sites More sharing options...
0 mzxrules Posted March 8, 2014 Author Share Posted March 8, 2014 The ovl file is a separate entity from the actor instance (by instance I mean the variables that make up one copy of an actor), and I can already calculate the size of that file in ram using the vram addresses in the actor table. Edit: I figured it out. It's located at offset 0x0E in what the wiki calls the data block. A virtual address within the actor table points to the start of this data block. 1 Link to comment Share on other sites More sharing options...
0 Airikita Posted March 8, 2014 Share Posted March 8, 2014 Oh yes, the virtual addresses.... those are mainly for the pointers within the actor file itself, not the external RAM values that get changed. Although they contain the size of the actor file as does the ROM offsets... Anyways, that might be useful for adding more variables to an actor... woo. (I went off-topic... idc) Link to comment Share on other sites More sharing options...
Question
mzxrules
Where can I find how much memory is being allocated to an actor instance?
Link to comment
Share on other sites
3 answers to this question
Recommended Posts