Hi all,
I'm implementing some optimizations to some cogl texture functions, since they seem to have a considerable impact on my application performance, and I've started with _cogl_texture_upload_to_gl() (GLES backend).

I added some debugging statements in there, and it seems that the texture is never sliced in my case. So, I've implemented the optimization suggested by the FIXME comment, that is avoid copying the bitmap to a temporary one. Things seem to work fine, and definitely faster.

Before submitting this patch for review, though, I'd like to understand whether the code blocks introduced by the "if ({x,y}_span->waste > 0)" condition are also relevant in the single slice case, or if they can be omitted. I left them out and I'm not noticing any problems.

Ciao,
  Alberto

--
http://blog.mardy.it <- geek in un lingua international!
--
To unsubscribe send a mail to [email protected]

Reply via email to