Hi community! I'm playing around with a primitive heigthfield renderer on a regular grid loaded from an image file. The scenegraph is really simple containing just one large IndexedTriangleArray. Now, taking a grid of 512x512 causes an OutOfMemoryException - the footprint of the JVM is >81MB.
I calculated the basic size of the data taking 3 float/vertex and 3 byte/color (~4MB) and 6*511*511 ints for the index (~6MB). This turns out to be approx ~10MB. I setup the IndexedTriangleArray to use my own arrays with the flag combination: IndexedTriangleArray.COORDINATES | IndexedTriangleArray.COLOR_3 | IndexedTriangleArray.BY_REFERENCE The question now is: what are the other 70MB used for? I tried other scenarios w/o the BY_REFERENCE flag e.g. - with no significant change. How can I keep memory consumption low? Whats going on? Any hints are deeply appreciated, - J =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".