Android Performance Issues - Vertex Array Object (VAO)

@framusrock

I meant this patch: https://github.com/cocos2d/cocos2d-x/pull/16901

@ricardo ah okay, thanks. I wasn’t aware. I applied the patch to my cocos version and it seems to still compile/work. Though it does not speed up anything on my Nexus 7 (obviously). And I’m also still a bit worried that cocos might just not work on some Android devices now, since @zhangxm noted that exceptions of Android devices might need to be added.

Ok. Let’s wait until @zhangxm returns from holiday. Currently they are on holiday since it is the Chinese New Year (spring festival).

1 Like

@framusrock does your device uses VAO now? Yep, it may not work on some devices(though it should not be), but until now we haven’t received any feedback.

@zhangxm No, my device still doesn’t use VAO - but maybe the graphics driver is just too bad/old to support it. Okay, so it’s a good thing that we have this patch for sure - let’s hope no devices will have issues.

Do you have any idea how to speed things up on non-VAO devices? Will any of @Darinex ideas speed things up?

@framusrock i think @Darinex’s 3 method may speed up a little if buffer orphaning can not work on the device. But it will causes more memory and we don’t know how many VBOs are needed.

I found opengl error 0x0505 when i use VAO to create progresstimer on some mobile phones.

Mobile phone :
Htc butterfly
ASUS PadFone S
MI 3W
Sony Xperia Z3

1 Like

I am facing issues on 1st and 2nd generation amazon kindles. I am using sprite sheets in my game. Nothing except my background png, which is not part of sprite sheet, get rendered on screen. I can still touch the buttons location and they work fine. Disabling VAO fix this issue.

Maybe that’s why cocos2d-x disable VAO by default.

But as far as I know it’s no longer disabled now after a long discussion and thread.

Why should disable VAO by default? VAO is performance improved on most android devices.

2 Likes

In ccConfig.h, there is a comment
“If a device doesn’t support VAO though it claims to support should add exceptions list here.”
My comment was basically to report these two devices.

1 Like

Also got the error on Amazon KFTT