- 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.
推薦閱讀
- 從零開始構建企業級RAG系統
- Mastering Ext JS(Second Edition)
- Python快樂編程:人工智能深度學習基礎
- 企業級Java EE架構設計精深實踐
- 基于差分進化的優化方法及應用
- Python機器學習算法與實戰
- SQL Server 2016 從入門到實戰(視頻教學版)
- App Inventor少兒趣味編程動手做
- Java 9 Programming By Example
- ASP.NET Web API Security Essentials
- Go語言入門經典
- Sitecore Cookbook for Developers
- Monitoring Docker
- MongoDB Administrator’s Guide
- Python程序員面試算法寶典