Rickster2527 / genplus-gx

Automatically exported from code.google.com/p/genplus-gx
Other
0 stars 0 forks source link

Unable to allocate memory Sram and States on Gamecube #367

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I can play any game but cant save, i have turned auto save on for all and 
disabled, tried to do on load and save menu but cant save.Im using an sd card 
4gb fat 32 and running on gamecube. Ive formatted to fat but happen the same 
thing unable to allocate memory.

Original issue reported on code.google.com by Lukaum...@gmail.com on 29 Dec 2013 at 9:06

GoogleCodeExporter commented 9 years ago
Gamecube RAM is VERY limited (only ~24MB available) and the emulator already 
uses most of it so if you are using a large OGG file for background music, 
there won't be enough memory left for dynamic allocation such as state or sram 
buffers (among other things).

In short, do not use large background music file on Gamecube...

Original comment by ekeeke31@gmail.com on 29 Dec 2013 at 9:13

GoogleCodeExporter commented 9 years ago
I have disabled the bg music i have only tested, and still getting unable to 
allocate memory and im not using snapshot too.

Original comment by Lukaum...@gmail.com on 29 Dec 2013 at 9:17

GoogleCodeExporter commented 9 years ago
You cannot "disable the bg music" through the settings.
You must delete the ogg file or use a smaller one (out of curiosity, which size 
is it ?)

Original comment by ekeeke31@gmail.com on 29 Dec 2013 at 9:20

GoogleCodeExporter commented 9 years ago
Ive deleted when worked the size was 834kb its small but not too much. Now its 
saving ive formatt again to fat and using another sd card, maybe the problem 
was on the 4gb im using now 2gb sd card. Thanks for helping me.

Original comment by Lukaum...@gmail.com on 29 Dec 2013 at 9:30

GoogleCodeExporter commented 9 years ago
SD sector size can indeed affect emulator used memory too (libFAT is allocating 
a cache which size is 256 x the sector size: so this can goes up to 1MB of 
allocated memory if sector size is 4KB (max allowed by the FAT library), 512K 
if sector size is 2KB, etc...

It just means the emulator is reaching the limits of Gamecube RAM and there 
isn't much left for temporary buffers (SRAM only needs 64KB but State buffer 
needs ~1MB now with Mega CD support being added)

Original comment by ekeeke31@gmail.com on 29 Dec 2013 at 9:48

GoogleCodeExporter commented 9 years ago
Hmm, i just tested it and it seems there is indeed a problem with savestate. 
With the increased state size for Mega CD, there is sometime not enough memory 
available for allocating a save buffer. I will look for reducint memory usage.

Original comment by ekeeke31@gmail.com on 5 Jan 2014 at 11:35

GoogleCodeExporter commented 9 years ago

Original comment by ekeeke31@gmail.com on 31 Jan 2014 at 9:41

GoogleCodeExporter commented 9 years ago
Fixed in r853

Original comment by ekeeke31@gmail.com on 2 Mar 2014 at 4:06