- 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.
推薦閱讀
- Visual Basic .NET程序設計(第3版)
- JavaScript從入門到精通(微視頻精編版)
- FreeSWITCH 1.8
- Practical DevOps
- C語言程序設計立體化案例教程
- Learning Network Forensics
- Android玩家必備
- OpenCV 4計算機視覺項目實戰(原書第2版)
- C語言從入門到精通
- ServiceNow:Building Powerful Workflows
- Creating Data Stories with Tableau Public
- Python語言科研繪圖與學術圖表繪制從入門到精通
- C++程序設計教程(第2版)
- 高性能PHP 7
- Java EE輕量級解決方案:S2SH