Version: 2023.1
言語: 日本語
Android thread configuration
Game state hinting

Optimize application startup times

Android devices can optimize the startup process for an application to reduce the time it takes the application to become interactive. For Android to do this, the application must indicate when it finishes initialization and becomes interactive for end users. Android then prioritizes work that must complete before the application is initialized.

Android applications use the Activity.reportFullyDrawn API to indicate that they have finished start-up. By default, Unity calls this method as the first scene loads, before Awake. However, if your application must do some extra work before users can interact with it, for example if the application needs to load some resources before it can show anything on the screen, you should call this API yourself on the frame that your application becomes interactive. To do this, call DiagnosticsReporting.CallReportFullyDrawn. If you call this method somewhere in your code, Unity no longer calls the method automatically when the first scene loads.

Note: Android only counts the first time you call CallReportFullyDrawn, so there is no reason to call it multiple times.

Android thread configuration
Game state hinting
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961