4
\$\begingroup\$

I've been reading through Unreal's 'Saving and Loading' guide: Link

Within, they present a capability to save a game to main memory rather than secondary storage:

Picture of Save Game to Main Memory section on Unreal documentation website


I haven't found any information on where this would ever be used.

The only situation I can fathom for this being useful is to keep data about other load zones in memory so that travelling through load screens into these zones is quicker.


Why, When and Where is this technique of saving to Main Memory used instead of saving to Secondary Storage?

\$\endgroup\$
14
\$\begingroup\$

Sometimes you might want to store your savegame data somewhere else than on the users hard drive. You might offer a cloud save service, for example. In that case you would use SaveDataToMemory to create a savegame in a memory buffer and then send that memory buffer to a server via network.

Another possible use-case could be to always keep the last savegame in memory so you can restore it faster in case the player quickloads or dies. Using LoadGameFromMemory when you already got the savegame in memory can be much faster than loading the game from the hard drive.

\$\endgroup\$
  • 3
    \$\begingroup\$ +1, quicksave/quickload is the first that came to mind for me. \$\endgroup\$ – Maximus Minimus Nov 25 '19 at 18:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.