From: Arkadi S. <ar...@it...> - 2003-01-31 21:57:58
|
On Fri, Jan 31, 2003 at 04:33:36PM -0500, Leif Delgass wrote: > Actually, iirc, all the drivers actually implement glTexSubImage2D the > same way as glTexImage2D. They always upload the entire texture image -- > there was a comment I remeber seeing about the subimage index calculations > being wrong. Fixing this to only upload the subimage would help the > performance of glTexSubImage2D. I think it doesn't make any difference with MPLayer, it replace whole texture for every frame (there is draw_slice() in libvo/vo_gl.c, but I doubt it is used too much; possible source of low performance with DRI?). It always upload in RGB format, so probably much of the CPU is spent in yuv2rgb(). How glTexSubImage2D can upload full texture? The original source is gone, does it keep a copy internally? arkadi. |