Hey there!
My game’s loading time is taking forever and it keeps getting longer by the time of adding new features.
I am using Zenject as the DI framework and the backbone of my game’s architecture.
I realized that the moment when the Project Context is getting instantiated, the spike occurs.
After profiling, I came up with this:
It seems something related to loading things into memory is taking a long time.
On my device, Xiaomi mi 11 lite, it takes about 8 seconds. (the app freezes and does not respond to the input).
On a lower-end device like Galaxy A7, it takes about 25 seconds and it feels like the game is broken…
Edit on October 2024:
So, after a fairly long time, I rcvd some emails notifying me about some ppl answering my question here!
Just came to say that it didn’t have anything to do with Zenject (or I couldn’t find it).
We tried to optimize our assets (pre-loaded ones) and the loading time decreased to a reasonable amount.