RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    AetherSX2 Cache Question - Any way to auto-clear or turn off?

    Scheduled Pinned Locked Moved Help and Support
    aethersx2ps2playstation2vulkan
    6 Posts 2 Posters 1.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • TPRT
      TPR
      last edited by TPR

      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.idx

      And 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?

      1 Reply Last reply Reply Quote 1
      • retropieuser555R
        retropieuser555
        last edited by

        https://retropie.org.uk/docs/Runcommand/#:~:text=runcommand-onstart.sh is executed,the emulator%2Fgame is started.

        Use an onend script to delete the files

        Pi 5 4GB

        Retroflag GPI with raspberry pi zero 2 w/ wifi

        Retroachievements:- lovelessrapture

        TPRT 2 Replies Last reply Reply Quote 0
        • TPRT
          TPR @retropieuser555
          last edited by

          @retropieuser555 said in AetherSX2 Cache Question - Any way to auto-clear or turn off?:

          https://retropie.org.uk/docs/Runcommand/#:~:text=runcommand-onstart.sh is executed,the emulator%2Fgame is started.

          Use an onend script to delete the files

          Ahhh! I didn't think think about this! Thank you! Will give that a try now!

          1 Reply Last reply Reply Quote 0
          • TPRT
            TPR @retropieuser555
            last edited by

            @retropieuser555 said in AetherSX2 Cache Question - Any way to auto-clear or turn off?:

            https://retropie.org.uk/docs/Runcommand/#:~:text=runcommand-onstart.sh is executed,the emulator%2Fgame is started.

            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.idx

            to /opt/retropie/configs/all/runcommand-onend.sh

            and that didn't seem to work.

            TPRT 1 Reply Last reply Reply Quote 0
            • TPRT
              TPR @TPR
              last edited by

              I also tried it with runcommand-onlaunch.sh and that didn't remove them either. Please help! Thank you!

              TPRT 1 Reply Last reply Reply Quote 0
              • TPRT
                TPR @TPR
                last edited by

                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.

                1 Reply Last reply Reply Quote 1
                • TPRT TPR referenced this topic on
                • ExarKunIvE ExarKunIv referenced this topic on
                • First post
                  Last post

                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.