Save taking an unusual amount of time

Discussion and help for Easy Save 3
Post Reply
Posts: 25
Joined: Tue Feb 23, 2021 4:25 pm

Save taking an unusual amount of time

Post by funtomata »

Hi Joel,
we noticed on one of our scenes that we had unusual lag when saving (using cache) and after doing some profiling we narrowed down the problem to an unholy amount of calls to Activator.CreateInstance in ES3Reflection.GetInstances
Screenshot 2022-06-28 at 11.52.33.png
Screenshot 2022-06-28 at 11.52.33.png (144.39 KiB) Viewed 143 times
We don't seem to have this problem in build but we do have it in the editor, any suggestions as to what we could (of if we should) be doing to prevent this?

User avatar
Moodkie Staff
Posts: 4123
Joined: Wed Nov 07, 2012 10:32 pm

Re: Save taking an unusual amount of time

Post by Joel »

Hi there,

This is part of the initialisation process, and only happens once during the lifetime of your app. However, we've never seen it cause lag before.

I recommend calling ES3.Init() when your app first loads which should hopefully mitigate this.

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

Post Reply