简体   繁体   English

为什么游戏的帧率突然在发行版本中下降?

[英]Why does my game’s framerate suddenly drop in release build?

Engine: Cocos2D Test Hardware:iPhone 4 SDK:3.2.5 final 引擎:Cocos2D测试硬件:iPhone 4 SDK:3.2.5最终版

FPS is stable on 60 in DEBUG & RELEASE mode when we test our game in SIMULATOR. 当我们在模拟器中测试游戏时,FPS在DEBUG&RELEASE模式下稳定在60。 When change our test method from SIMULATOR to DEVICE, a real iPhone 4, game shows no low FPS under DEBUG mode. 当将我们的测试方法从“模拟器”更改为“设备”时,这是一个真正的iPhone 4,游戏在调试模式下不会显示低FPS。 BUT things go crazy when change to RELEASE mode. 但是当更改为“释放”模式时,事情会发疯。 FPS goes extremely lower than all situations I describe before. FPS远低于我之前描述的所有情况。 FPS sharply drops from 60 to 20~30. FPS从60急剧下降到20〜30。

Don't confuse, in one sentence:FPS drops sharply from 60 to 30 around in RELEASE mode based on real iPhone 4 test. 一句话不要混淆:基于真实的iPhone 4测试,在释放模式下FPS从60急剧下降到30。

Any one has any idea on how to handle this? 有人对如何处理有任何想法吗? Thanks for all kinds of aids. 感谢您提供的各种帮助。

Matt 马特

The obvious answer is to check the differences between your debug and release build settings. 显而易见的答案是检查调试和发行版本设置之间的差异。 Thumb code generation comes to mind, don't know if that still applies. 拇指代码生成浮现在脑海,不知道这是否仍然适用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM