From: Tim Moore Date: Thu, 19 Jul 2012 22:32:22 +0000 (+0200) Subject: change optimizer options for models X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b2a6cdec4e52f9b27293dcbc387cd5c99d2b7acb;p=simgear.git change optimizer options for models Tristrips are old and busted, index meshes are the new hotness :) --- diff --git a/simgear/scene/model/ModelRegistry.cxx b/simgear/scene/model/ModelRegistry.cxx index d65efbb0..58c5bc37 100644 --- a/simgear/scene/model/ModelRegistry.cxx +++ b/simgear/scene/model/ModelRegistry.cxx @@ -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) { }