AetherSX2 Cache Question - Any way to auto-clear or turn off?
-
So one thing I've notice about running AetherSX2 on the Pi 5 RetroPie is that as the Vulkan cache files continue to grow, it will make some games slow to a crawl.
For example, if I delete my cache files and play God of War it plays just fine and I can get it running at almost full speed with some emulator tweaks.
I load up another 20 or so games and come back to God of War and it crawls. Then I delete these files again:
/opt/retropie/configs/ps2/Config/cache/vulkan_pipelines.bin
/opt/retropie/configs/ps2/Config/cache/vulkan_shaders.bin
/opt/retropie/configs/ps2/Config/cache/vulkan_shaders.idxAnd it works just fine.
My question is... is there any way to turn off this cache feature or have it autoclear so I don't have to keep going into my FTP and deleting those files every 20 or so games I play?
@DTEAM Any ideas? Have you seen this happen yet?
-
Use an onend script to delete the files
-
@retropieuser555 said in AetherSX2 Cache Question - Any way to auto-clear or turn off?:
Use an onend script to delete the files
Ahhh! I didn't think think about this! Thank you! Will give that a try now!
-
@retropieuser555 said in AetherSX2 Cache Question - Any way to auto-clear or turn off?:
Use an onend script to delete the files
I added the following:
rm /opt/retropie/configs/ps2/Config/cache/vulkan_pipelines.bin
rm /opt/retropie/configs/ps2/Config/cache/vulkan_shaders.bin
rm /opt/retropie/configs/ps2/Config/cache/vulkan_shaders.idxto /opt/retropie/configs/all/runcommand-onend.sh
and that didn't seem to work.
-
I also tried it with runcommand-onlaunch.sh and that didn't remove them either. Please help! Thank you!
-
OK so this worked:
I added the following to runcommand-onlaunch.sh
rm /opt/retropie/configs/ps2/Config/cache/vulkan_pipelines.bin && rm /opt/retropie/configs/ps2/Config/cache/vulkan_shaders.bin && rm /opt/retropie/configs/ps2/Config/cache/vulkan_shaders.idx
It did not appear to like them on separate lines. Now when a game launches, it deletes those three files, and if I'm loading a PS2 game with AetherSX2 it re-creates them once the game loads, but then deletes them before the next game.
So this way those files never get bloated and not hog down any other games.
-
-
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.