Welcome, Guest
Username: Password: Remember me

TOPIC: Huge performance hit w/ LocalizationParamsManager

Huge performance hit w/ LocalizationParamsManager 1 month 3 days ago #3264

  • fiveamp
  • fiveamp's Avatar
  • Offline
  • New Member
  • Posts: 8
  • Karma: 0
During profiling to nail down why I was seeing horrible performance with a scrollview that uses pooling to recycle cells - I found the culprit to be one component, the LocalizationParamsManager component. A bunch of OnEnable's during scrolling consequently calling DoAutoRegister -> LocalizationManager.LocalizeAll(true) -> which then does a bunch of expensive operations that result in massive GC hits (Resources.FindObjectsOfTypeAll, CleanResourceCache, etc). In the below profile snapshot, the spikes are when I scroll the view - causing OnEnable calls for a scrollview of objects that have one LocalizationManager on one text object.



I like to use LocalizationParamsManager for a clean way to add dynamic content to text. Sometimes simple stuff like Level {[NUM]}. This simple example below was causing the above massive performance hit shown above.



Am I doing this wrong? How can I work around this performance hit?
The administrator has disabled public write access.

Huge performance hit w/ LocalizationParamsManager 4 weeks 1 day ago #3270

  • Frank
  • Frank's Avatar
  • Offline
  • Administrator
  • Posts: 1139
  • Thank you received: 243
  • Karma: 72
Hi,
The new beta fixes this issue.
I will be uploading to the AssetStore in the next days.

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.
Time to create page: 0.215 seconds
Template by JoomlaShine