Hello According to the MemoryHelper I was only using aroudn 10MB memory after compaction, but somehow I got an OutOfMemory error shown here:
http://i8.photobucket.com/albums/a23/Disastorm/OOM.jpgHow can I prevent this? It happened when I added a whole bunch of objects into my scene (slowly added 1 at a time, through cloneObject).
*edit I saw in another thread you mentioned something about shareCompiledData. That looks like it may have solved my OutOfMemory issue.
However it seems to work on all my objects except for my "enemies". For some reason when I call it on them they become invisible... why is this?
also whats the difference between cloneObject and new Object3D(model, true) ? should i actually use the latter instead of cloneObject? Also I noticed when I do shareCompiledData, my object flashes like brown for a split second when I add it to the world. If i dont share the compiled data this does not happen. Is there a way I can stop this flash of brown as it is a little annoying and makes me feel like my game is less polished.