Resource system: Difference between revisions

imported>Leoetlino
imported>Leoetlino
(→‎Memory allocation: parent heap)
Line 67: Line 67:


'''Warning''': Failure to add entries to the RSTB for a large number of resources may result in system instability. The purpose of this fallback appears to be to allow loading resources during development even without an entry in the resource size table. As such, the system will often allocate way more memory than needed to account for any dynamic allocation that the resource class may do.  
'''Warning''': Failure to add entries to the RSTB for a large number of resources may result in system instability. The purpose of this fallback appears to be to allow loading resources during development even without an entry in the resource size table. As such, the system will often allocate way more memory than needed to account for any dynamic allocation that the resource class may do.  
=== Parent heap ===
If the heap size is smaller than 0x80000 bytes, the heap is created with the "arena for resource S" (small) heap as parent.
Otherwise, the parent heap is the "arena for resource L" (large).


=== Resource size table ===
=== Resource size table ===
Anonymous user