Forum rules - please read before posting.

Slowdown when saving

Hi everyone,
AC 1.70.0 + Unity 2019.2.17f1 on a 2d game.

We implemented an autosave system where, with a custom action, we save the game on a custom file (different from that are set in Save filename, so we haven't a slot visible in save or load menu). In this action we use the action save/autosave and a gather save file. But we noticed a slowdown when the game writes the file (for example, in a scenewith a looped animation, it momentaneally interrupts for a fraction, but it's visible, or for a fraction the cursor disappears) so we have to use sparingly to avoid too much slowdowns.

We tried also putting the action in an action list with "when running" set to "Run in background" and then calling this action list instead of the action directly, but nothing changes. Is there a way to save without slowdown the game (ex. with some run in background system)?

Thank you very much.

Comments

  • Is this due to your custom means, or do you get the same slowdown when saving via AC's built-in save method?

    Do you experience this in the Editor, or in builds - and on what platform?

    Slowdown will be based on the amount of data that needs saving. You can check the "Save File Manager" for a rundown of the data that a save file contains.

    The Profiler can be used to determine the exact process that causes the slowdown, but saving itself is not a background process - regardless of the ActionList it's called from. This is something I'd like to look into in the future, however.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.