fanyingzhao / iphonewavefrontloader

Automatically exported from code.google.com/p/iphonewavefrontloader
0 stars 0 forks source link

Unable to load the model with more than 2k triangles #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
1. I prepared 3D models(vrml 1.0) with various number of polygons by
decimating original models.
10k, 5k, 4k, 3k, 2k, 1k
2. I converted those models to obj format using blender.
3. Try to load each model in wavefront obj loader.

The program starts to crash when I try to load the model with 3k polygons.
This only happens when I execute the program solely on the device. (without
connected to mac)
I tried to look at the object allocation status using instrument tool.
It looks like the code temporarily takes up large amount of memory space
while parsing obj file. After loading obj file, the memory has been
released correctly.
Can we possibly improve the code which uses less temporary space during
loading the obj file?

Original issue reported on code.google.com by robo...@gmail.com on 14 May 2009 at 8:12

Attachments:

GoogleCodeExporter commented 8 years ago
I have the same issue.  I was able to load my model (16K vertices) on the 
simulator.  It took 190 seconds to do it, 
so I didn't even bother doing it on the phone.  The slowdown happens in 
processing of the faces, but I haven't 
really debugged yet it to see what exactly the issue is.

Original comment by roma...@gmail.com on 9 Dec 2009 at 2:14