- Unity 2017 Game Optimization(Second Edition)
- Chris Dickinson
- 128字
- 2021-07-02 23:21:11
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.
推薦閱讀
- 演進式架構(原書第2版)
- Ext JS Data-driven Application Design
- BeagleBone Media Center
- 新手學Visual C# 2008程序設計
- Learn Scala Programming
- Linux環境編程:從應用到內核
- 硅谷Python工程師面試指南:數據結構、算法與系統設計
- 領域驅動設計:軟件核心復雜性應對之道(修訂版)
- 跟戴銘學iOS編程:理順核心知識點
- 計算語言學導論
- 程序員面試金典(第6版)
- Raspberry Pi Robotic Projects
- JavaScript編程精解(原書第3版)
- Developing RESTful Web Services with Jersey 2.0
- C#程序開發教程