Page 1 of 1

Save taking an unusual amount of time

Posted: Tue Jun 28, 2022 10:03 am
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 540 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?

Re: Save taking an unusual amount of time

Posted: Wed Jun 29, 2022 8:46 am
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