- 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.
推薦閱讀
- UI圖標(biāo)創(chuàng)意設(shè)計(jì)
- 數(shù)據(jù)庫原理及應(yīng)用(Access版)第3版
- Mastering Concurrency in Go
- OpenStack Cloud Computing Cookbook(Fourth Edition)
- Java Web開發(fā)技術(shù)教程
- SQL Server 2016數(shù)據(jù)庫應(yīng)用與開發(fā)習(xí)題解答與上機(jī)指導(dǎo)
- Building an RPG with Unity 2018
- 跟戴銘學(xué)iOS編程:理順核心知識(shí)點(diǎn)
- MongoDB Cookbook(Second Edition)
- 大學(xué)計(jì)算機(jī)基礎(chǔ)實(shí)訓(xùn)教程
- Photoshop智能手機(jī)APP界面設(shè)計(jì)
- 超好玩的Scratch 3.5少兒編程
- Groovy 2 Cookbook
- 菜鳥成長之路
- Practical Time Series Analysis