- Unity 2017 Game Optimization(Second Edition)
- Chris Dickinson
- 100字
- 2021-07-02 23:21:11
Load 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 behaviour.
推薦閱讀
- C++程序設計教程
- Docker進階與實戰(zhàn)
- MongoDB for Java Developers
- Python測試開發(fā)入門與實踐
- 云原生Spring實戰(zhàn)
- Spring Cloud、Nginx高并發(fā)核心編程
- 名師講壇:Java微服務架構(gòu)實戰(zhàn)(SpringBoot+SpringCloud+Docker+RabbitMQ)
- Full-Stack React Projects
- Node.js:來一打 C++ 擴展
- 用案例學Java Web整合開發(fā)
- QGIS 2 Cookbook
- Learning iOS Security
- Learning Splunk Web Framework
- Java EE 7 with GlassFish 4 Application Server
- Simulation for Data Science with R