Hi,

there's a couple of things I noticed with the GIF plugin.

When it encounters animated GIFs, it will decode the entire animation into
a sequence of images in RAM.  This process appears to be synchronous (it
blocks the calling thread), and it will consume a lot of memory.

I was wondering if there is any interest in improving this.

For example we could shift the decoding to when an image is actually
supposed to be rendered to screen. We still need to make an initial first
pass over the file in order to determine the total number of frames and
their respective playout timestamps - but I think we could skip the
decoding pass.

Christian
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to