官术网_书友最值得收藏!

Keep previously loaded serialized objects in memory

As previously mentioned, once a serialized object has been loaded into memory, then it remains there and can be copied if we need it again later, such as instantiating more copies of a Prefab. We can free this data later with explicit calls to Resources.Unload(), which will release the memory space to be reused later. But, if we have a lot of surplus memory in the application's budget, then we could choose to keep this data in memory, which would reduce the need to reload it again from disk later. This naturally consumes a lot of memory with more and more serialized data, making it a risky strategy for memory management, and so we should only do this when necessary.

主站蜘蛛池模板: 阜南县| 章丘市| 淮阳县| 库尔勒市| 军事| 庆城县| 汉沽区| 霍邱县| 大宁县| 湖北省| 高邮市| 白水县| 乐山市| 钟祥市| 阿鲁科尔沁旗| 信丰县| 崇文区| 宁阳县| 航空| 平利县| 牟定县| 诏安县| 甘孜| 永春县| 肥乡县| 苏尼特左旗| 阿合奇县| 松江区| 徐水县| 泸溪县| 玉山县| 观塘区| 盐山县| 金华市| 筠连县| 沙雅县| 宜春市| 彭州市| 上林县| 雷山县| 黔东|