

That wont be necessary, after doing more “extreme” tests with preload, it seems like I was wrong about preload. I used sudo sysctl vm.drop_caches=1 to make sure that none of the game’s files were loaded in RAM before using preload like I did yesterday, but the game still has hitching issues. This means that the game’s files were probably still loaded in RAM when I was testing it yesterday.
For context, what I’m trying to do is find a way to run smaller games more smoothly from some very old storage devices that are very slow. I thought that preload would be the solution but since it doesn’t seem to actually do what I thought it did, I’m going to need a different solution. I will try vmtouch and respond back if it works.
After trying vmtouch, it only seems to be partially helping. I’m not sure if I’m just using it incorrectly or not but if I remove the files from RAM and then use vmtouch to add them back in, the hitching issues are still partially there.
To fully explain what my issue is, I currently using the Linux version of the Cyber Lancer demo from Itchio as it’s small enough to fit onto my 128 MB SD card, which is very slow. I can easily run the game from other storage devices that have much higher read speeds but I want to get the most out of my older and slower storage devices. What’s happening is when the game first loads when it’s files aren’t stored in RAM, is the game essentially freezes for a split second every time it has to load an asset that wasn’t previously loaded.
vmtouch isn’t making the hitching go away, it just making it load a little faster. This does mean that it’ll help but if you’re aware of a better solution, I can try that out as well.