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

    Do game saves not write to file during the actual save?

    Scheduled Pinned Locked Moved Help and Support
    lr-mgbagame saves
    8 Posts 4 Posters 5.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.
    • lostlessL
      lostless
      last edited by

      IM on a Pi3 with retropie 4.1.14 using lr-MGBA 5.0

      Ive been playing a GBA castlevania game and just lost about 2 hours of game play. Ive been saving along the way using save states and real saves. I just died and meant to load the previous save state but accidentally hit R and wrote over the save state. No big deal right? My last real save was just a few minutes ago, right? Well I just hit continue and it loaded up a save file from 2 hours ago, the last time I quit MGBA to emulation station. Anyone else have a similar issue?

      1 Reply Last reply Reply Quote 0
      • lostlessL
        lostless
        last edited by lostless

        I think I found the culprit. NO, RetroArch DOES NOT save the file until you exit retroarch. Bad design in case of power failure ;D. My problem was i use a mausberry switch and i just save stated and then turned off my pi. When i turned it back on, I just loaded up from my last save state, well the game had no idea I was saving along the way because it had the old srm file in memory. Whats even more scary is that save states don't actually save the state of the sram, so it was a ticking time bomb, nothing was being saved this whole time. I saw an option in the RGUI to auto save the saver for an interval period, but it doesn't seem be doing anything. Anybody have any other ideas that would auto save the sram during game play?

        1 Reply Last reply Reply Quote 0
        • lostlessL
          lostless
          last edited by

          The auto save does work. It only writes when it sees a change in Sram. I don't know why this isn't on by default?

          1 Reply Last reply Reply Quote 2
          • T
            Tyralyon
            last edited by

            I just wanted to say thank you for this post! I agree that it's baffling that auto save isn't on by default.

            dankcushionsD 1 Reply Last reply Reply Quote 0
            • SixSpeedDeathS
              SixSpeedDeath
              last edited by

              @lostless To clarify: Whch Auto Save were you using?

              I see an option for SaveRAM Autosave interval, but I do not see an option that saves only when it sees a change?

              Did you change another setting, or just enable this to auto save every xxx seconds?

              lostlessL 1 Reply Last reply Reply Quote 0
              • lostlessL
                lostless @SixSpeedDeath
                last edited by

                @sixspeeddeath basically the timer is just how often it checks for a change. But it will not write to disk unless there has been a change

                1 Reply Last reply Reply Quote 1
                • dankcushionsD
                  dankcushions Global Moderator @Tyralyon
                  last edited by

                  @tyralyon said in Do game saves not write to file during the actual save?:

                  I just wanted to say thank you for this post! I agree that it's baffling that auto save isn't on by default.

                  because some games use the srm as effectively ram, writing to it many times - maybe as often as every frame. writes that often are a good way to kill an SD card, which is why it's not baffling this isn't on by default :)

                  SixSpeedDeathS 1 Reply Last reply Reply Quote 0
                  • SixSpeedDeathS
                    SixSpeedDeath @dankcushions
                    last edited by

                    @dankcushions I chose to go with a 60 second interval to avoid too many writes in a situation like that, but I'm hoping that is a long enough interval to give me the data security I'm looking for without compromising SD card life too much.

                    I just needed to know if the SaveRAM was the right item to enable.

                    1 Reply Last reply Reply Quote 0
                    • 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.