mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 00:20:01 +00:00
bump libogc memory reserve to 256KB
wiimotes were acting up without it
This commit is contained in:
parent
73e4adf8dc
commit
70586d1f66
@ -7,7 +7,7 @@ PERF_TEST = 0
|
|||||||
WHOLE_ARCHIVE_LINK = 0
|
WHOLE_ARCHIVE_LINK = 0
|
||||||
BIG_STACK = 0
|
BIG_STACK = 0
|
||||||
|
|
||||||
PC_DEVELOPMENT_IP_ADDRESS = "192.168.1.13"
|
PC_DEVELOPMENT_IP_ADDRESS = "192.168.1.6"
|
||||||
PC_DEVELOPMENT_UDP_PORT = 3490
|
PC_DEVELOPMENT_UDP_PORT = 3490
|
||||||
|
|
||||||
# system platform
|
# system platform
|
||||||
|
@ -75,12 +75,13 @@ bool gx_init_mem2()
|
|||||||
// BIG NOTE: MEM2 on the Wii is 64MB, but a portion of that is reserved for
|
// BIG NOTE: MEM2 on the Wii is 64MB, but a portion of that is reserved for
|
||||||
// IOS. libogc by default defines the "safe" area for MEM2 to go from
|
// IOS. libogc by default defines the "safe" area for MEM2 to go from
|
||||||
// 0x90002000 to 0x933E0000. However, from my testing, I've found I need to
|
// 0x90002000 to 0x933E0000. However, from my testing, I've found I need to
|
||||||
// reserve about 128KB for stuff like network and USB to work correctly.
|
// reserve about 256KB for stuff like network and USB to work correctly.
|
||||||
// However, other sources says these functions need at least 0xE0000 bytes,
|
// However, other sources says these functions need at least 0xE0000 bytes,
|
||||||
// 7/8 of a megabyte, of reserved memory to do this. My initial testing
|
// 7/8 of a megabyte, of reserved memory to do this. My initial testing
|
||||||
// shows that we can work with only 128KB, but if some stuff mysteriously
|
// shows that we can work with only 128KB, but we use 256KB becuse testing
|
||||||
// stops working, try fiddling with this size.
|
// has shown some stuff being iffy with only 128KB, mainly wiimote stuff.
|
||||||
u32 size = SYS_GetArena2Size() - 1024 * 128;
|
// If some stuff mysteriously stops working, try fiddling with this size.
|
||||||
|
u32 size = SYS_GetArena2Size() - 1024 * 256;
|
||||||
|
|
||||||
void *heap_ptr = (void *) ROUNDUP32(((u32) SYS_GetArena2Hi() - size));
|
void *heap_ptr = (void *) ROUNDUP32(((u32) SYS_GetArena2Hi() - size));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user