Serious lag / fps Issue on Nexus 6P | Marshmallow

We are facing serious lag on Nexus 6p device. The issue exists on all of our apps.

Here is the link of the APK

Getting 60 fps on all other devices, but for Nexus 6p its around 30 fps. App uses BMFont and compiled for armabi-v7a. Also tried using armabi, but no luck.

Cocos2d-x version 3.9 (c++)

Already tried this

We figured out the issue.

The problem is with new label system. No issue with old LabelTTF. Getting 60fps

We tested new Label with TTF & BMFont. Both have FPS issue.

ui::TextBMFont, ui::Text & LabelBMFont also have the same fps issue.

1 Like

Is there a fix for the new label performance issues?

They have not yet fixed the issue.
I posted the issue long days ago. https://github.com/cocos2d/cocos2d-x/issues/14685
We are using old LabelTTF on all of our apps. No issue with that.
@Obg1

I’m having performance issues on LG G4, but other devices like the Galaxy S5 are running smooth.
But I’m not sure what is causing this. What font are you using?

Museo Sans Rounded TTF file.
I have also tried Bitmap Font version, but no luck!

When looking on the old (Now deprecated) LabelTFF & BMFont it seems they are using the new Label mechanism inside their classes, so I’m not sure why the old Labels are giving you 60FPS. How many GL draw calls do you have?

@Obg1

Sorry for my late reply.

The deprecated BMFont might be using new mechanism. it has issue too. But LabelTFF still using old.

Here are the screen shots, those were taken from Nexus 6P.

Have you find any fix?

NEW LABEL

OLD LABEL

I’m now looking at the device logs and I’m seeing the following log MSG:
“cococ2dx E/ThermalEngine”
It seems like the device it heating and down-clocking it’s GPU to prevent overheat.
Maybe it’s related to the low FPS, I’m not sure.

Did you try using LabelAtlas instead?

I will try when i get free time.

Hello @kiranb47,

Have you solved this issue with any alternative way?

Thanks,
Gurudath

@Gurudath Try using old LabelTTF. Let me know if there any other alternative fix.RLabel.cpp (1.3 KB) RLabel.h (619 Bytes)

1 Like

@kiranb47
I will use Old LabelTTF. Thank you.
I didn’t find any other fix yet.

does any body have any idea when cocos2dx plans on fixing this issue? I want my app to work on android 6.0 does anybody recommend to just use old labelTTF or is there any downsides to using old labelttf ?

Old labelTTF working fine. No issue at all.

No idea when cocos team is going to fix this issue

1 Like

Ok thanks will use old labelTTF

Hmm we also noticed performance issue on Nexus 6, so it seems issue when QHD display in use.

But if you using old labels, then you probably get blurred/cuted fonts on some devices.