Welcome, Guest
Username: Password: Remember me

TOPIC: UnloadUnusedAssets causing performance stalls

UnloadUnusedAssets causing performance stalls 3 weeks 5 days ago #3543

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
The administrator has disabled public write access.

UnloadUnusedAssets causing performance stalls 3 weeks 4 days ago #3548

  • Frank
  • Frank's Avatar
  • Offline
  • Administrator
  • Posts: 1202
  • Thank you received: 256
  • Karma: 78
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
The administrator has disabled public write access.

UnloadUnusedAssets causing performance stalls 3 weeks 2 days ago #3549

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
The administrator has disabled public write access.
Time to create page: 0.097 seconds
Template by JoomlaShine