GC problem on LanguageSource.FindAsset
6 years 11 months ago #2696
by yuewah
GC problem on LanguageSource.FindAsset was created 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> ?
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.
6 years 11 months ago #2697
by Frank
Are you Give I2L 5 stars!
Are you Please lets us know how to improve it!
Replied by Frank on topic GC problem on LanguageSource.FindAsset
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
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.
6 years 11 months ago #2698
by yuewah
Replied by yuewah on topic GC problem on LanguageSource.FindAsset
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.150 seconds