|
Post by christoph on Jun 3, 2021 16:54:28 GMT
Hi @darktonic Dev. What could be the reason that creating the pool takes 2 seconds as shown in the profiler here:  I have only a couple of prefabs and particles at start, nothing else so not sure if I maybe am doing something else wrong that creates a bottleneck?
|
|
|
Post by DarkTonic Dev on Jun 3, 2021 17:55:11 GMT
Instantiating can be quite slow depending on what all is in your Game Objects.
1) How many instances are you putting in your pool? 2) Is the Profiler running on a device or in Unity?
-B
|
|
|
Post by christoph on Jun 3, 2021 18:36:48 GMT
1) There are not many instances, just a couple of particles, some pickups, the player and some simple platforms for level creation. Screenshot below. 2) This is in Unity on a pretty decent iMac. On low end mobile devices this seems to cause a bottleneck that can take up to 6-8 seconds of black screen. 
|
|
|
Post by DarkTonic Dev on Jun 3, 2021 18:46:37 GMT
Well seeing Playmaker in your Hierarchy, I would venture to guess that the FSM is taking up a good portion of the initialization time. It all comes down to what your scripts and objects are on each Object you're initializing. It all adds up.
You can try setting some of your pool items to 0 instances to compare time and narrow it down to which prefabs are "heavy".
|
|