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

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.

主站蜘蛛池模板: 宜宾市| 玉林市| 应用必备| 鹤庆县| 石狮市| 武定县| 巩义市| 淄博市| 监利县| 调兵山市| 新闻| 新疆| 舒兰市| 抚远县| 周宁县| 左云县| 霍邱县| 兰州市| 淮北市| 马龙县| 和顺县| 旬阳县| 双桥区| 古交市| 庐江县| 靖西县| 满洲里市| 平塘县| 湖北省| 通榆县| 慈利县| 文山县| 天长市| 西乌珠穆沁旗| 安龙县| 仲巴县| 通辽市| 三都| 太湖县| 比如县| 会泽县|