UnloadUnusedAssets causing performance stalls
- infamouspip
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
5 years 10 months ago #3543
by infamouspip
UnloadUnusedAssets causing performance stalls was created 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
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.
5 years 9 months ago #3548
by Frank
Are you Give I2L 5 stars!
Are you Please lets us know how to improve it!
Replied by Frank on topic UnloadUnusedAssets causing performance stalls
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
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.
- infamouspip
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
5 years 9 months ago #3549
by infamouspip
Replied by infamouspip on topic UnloadUnusedAssets causing performance stalls
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
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.193 seconds