gpt4 book ai didi

ios - 我的 iOS 应用程序需要很长时间才能回到前面

转载 作者:行者123 更新时间:2023-11-29 02:03:17 25 4
gpt4 key购买 nike

我正在使用 cocos2d-x 开发一款 iOS 游戏,在将它插入后台后需要花费大量时间才能返回前台。当我想恢复我的应用程序时,它会卡住大约 5 或 6 秒,然后才会再次响应。

我在 UIApplicationDelegate 实现中的 applicationDidBecomeActiveapplicationWillEnterForeground 中放置了断点。它们仅在卡住完成后触发。

您是否知道应用需要花费大量时间才能返回到前端的原因?

有没有类似 cocos2d-x 的经验可以帮到我?

最佳答案

问题出在后台转换而不是前台。当玩家返回游戏时,applicationDidEnterBackground 方法没有完成处理,导致卡住。我必须优化这个方法。

关于ios - 我的 iOS 应用程序需要很长时间才能回到前面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30097318/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com