Hi Robert, > I've started to look at putting together this example but the Qt usage > is rather out of place for this type of example, adding Qt into the > example just complicates and obscures it's actual function. Qt usage > needs to be removed before I check it in. > > Have you done any work on removing the qt code?
Yes, I have removed to Qt code now, and I also done some other code clean up. See attached archive. The new submission is based on svn version 9135.
I have tried different approaches to optimize the time it takes to capture an image, but most of them had unwanted side-effects. If you have several CPU cores, it helps alot to increase the number of DatabasePager threads, so I added a command line option for setting this. It's GeometryTechnique::generateGeometry that takes about 90% of the time, hence running more DB threads helps. Here's the settings I've been testing the application with lately. % ./osgautocaptured --db-threads 4 --window 0 0 1024 576 --camera 55 10 300000 0 30 0 --filename out.jpg terrain.ive : Load and Compile time = 40.6248 seconds : Capture: size=1024x576, format=GL_RGB : Writing to: out.jpg : Rendring time = 5.13298 seconds > W.r.t the DatabasePager mod, this isn't thread safe so isn't viable > either I'm afraid. Added mutex protection for counter update / access. Hope this does thetrick. The example needs the the added DatabasePager feature to work. So I really hope this mod can make it into the svn trunk before the OSG 2.8 release.
Best regards, John Robert Osfield wrote:
Hi John, I've started to look at putting together this example but the Qt usage is rather out of place for this type of example, adding Qt into the example just complicates and obscures it's actual function. Qt usage needs to be removed before I check it in. Have you done any work on removing the qt code? W.r.t the DatabasePager mod, this isn't thread safe so isn't viable either I'm afraid. Robert.
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
osg_svn9135_osgautocapture.tgz
Description: GNU Zip compressed data
_______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
