We recently upgraded our Android devices from 4.2.0 to 4.2.2 only to realize that everything is now stuttering madly.
On Android 4.2.0 or lower, this call required roughly 15 ms.
glTexImage2D(GL_TEXTURE_2D, 0, GL_LUMINANCE, width, height, 0, GL_LUMINANCE, GL_UNSIGNED_BYTE, buffer.position(position));
On Android 4.2.2, the same call requires between 100 - 195 ms. What on earth has changed that would cause this? We are multiple developers testing across multiple devices and are all getting this. I can't see anything in the change logs that would affect this. I have no idea how to move forwards from here.
As a note, the buffer in the above call is a ByteBuffer returned from MediaCodec.