[osg-submissions] static-transform eradicating flattener

Terry Welsh mogumbo at gmail.com
Thu Feb 21 16:24:06 PST 2008


Here's my flattener that wipes out static transforms and duplicates
subgraphs as necessary.  If you have a model with a lot of static
transforms, this may make it run faster at the cost of a lot more
memory.  My models got about a 25% framerate improvement.

This works with some pretty complex models that I have tried it on,
but I'd be surprised if I thought of every possible corner case.  I
hope other people can try it out.  Sorry I didn't include a demo
application, but that stuff is all secret and stuff.  It's a simple
visitor so it's easy to add to existing code.

Before it gets rolled into Optimizer it will need a better name, and
there might be ways to have better code reuse (some of the functions
are quite similar right now).
-- 
Terry Welsh - mogumbo 'at' gmail.com
www.reallyslick.com | www.mogumbo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FlattenVisitor.tar.gz
Type: application/x-gzip
Size: 1830 bytes
Desc: not available
Url : http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080221/953d5158/attachment.bin 


More information about the osg-submissions mailing list