Game render performance

Hello. I have a game that randomly gets terrible frame rate on some mobile devices. It doesn’t even happen all the time, seems to be at random. I have profiled the app and it looks like bufferSubData within postRender flush is the culprit. In some frames, it takes 140+ ms. I was curious why this could be and was wondering what exactly this function does.

Try to arrange the display list to minimize texture switching and blend mode switching. Or mayeb there are just too many game objects at some point. Spector can help some:

1 Like