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

Keeping 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.

主站蜘蛛池模板: 巴彦县| 盐池县| 嘉兴市| 乌拉特后旗| 永德县| 炉霍县| 万州区| 嘉峪关市| 桃园县| 同仁县| 旌德县| 特克斯县| 永福县| 土默特右旗| 石泉县| 壶关县| 平谷区| 潜江市| 青铜峡市| 沈阳市| 永修县| 惠州市| 温泉县| 靖州| 赤峰市| 京山县| 普宁市| 宁南县| 新巴尔虎右旗| 安宁市| 陇南市| 万年县| 罗山县| 乐陵市| 临海市| 东台市| 福海县| 林州市| 大方县| 鲁山县| 乌什县|