Unable to allocate memory Sram and States on Gamecube

Issue #367 resolved
Former user created an issue

Original issue 367 created by Lukaum666 on 2013-12-29T21:06:38.000Z:

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.

Comments (8)

  1. Former user Account Deleted

    Comment # 1 originally posted by ekeeke31 on 2013-12-29T21:13:35.000Z:

    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...

  2. Former user Account Deleted

    Comment # 2 originally posted by Lukaum666 on 2013-12-29T21:17:25.000Z:

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

  3. Former user Account Deleted

    Comment # 3 originally posted by ekeeke31 on 2013-12-29T21:20:46.000Z:

    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 ?)

  4. Former user Account Deleted

    Comment # 4 originally posted by Lukaum666 on 2013-12-29T21:30:44.000Z:

    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.

  5. Former user Account Deleted

    Comment # 5 originally posted by ekeeke31 on 2013-12-29T21:48:49.000Z:

    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)

  6. Former user Account Deleted

    Comment # 6 originally posted by ekeeke31 on 2014-01-05T11:35:36.000Z:

    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.

  7. Log in to comment