mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 10:42:07 +00:00
Optimize allocation of buffers for sections
Instead of allocating 0x4000 bytes for all sections and resize them as needed, allocate 0x8000 bytes and don't let them to be resized. This is the max possible size (ROM0 when ROMX sections aren't present). Buffers are not needed for RAM sections, this patch changes the code so that it only allocates buffers for ROM sections. Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>
This commit is contained in:
@@ -80,8 +80,6 @@
|
||||
|
||||
*/
|
||||
|
||||
#define MAXSECTIONSIZE 0x4000
|
||||
|
||||
#define NAME_DB "db"
|
||||
#define NAME_DW "dw"
|
||||
#define NAME_RB "rb"
|
||||
|
||||
Reference in New Issue
Block a user