]> git.mxchange.org Git - simgear.git/commitdiff
change optimizer options for models
authorTim Moore <timoore33@gmail.com>
Thu, 19 Jul 2012 22:32:22 +0000 (00:32 +0200)
committerTim Moore <timoore33@gmail.com>
Thu, 19 Jul 2012 22:32:22 +0000 (00:32 +0200)
Tristrips are old and busted, index meshes are the new hotness :)

simgear/scene/model/ModelRegistry.cxx

index d65efbb0aecbfa14513cd36fcc6bd6df002e90b7..58c5bc37ecab1c3f461099c92f031a1e47ccd23f 100644 (file)
@@ -314,7 +314,9 @@ OptimizeModelPolicy::OptimizeModelPolicy(const string& extension) :
     _osgOptions(Optimizer::SHARE_DUPLICATE_STATE
                 | Optimizer::MERGE_GEOMETRY
                 | Optimizer::FLATTEN_STATIC_TRANSFORMS
-                | Optimizer::TRISTRIP_GEOMETRY)
+                | Optimizer::INDEX_MESH
+                | Optimizer::VERTEX_POSTTRANSFORM
+                | Optimizer::VERTEX_PRETRANSFORM)
 {
 }