UnloadUnusedAssets causing a huge performance drop
- alvaro_ribolli
- Topic Author
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 0
3 years 5 months ago #4348
by alvaro_ribolli
UnloadUnusedAssets causing a huge performance drop was created by alvaro_ribolli
Hi,
I'm using the I2 Localize v 2.8.13 f2 and Unity 2019.4.19 f1.
My game doesn't have a loading scene between one level and another, every loading during gameplay is async. When a new scene is activated, i2 calls the function Resources.UnloadUnusedAssets() from ResourceManager.cs. This is causing a huge spike in the profiler tab and an fps drop.
I tested commenting that line and the spikes stop occurring, but after some levels and time playing, the game crashes for some reason.
Is there any workaround for this issue? To prevent these spikes and not crash the game?
Thanks in advance.
Álvaro Ribolli
I'm using the I2 Localize v 2.8.13 f2 and Unity 2019.4.19 f1.
My game doesn't have a loading scene between one level and another, every loading during gameplay is async. When a new scene is activated, i2 calls the function Resources.UnloadUnusedAssets() from ResourceManager.cs. This is causing a huge spike in the profiler tab and an fps drop.
I tested commenting that line and the spikes stop occurring, but after some levels and time playing, the game crashes for some reason.
Is there any workaround for this issue? To prevent these spikes and not crash the game?
Thanks in advance.
Álvaro Ribolli
Please Log in or Create an account to join the conversation.
3 years 4 months ago #4380
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 a huge performance drop
I'm about to release 2.8.15 which only calls Resources.UnloadUnusedAssets when the user requests it, as most of the time that's not needed.
Hope that helps,
Frank
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.
Time to create page: 0.123 seconds