asafbibas / jmonkeyengine

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

BinaryImporter creates buffer as large as J3O file it is loading #477

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Load a large J3O file on Android
2. Notice that memory usage will increase significantly.

What is the expected output? What do you see instead?
I expect the BinaryImporter to load the file as a stream rather than buffering 
its entirety and then reading it.

See thread:
http://jmonkeyengine.org/groups/android/forum/topic/android-outofmemoryerror/#po
st-166768

Original issue reported on code.google.com by ShadowIs...@gmail.com on 14 Mar 2012 at 4:01