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

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.

主站蜘蛛池模板: 耒阳市| 错那县| 永善县| 泸溪县| 龙岩市| 建始县| 布拖县| 武平县| 普安县| 万载县| 同江市| 安徽省| 澎湖县| 阿克| 巫溪县| 绥中县| 汪清县| 呼图壁县| 金乡县| 囊谦县| 翼城县| 桐城市| 万盛区| 灵石县| 新郑市| 乐陵市| 突泉县| 龙岩市| 含山县| 大足县| 岗巴县| 甘谷县| 蓝田县| 永登县| 福海县| 花莲市| 涿鹿县| 湖州市| 广德县| 南汇区| 广水市|