- Unity Game Optimization
- Dr. Davide Aversa Chris Dickinson
- 100字
- 2021-06-24 12:13:08
Loading serialized objects asynchronously
Prefabs and other serialized content can be loaded in asynchronously via Resources.LoadAsync(), which will offload reading from disk onto a worker thread that eases the burden on the main thread. It will take some time for the serialized object to become available, which can be checked by calling the isDone property on the ResourceRequest object returned by the previous method call.
This is not ideal for Prefabs we need immediately at the start of the game, but all future Prefabs are good candidates for asynchronous loading if we're willing to create systems that manage this behavior.
推薦閱讀
- Spring 5企業(yè)級(jí)開(kāi)發(fā)實(shí)戰(zhàn)
- LabVIEW Graphical Programming Cookbook
- 新一代通用視頻編碼H.266/VVC:原理、標(biāo)準(zhǔn)與實(shí)現(xiàn)
- AngularJS Web Application Development Blueprints
- 實(shí)戰(zhàn)低代碼
- Android 應(yīng)用案例開(kāi)發(fā)大全(第3版)
- Learning ELK Stack
- Java Web程序設(shè)計(jì)任務(wù)教程
- Express Web Application Development
- Learning jQuery(Fourth Edition)
- SciPy Recipes
- 動(dòng)手打造深度學(xué)習(xí)框架
- Scala編程實(shí)戰(zhàn)
- PHP+MySQL動(dòng)態(tài)網(wǎng)站開(kāi)發(fā)從入門(mén)到精通(視頻教學(xué)版)
- INSTANT Apache Hive Essentials How-to