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

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

主站蜘蛛池模板: 清苑县| 丰台区| 泉州市| 台前县| 白河县| 葫芦岛市| 商城县| 维西| 福建省| 东安县| 西吉县| 鄂托克前旗| 定州市| 佛坪县| 吴桥县| 巧家县| 察雅县| 博客| 修水县| 城固县| 赣州市| 邳州市| 临漳县| 绥中县| 天门市| 当涂县| 平度市| 广昌县| 文水县| 平度市| 乌拉特后旗| 文水县| 兴义市| 永登县| 呼玛县| 长泰县| 屯门区| 江城| 德庆县| 云林县| 新蔡县|