Md2 Loading extremely slow

Hi all,

I am loading 6 Md2 models into my game, and they take longer to load than creating an entire terrain. Albeit I am doing both, but I have tried it without the md2 models, and the init time is cut to a 1/3 of what it was.

I am creating a 256 TerrainBlock without clod, and 6 models, and im getting a java.lang.OutOfMemory error. Now that shouldn’t happen! :?

MilkshapeASCII isn’t affected tho, ive tried loading 50 models into the same terrain and it was perfectly fine, the time was around the same for loading 6 md2 models. :’(

Whats going on :?

MD2’s are memory hogs in jME right now. Basically, there’s a model for each keyframe. Not efficient and not the way it will be in the future.

However, depending on how your are running it, your JVM is probably getting 64MB of memory. Try giving it 128 or 256 if you have enough to spare. That will at least get it running for you.