FPS drops in android 7

Users who have an android 7, complaining about low FPS (10-12). At the same time on the android 4-6 no such problem. I think the problem is in AudioEngine or Spine. But I have no devices with android 7 to identify the source of the problem. Has anyone else encountered this problem?

Thanks for any feedback!

I use cocos2d-x 3.14.

I have a Android 7.0.1 device, could you please tell me where could I download your game apk?

I sent you the link in a personal message. If you have any suggestions, let me know.
Thank you!

Received, I will test it today.

@cookybreeed, I think this issue was fixed at the latest v3 branch.
It’s an system bug of decoding ogg file in Android 7.0.1.
Currently, we decode mp3, ogg, wav audio files by ourself to avoid a lot of compatibility issues on android.
You could refer to https://github.com/cocos2d/cocos2d-x/pull/17233 to see how to change.
Or you could clone https://github.com/cocos2d/cocos2d-x repo, and execute download-deps.py, copy / replace cocos/audio/android folder and external/android-specific folder to your project. And re-pack your game.
If you still doesn’t get a android 7.0 device, you could send your apk to me, I will help to test your game. :slight_smile:

1 Like

I did it and I get this error during the build:

Android NDK: D:\cocos2d-x-3.14\Project\Project\cocos2d\cocos/audio/android/Android.mk: Cannot find module with tag 'tremolo' in import path

Maybe I should make some other changes?

Did you follow this?
Could you make sure there are two new folders in external/android-specific/tremolo and external/android-spcefic/pvmp3dec?

1 Like

I fixed it. I sent you a link to the apk. Please test it :slight_smile:

OK, I will test it and give you feedback.

Your game run really smooth now on Huawei Mate9(Android 7.0), Nexus 5X(Android 7.1.1) now.
Congratulations. :slight_smile:

2 Likes

Great! Thank you very much for your help :smile: