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
Slow loading
-
- Posts: 5
- Joined: Thu Nov 04, 2021 3:14 am
Re: Slow loading
I will save more mesh data
Re: Slow loading
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
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
-
- Posts: 5
- Joined: Thu Nov 04, 2021 3:14 am
Re: Slow loading
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);
ES3.CacheFile(path, settings);
var settings_2 = new ES3Settings(ES3.Location.Cache);
var myInt = ES3.Load("myInt", 0, settings_2);
-
- Posts: 5
- Joined: Thu Nov 04, 2021 3:14 am
Re: Slow loading
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.
-
- Posts: 5
- Joined: Thu Nov 04, 2021 3:14 am
Re: Slow loading
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
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
Re: Slow loading
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
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