[Fluxus] obj loading speed
Dave Griffiths
dave at pawfal.org
Thu Jan 14 23:46:24 PST 2010
Hi Gabor,
In that case, a quick fix might be to save out the primitives from
fluxus, as they should be quicker to load back in once processed this
way.
cheers,
dave
On Thu, 2010-01-14 at 15:56 +0100, gabor papp wrote:
> > A guess, but it could be the conversion of the indexes - obj files allow
> > separate indexes for normals, tex coords and vertices. OpenGL requires
> > one index for all of these (as far as I remember).
> thanks. i think you are right. this is the annotated output of valgrind:
>
> --------------------------------------------------------------------------------
> Ir I1mr I2mr Dr D1mr D2mr
> Dw D1mw D2mw
> file:function--------------------------------------------------------------------------------
> 3,971,655,381 3 3 283,353 60,892 4,662
> 104,398 0 0
> libfluxus/src/OBJPrimitiveIO.cpp:Fluxus::OBJPrimitiveIO::UnifyIndices(std::vector<Fluxus::OBJPrimitiveIO::Indices,
> std::allocator<Fluxus::OBJPrimitiveIO::Indices> > const&)
> 2,979,464,410 0 0 1,986,364,269 185,452,680 11,880
> 0 0 0
> libfluxus/src/OBJPrimitiveIO.h:Fluxus::OBJPrimitiveIO::UnifyIndices(std::vector<Fluxus::OBJPrimitiveIO::Indices,
> std::allocator<Fluxus::OBJPrimitiveIO::Indices> > const&)
> 1,986,172,832 0 0 993,205,975 185,421,051 0
> 0 0 0
> libfluxus/src/OBJPrimitiveIO.h:Fluxus::OBJPrimitiveIO::RemoveDuplicateIndices()1,985,946,903
> 3 3 193,875 103,074 0 6 0
> 0
> libfluxus/src/OBJPrimitiveIO.cpp:Fluxus::OBJPrimitiveIO::RemoveDuplicateIndices()
> 993,082,716 0 0 133,233 10,506 0
> 133,233 13,531 2,302 /usr/lib/gcc/i386-redhat-linux/4.3.
> 2/../../../../include/c++/4.3.2/ext/new_allocator.h:Fluxus::OBJPrimitiveIO::RemoveDuplicateIndices()
>
> gabor
>
More information about the Fluxus
mailing list