Reputation: 12148
I am writing a video player, I decoded the video frames and use 3 sampler2D
s for receiving the YUV format frame data, it renders perfectly fine.
But it has serious performance issue with glTexSubImage2D
. I observed strange behaviors:
For other components that are not slow to upload, they take less than 1ms. I use glTexSubImage2D
with internalFormat=GL_RED
, format=GL_RED
, dataType=GL_UNSIGNED_BYTE
.
What could be the possible cause of these strange behaviors?
Upvotes: 0
Views: 336