Add feature to cache ISOs in RAM to avoid I/O stutters. 64-bit only. Loading gets slow though.

TODO: Make it cache in the background on load. Allow on 32-bit for small ISOs.
This commit is contained in:
Henrik Rydgard committed 2014-10-31 00:14:00 +01:00
1 parent 0df4afce67
commit 291e5e53c0
6 files changed
+56 -4

No files matched your search

+6
View File
@@ -71,6 +71,12 @@ void InitMemoryForGameISO(std::string fileToStart) {
// Can't init anything without a block device...
if (!bd)
return;
if (g_Config.bCacheFullIsoInRam) {
// The constructor destroys the original block device object after reading it.
bd = new RAMBlockDevice(bd);
}
umd2 = new ISOFileSystem(&pspFileSystem, bd);
actualIso = true;
}