ParticleSystem InitWithFile cause low FPS

Hello, when the game is loading our main scene, the code of the components is initializing a bunch of ParticleSystems (about ~20 of them)

From the profiler in Chrome, it shows that it is causing the low FPS & lag we experience in the first 2-5s of the game (~10 FPS, almost feel like a freeze). 80%+ of the processing time is spent inside InitWithFile()

What is the advice for optimization? Any links /resources and advice is appreciated.

I’m not sure about the particulars of your situation, but the approach we use for this is to show a loading screen so that the first 2-5s of the game aren’t rendering while we’re doing loading that slows down the FPS.