Skip to main content

How fast is ObjectFile.load() ?

No replies
jiapei100
Offline
Joined: 2006-12-04
Points: 0

I'm trying to load an object file around 10 mega bytes, using the following code:

<br />
int flags = ObjectFile.TRIANGULATE | ObjectFile.STRIPIFY | ObjectFile.RESIZE;<br />
ObjectFile f = new ObjectFile(flags, 0.0f);<br />
Scene s = null;<br />
try {<br />
       s = f.load(fname);<br />
}<br />
catch ........</p>
<p>

The loading process is unbearably slow. Normally, for this 10 mega file, it takes around 30 seconds.

I'm just wondering if this is just the case for ObjectFile.load() ?? Or, is there anything wrong with my code?

Best Regards
JIA Pei