file.sync()
Posted: Thu Sep 30, 2021 9:23 pm
Hey. Where do you recommend to store file.sync()?
On OnApplicationQuit()? Any other place recommended?
The reason I'm asking is because I have a scroll view in my game, I use load and save to es3 no problem.
but everytime I run file.Sync(); it makes my scroll view to freeze (lagging), and becomes slow until the sync is done
I used to run sync after each save but I guess it's not smart.
public void OnApplicationQuit()
{
file.Sync();
}
On OnApplicationQuit()? Any other place recommended?
The reason I'm asking is because I have a scroll view in my game, I use load and save to es3 no problem.
but everytime I run file.Sync(); it makes my scroll view to freeze (lagging), and becomes slow until the sync is done
I used to run sync after each save but I guess it's not smart.
public void OnApplicationQuit()
{
file.Sync();
}