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

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.

主站蜘蛛池模板: 射洪县| 诸城市| 阜阳市| 乐昌市| 潜江市| 财经| 胶南市| 大兴区| 珠海市| 兰西县| 乐都县| 泗水县| 合水县| 五原县| 桂林市| 永清县| 旌德县| 桃江县| 砚山县| 本溪市| 新丰县| 邯郸市| 红桥区| 贵溪市| 长沙市| 汤阴县| 马山县| 宣恩县| 绵阳市| 宜君县| 天津市| 莎车县| 平安县| 栾川县| 建德市| 当涂县| 徐闻县| 齐河县| 固阳县| 海晏县| 烟台市|