|
From: Sauro A. <sag...@in...> - 2007-10-09 15:00:04
|
> >* The original farmhouse ran at about 6 FPS. > >* With extra references removed (the RemoveExtraReferences function), >the speed was about 60 FPS. > >* With some more algorithms, I got the speed up to about 370 FPS. >The sequence of algorithms I used was: > >RemoveExtraReferences >DecomposeGeometries >LowerAttributesToGeometries >FlattenHierarchy >OptimizeTriMeshes >MergeTriMeshes > Thanks a lot for your algorithms. There was a bug in the export 3DMF function of my application, so there were more submitting of the same models. I tried to add all the other optimization functions, but I didn't get your results. I added the following code to the Geom test example, after importing a model: RemoveExtraReferences(notOptimizedModel); DecomposeGeometries( notOptimizedModel,theView ); LowerAttributesToGeometries( notOptimizedModel); theModel=(TQ3GroupObject) FlattenHierarchy(notOptimizedModel,0 ); OptimizeTriMeshes(theModel); MergeTriMeshes( theModel); Working on the same 3dmf file that I sent you I have the following results (on an iMac Intel 2 core Duo) Without optimization 18 FPS With extra references removed 155 FPS With all the algorithms 178 FPS Maybe didn't I apply the algorithms correctly? Thank you again, Sauro Agostini -- ----------------------------------------------------------------------------- _ ___ |_| __| Interstudio S.r.l. Tel + 39 0573 99291 Fax + 39 0573 992930 | |__ | Piazza Monteoliveto 6a http://www.interstudio.net |_____| I-51100 Pistoia Italy mailto:int...@in... ----------------------------------------------------------------------------- |