Hi,
I was recently developing application where ImageSequences were switched
dynamically. Images were rather large and I could not preload them so I used
PAGE_AND_DISCARD option. However when switching the sequences I noticed that
each restart takes more and more time. I figured out that former pending
requests in ImagePager queue were blocking new requests. So I come up with idea
to flush the ImagePager queue before starting new sequence.
But I was unable to find a method to flush the queue so I ended up with
reseting ImagePager:
viewer. stopThreading()
viewer.setImagePager( new ImagePager );
viewer.startThreading()
I am not sure if I had to stop & restart threading but I realized it will be
safer this way. I wonder if there is a better approach to the above problem.
Perhaps there is a way to selectively abandon certain requests ? For example
cancel requests originating from deleted ImageSequence ?
I also realized that request queue flush could be also interesting for
DatabasePager scenarios when Camera was warped to distant new location. I would
also like to hear about any ideas to tackle this problem ?
Cheers,
Wojtek Lewandowski_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org