cocos2d / cocos2d-x

Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
https://www.cocos.com/en/cocos2d-x
18.12k stars 7.05k forks source link

Laggy framerate on iPhone 7 #17204

Open jabson opened 7 years ago

jabson commented 7 years ago

I tested our cocos2d-x v3.13 game on iPhone 7 device. It Sometimes passes 50 fps, while other iOS devices (including iPhone 6 or below) ran very smoothly. I tried everything in my code but no result. It seems iPhone 7 runs other processes which eats much cpu. when i run QuickPlayer to record video on iPhone 7 the game made more smoothly. Can anything be done about this issue?

minggo commented 7 years ago

when i run QuickPlayer to record video on iPhone 7 the game made more smoothly.

What does it mean? Run QuickPlayer will make game more smoothly?

jabson commented 7 years ago

I mean, when you launch quick time on the mac then select File->New Movie Recording and drop down on the record button then select iOS device to record game screen. It seems QuickTime kills some other processes which drop downs game performance. About 5 times the game made faster.

Thanks for quick reply.

minggo commented 7 years ago

Good to know. Thanks.

jabson commented 7 years ago

If you have iPhone 7 and are interesting with the problem, i can send you game invite on test flight.

jabson commented 7 years ago

I have made a new template using cocos2d-x 3.14. create a scene and add parallax with 3 sprite iPhone 7 still lagging :|

dumganhar commented 7 years ago

@jabson

I have made a new template using cocos2d-x 3.14. create a scene and add parallax with 3 sprite iPhone 7 still lagging :|

Could you send me the demo project based on template?

jabson commented 7 years ago

There is test project with moving 3 sprites. There is not lag on iPhone 6 or 6s. if you run on iPhone 7 it mades laggy. cocos2d-x version is 3.14. also try to change MoveSpeed in HelloWorldScene.

Sorry for late answer.

https://drive.google.com/file/d/0B0tGqNGLqq29Z0tUV3daN2JnZmc/view