- 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.
推薦閱讀
- Spring Cloud Alibaba核心技術與實戰案例
- jQuery EasyUI網站開發實戰
- 碼上行動:零基礎學會Python編程(ChatGPT版)
- 數據結構習題精解(C語言實現+微課視頻)
- Magento 2 Development Cookbook
- 單片機應用技術
- Swift Playgrounds少兒趣編程
- 從Power BI到Analysis Services:企業級數據分析實戰
- jMonkeyEngine 3.0 Beginner’s Guide
- 循序漸進Vue.js 3前端開發實戰
- ASP.NET Core 2 High Performance(Second Edition)
- 開源網絡地圖可視化:基于Leaflet的在線地圖開發
- 陪孩子像搭積木一樣學編程:Python真好玩+Scratch趣味編程(全2冊)
- Go語言從入門到進階實戰(視頻教學版)
- Magento 2 -Build World-Class online stores