- 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.
推薦閱讀
- DB2 V9權威指南
- SPSS數據挖掘與案例分析應用實踐
- Getting Started with Citrix XenApp? 7.6
- SpringMVC+MyBatis快速開發與項目實戰
- Maven Build Customization
- 程序員面試筆試寶典
- Java編程指南:基礎知識、類庫應用及案例設計
- Implementing Cisco Networking Solutions
- 深入淺出Android Jetpack
- 手把手教你學C語言
- Scala程序員面試算法寶典
- Visual Basic程序設計實踐教程
- Mastering Git
- Java程序員面試筆試寶典(第2版)
- MongoDB Cookbook(Second Edition)