UnloadUnusedAssets causing performance stalls

More
5 years 2 months ago #3543 by infamouspip
Hi!

We're on Unity 2017 LTS and i2 2.8.7 f1.

We found some ~1s stalls in our game on low end Android, which we tracked to Unity garbage collection down the call to Resources.UnloadUnusedAssets()

in

ResourceManager.cs
CleanResourceCache()

UnloadUnusedAssets` internally triggers the GC, and that's not something we want to happen during UI animations and such - and this was getting called for us during routine UI (activating a text object, setting the localised text key).

So we're commenting that line out, but I wanted to raise it with you guys, in case there's a problem with that we don't see, or to see if it's already addressed or could be addressed in more recent versions.

We're finding i2 a great product - thanks very much!

Thanks,
Tim Page
Well Played Games

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago #3548 by Frank
Hi,
My advice is to update to I2 2.8.11.
There have been lots of changes related to the way Resources are handled.

Hope that helps,
Frank

Are you :-) Give I2L 5 stars!
Are you :-( Please lets us know how to improve it!
To get the betas as soon as they are ready, check this out

Please Log in or Create an account to join the conversation.

More
5 years 2 months ago #3549 by infamouspip
Hi Frank , and thanks for the quick response.

We'll update i2 when we update the project to a newer Unity and check again.

Thanks,
TIm

Please Log in or Create an account to join the conversation.

Time to create page: 0.129 seconds
Template by JoomlaShine