- 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.
推薦閱讀
- Functional Python Programming
- Spring Cloud Alibaba核心技術與實戰案例
- Photoshop智能手機APP UI設計之道
- PostgreSQL技術內幕:事務處理深度探索
- Magento 2 Development Cookbook
- VMware vSphere 6.7虛擬化架構實戰指南
- Flutter跨平臺開發入門與實戰
- 精通Python自動化編程
- 蘋果的產品設計之道:創建優秀產品、服務和用戶體驗的七個原則
- R語言:邁向大數據之路(加強版)
- Natural Language Processing with Python Quick Start Guide
- Building Slack Bots
- Learning D
- Less Web Development Cookbook
- JavaWeb從入門到精通(視頻實戰版)