Author
Topic: AdvancedExample OutOfMemoryError (Read 1839 times)

,when i test the example AdvancedExample,i occur the OutOfMemoryError,i try to check it ,and found if load the format md2(after create plane ,rock,not create sky) ,this situation will be encountered.i also setting some parameters. e.g call forceGeometryIndices() before build() and call strip(). also called the method Texture.defaultTo4bpp(true).btw : I reduced the size of the picturethere is my error message

MD2 is a bloated format. You'll run into memory constraints when using it naively pretty quickly especially on those older phones/VMs, who are limited to 16mb. If you want to use it, the better way is to load the model using desktop jPCT, remove the sequences from the animation that you don't need and save the result via the DeSerializer class.