You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Unity游戏提交苹果遭拒:启动首帧耗时超900ms排查求助

苹果平台游戏启动崩溃排查:首帧Other区域耗时超900ms问题
  • 提交至苹果平台的游戏因启动崩溃被拒,使用Unity Profiler调试后发现首帧Other区域耗时超900ms,无法定位具体耗时的脚本及修复方案。
  • 曾尝试编写lagHandler脚本异步分批激活GameObject,代码如下:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class lagHandler : MonoBehaviour
{
    public List<GameObject> objectsToActivate;
    public float initialDelay = .5f; // Initial delay in seconds

    void Start()
    {
        StartCoroutine(ActivateObjects());
    }

    IEnumerator ActivateObjects()
    {
        yield return new WaitForSeconds(initialDelay); // Wait before starting activation

        foreach (GameObject obj in objectsToActivate)
        {
            obj.SetActive(true); // Activate the object
            yield return null; // Wait one frame before activating the next object
        }
    }
}
  • 该脚本仅能分散后续对象的加载压力,但首帧耗时仍居高不下。
  • 已将场景顶点数降至约50K,关闭画布动画,问题依旧存在。
  • 后续测试中禁用所有GameObject(包括lagHandler)后,首帧耗时仍超900ms,怀疑问题出在Player Settings,但无法定位具体设置项。

Profiler截图

内容的提问来源于stack exchange,提问作者Prograbit

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.21 12:52:36