You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
privatestaticLocalizationTableen_us;publicstatic LocalizationTable GetTable(Localelocale){if(locale== Locale.ja_JP){return AssetDatabase.LoadAssetAtPath<LocalizationTable>($"{DetailConstants.LocalizationDirectory}/ja_JP.asset");}else{// en_US has the table in source code, not asset.en_us=en_us!=null?en_us: ScriptableObject.CreateInstance<LocalizationTable>();returnen_us;}}
The text was updated successfully, but these errors were encountered:
face-emo/Packages/jp.suzuryg.face-emo/Editor/Detail/Localization/LocalizationSetting.cs
Line 90 in 261ab2c
この件はLocalizationTableをリークしてしまい、C#オブジェクトと違ってエディター再起動までヒープに残ってしまいます。そのため、
Resources.FindObjectsByTypeAll
などのヘルパーが非常に重くなり、いろんな操作が重くなります。リークを確認した時点では16GBほどのヒープサイズになってました(メモリーダンプは解析できなかったので確定ではないが、再起動した後はここだけが急速に増えてました)
ハックではありますが、このような修正を入れたらオブジェクトの増加が止まりました
The text was updated successfully, but these errors were encountered: