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

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.

主站蜘蛛池模板: 阳信县| 乡宁县| 临城县| 连山| 平阴县| 广东省| 邯郸市| 建阳市| 化州市| 垫江县| 乡城县| 南岸区| 札达县| 蓬溪县| 榕江县| 茶陵县| 临洮县| 阳朔县| 浦城县| 涿鹿县| 广河县| 甘孜县| 武川县| 城固县| 三亚市| 富民县| 永兴县| 满洲里市| 柯坪县| 长岛县| 和田县| 临沭县| 万山特区| 许昌县| 凤山市| 鹿邑县| 彰化县| 徐州市| 黎平县| 孟连| 溧水县|