On Mon, 2010-01-11 at 13:49 +0100, gabor papp wrote: > hi, > > we are working on an ar music game in fluxus: > http://www.flickr.com/photos/kitchenbp/4263897388/. > > the problem is that loading bigger obj files are really slow. do you > have any ideas what part of the object loading code could be optimized > to make this faster?
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). If you are not using textures you could speed this up by removing them and the normals and recalculating the normals once the object has been loaded. > > i tried profiling fluxus using the -pg gcc option, but fluxus crashed > immediately. does anyone have any experience profiling fluxus? I use valgrind, something like: valgrind --tool=cachegrind --vex-iropt-precise-memory-exns=yes --error-limit=no fluxus then run cg_annotate on the resulting file cheers, dave
