libretro-mirrors / beetle-saturn-libretro

Standalone port of Mednafen Saturn to the libretro API.
GNU General Public License v2.0
62 stars 42 forks source link

CD Image Cache setting not working #144

Closed Epicbeardman closed 3 years ago

Epicbeardman commented 5 years ago

Description

Beetle Saturn for RetroArch does not load the complete image into RAM when the CD Image Cache setting is enabled in the core options (beetle_saturn_cdimagecache = "enabled" in retroarch-core-options.cfg).

The standalone version of Mednafen Saturn does cache the complete image when the line cd.image_memcache 1 is present in mednafen.cfg. Versions 1.22.1 and 1.22.2 of Mednafen were tested.

Expected behaviour

The complete image should be loaded into RAM when the CD Image Cache setting is enabled in the core options.

Actual behaviour

The complete image is not loaded into RAM when the CD Image Cache setting is enabled in the core options.

Steps to reproduce the bug

  1. Load the Beetle Saturn core.
  2. Load a large Saturn game that would otherwise result in a noticeable increase in RAM usage.
  3. Under Quick Menu -> Options, enable CD Image Cache (restart).
  4. Restart the game.
  5. View the RAM usage of RetroArch.

Version

Environment information

Linearity commented 4 years ago

This is an issue for anybody trying to load images from another machine on a home network.

I'm not familiar with this code, but it seems in disc.cpp that the image_memcache parameter to the loading procedures is always equal to false.