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?
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
};
}
Cheers.