mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-26 07:43:36 +01:00
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:
1 parent
0df4afce67
commit
291e5e53c0
6 files changed
+56
-4
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user