Performance issue with Easy Save Manager

Discussion and help for Easy Save 3
Post Reply
JoseHawk
Posts: 25
Joined: Tue Sep 22, 2020 12:51 pm

Performance issue with Easy Save Manager

Post by JoseHawk »

Hello,

We were having some performance issues with our game, specially related with Textures. When troubleshouting with the "Memory Profiler", we discovered that we are loading textures from references of other scenes. I attach you a picture with this fact.

When removing the Easy Save Manager, we moved from the 3GBs to 500Mbs, so there is defenitely something wrong there.
  • Is there any way to remove this manager without getting the "InvalidOperationException: An Easy Save 3 Manager is required to load references. To add one to your scene, exit playmode and go to Assets > Easy Save 3 > Add Manager to Scene"?
  • Anything wrong in the configuration and how it could be fixed so it does not load references from other scenes?
  • Any other solution or approach?
I am alrady using an ES3Settings object in the code, initialized like this:

Code: Select all

  private void InitializeMemorySettings()
        {
            MemorySettings = new ES3Settings
            {
                location = ES3.Location.File,
                directory = ES3.Directory.PersistentDataPath,
                path = SaveFileName.MOUNT_NAME,
                encryptionType = ES3.EncryptionType.None,
                saveChildren = false,
                format = ES3.Format.JSON,
                prettyPrint = true,
                bufferSize = 2048,
                referenceMode = ES3.ReferenceMode.ByValue,
                serializationDepthLimit = 64
            };
        }
Thank you in advance!

Cheers.
Attachments
99ee27b4-e02c-4e2b-9bb3-bb3124abf7b7.jpeg
99ee27b4-e02c-4e2b-9bb3-bb3124abf7b7.jpeg (92.38 KiB) Viewed 849 times
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: Performance issue with Easy Save Manager

Post by Joel »

Hi there,

Have you tried pressing the Optimize button on the Easy Save 3 Manager? This will remove anything which is no longer referenced by your scene.

Note that the manager is required when saving reference types so cannot be removed in this circumstance. However, you can disable automatic adding of references in Tools > Easy Save 3 > Settings and manually add references yourself by right clicking them and selecting Easy Save 3 > Add Reference(s) to Manager.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
JoseHawk
Posts: 25
Joined: Tue Sep 22, 2020 12:51 pm

Re: Performance issue with Easy Save Manager

Post by JoseHawk »

I see...

Well, I will check with these options you mention.

Thank you!
Post Reply