GC problem on LanguageSource.FindAsset

More
6 years 3 months ago #2696 by yuewah
LanguageSource.FindAsset use Object[] Assets, that searching using UnityEngine.Object.name
however, it alloc GC, especially if there are many Assets, it alloc GC very fast.

Is it possible to use Dictionary<string, Object> ?

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

More
6 years 3 months ago #2697 by Frank
Hi,
Thanks a lot for pointing this out. I verified that just asking for the GameObject.name causes a GC!
I will be releasing a workaround for this in the next beta.

Thanks!
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
6 years 3 months ago #2698 by yuewah
Btw, the use of Regex is also a problem too

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

Time to create page: 0.168 seconds
Template by JoomlaShine