Slow loading

Discussion and help for Easy Save 3
Post Reply
qq294716498
Posts: 5
Joined: Thu Nov 04, 2021 3:14 am

Slow loading

Post by qq294716498 »

My project saves a lot of keys to a local file. This file saves a of mesh, and uses encryption and compression.
When I read a file, it takes a lot of time, even if I just read a string key in this file
I also tried to use cache, but it doesn't seem to work for encrypted and compressed files
I also need multiple sets of cache, because I may have a reference to another local file when I read it. Please help
qq294716498
Posts: 5
Joined: Thu Nov 04, 2021 3:14 am

Re: Slow loading

Post by qq294716498 »

I will save more mesh data
User avatar
Joel
Moodkie Staff
Posts: 4848
Joined: Wed Nov 07, 2012 10:32 pm

Re: Slow loading

Post by Joel »

Hi there,

We have no reported issues of the cache not working with encryption or compression and it appears to work fine at our end. Please could you show me the code you are using to save and load to and from the cache?

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
qq294716498
Posts: 5
Joined: Thu Nov 04, 2021 3:14 am

Re: Slow loading

Post by qq294716498 »

settings = new ES3Settings() { compressionType = ES3.CompressionType.Gzip, encryptionType = ES3.EncryptionType.AES, encryptionPassword = "Mypassword" };
ES3.CacheFile(path, settings);
var settings_2 = new ES3Settings(ES3.Location.Cache);
var myInt = ES3.Load("myInt", 0, settings_2);
qq294716498
Posts: 5
Joined: Thu Nov 04, 2021 3:14 am

Re: Slow loading

Post by qq294716498 »

Debug Erro : NotSupportedException: This operation is not supported.
Last edited by qq294716498 on Fri Nov 05, 2021 2:32 am, edited 2 times in total.
qq294716498
Posts: 5
Joined: Thu Nov 04, 2021 3:14 am

Re: Slow loading

Post by qq294716498 »

hi
What should I do to load a large amount of mesh data quickly ?
settings = new ES3Settings() { compressionType = ES3.CompressionType.Gzip, encryptionType = ES3.EncryptionType.AES, encryptionPassword = "password" };


i use plan A
{

var MeshList = new List<Mesh>();
for (int i = 0; i < gameObjectMeshs.Count; i++)
{
MeshList .add( gameObjectMeshs(i) );
}
ES3.save("MymeshList",MeshList ,"D:/mysave",settings );



}


Plan B
{


for (int i = 0; i < gameObjectMeshs.Count; i++)
{
ES3.save("Mesh"+i, gameObjectMeshs (i) ,"D:/mysave",settings );
}


}

They are also very slow when loading
User avatar
Joel
Moodkie Staff
Posts: 4848
Joined: Wed Nov 07, 2012 10:32 pm

Re: Slow loading

Post by Joel »

Hi there,

Please could you send me the complete stack trace for the error you’re getting, and also send the actual scripts so I can compare line numbers.

Regarding saving Meshes, saving a large amount of data is going to be inherently slow so it would be impossible to speed this up (this would be a limitation of your hardware and OS rather than something at our end). You could call your save and load code in a separate thread to spread it across multiple frames to prevent freezing (assuming the data you’re saving is thread safe), but this wouldn’t make it any faster.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Post Reply