Slow savestate saving in PPSSPP core!

Hello! I have been using lakka for a while now and I have got a hang of it! I recently tried to play some PSP games and was pleased to know that they all run at full speed! :smiley:

But there is a minor catch! It takes 30 seconds to save the state of my game :(! The loading of the state is pretty fast though, almost instant. I donā€™t know why but I have tested the same ROM in my windows machine with the latest version of PPSSPP, and it only takes 1 second to save the state here! I am totally confused now.

Any advices on increasing the savestate speed on lakka? something like messing around the settingsā€¦ Thanks in Advance!

Last time I checked save states for PSP games are 100MB+? Could it be related to the drive speed? I save and load save states from a USB 3.0 flash drive and donā€™t experience this myself.

100MB!? O_O Yes, this could be related to drive speed, I use a USB 2.5 Pendriveā€¦ It also might not be a good thing read/write so often to a USB drive!

I wonder if there is an option to save the state to RAM and writing the data when exiting the core?

No, savestates are written at the time they are taken. It wouldnā€™t make sense to save them to RAM because if your game crashed, you would lose your savestates. The only reason SRAM isnā€™t saved immediately is because some games use it for actual scratch RAM and would read/write to it constantly.

It should be optional though, for folks with crappy USB drives and ports :stuck_out_tongue:

Also, what if there was a special ā€œQuick Saveā€ slot which would save the state in RAM? I know that this is not related to lakka, but to libretro/RetroArch. Just a thought.

Radius, It takes time to write to the USB drive directly, on RAM its much faster! So only 1 disk save before quitting is good enough considering the amount of time saved.

Ehhhā€¦ The idea was about having a single special save slot called ā€œQuick Saveā€.

P.S Who is Mudlord btw?

I think I found a possible workaround but I cannot find the setting for it in Lakka, I want to change the PSP model version to a lower one. Why? Becuase lower models have lower RAM and low RAM = low savestate size = faster writing to USB.

Iā€™m not sure how lower RAM would effect the save state sizeā€¦ Anyway, wouldnā€™t the fastest and easiest way to solve your problem be to just use something with a faster write speed?

savestate is nothing but a dump of RAM and other CPU/GPU stuff. So lower ram = lower dump.

Nope, I cannot do that now.

  1. My laptop does not have a USB 3.0 port
  2. I donā€™t have a 3.0 USB
  3. I cannot install lakka in my hardrive
  4. I donā€™t have another spare PC to install lakka on.

Not all flash drives are the same speed. Not sure type/brand you are using but corsair voyagers are usually the fastest 2.0 drives you can get. Although it might be cheaper to just get any 3.0 USB drive it will just run at the maximum speed the port will allow, which is probably still faster than the majority of 2.0 drives out there.

As you can see in the link below the difference in write speeds can be pretty significant. The fastest is more than double the slowest. Personally thatā€™s what Iā€™d do. You may not get USB 3.0 speeds but it could cut your save state times in half.

Mine is a 8GB Verbatim STOREā€™nā€™GO:
(Product page)

Edit: Actually found out that it was the same model, just a different outer shell version (outdated thingy).

http://usbspeed.nirsoft.net/?pdesc=Verbatim+USB+Device&vid=6309&pid=770

Seems like most of the verbatim drives are showing 8MB/s or less write speedsā€¦ Which is not great, would definitely explain your slow save state transfers.

Yeah, time to purchase a new pendrive I think -.-;

Just transferred my lakka to a new pendrive (Look at this thread for more info). Now, I tested again! The speed was defiantly increased albeit by only a little :frowning: . It took off like ~5 seconds? I donā€™t know.