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

  • Unity Game Optimization
  • Dr. Davide Aversa Chris Dickinson
  • 128字
  • 2021-06-24 12:13:08

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.

主站蜘蛛池模板: 五常市| 南京市| 苍溪县| 永靖县| 象州县| 拜城县| 勐海县| 镇江市| 江孜县| 邵武市| 温宿县| 高碑店市| 邳州市| 凌源市| 九龙县| 赤城县| 利辛县| 孟村| 新绛县| 襄城县| 富民县| 任丘市| 讷河市| 杭锦后旗| 金溪县| 松原市| 木兰县| 邯郸县| 黎平县| 乌鲁木齐县| 昌平区| 安泽县| 兴和县| 赤城县| 渭源县| 东平县| 明水县| 屏边| 富川| 岑巩县| 武平县|