I’m hitting OutOfMemory exceptions in my app when I use terrains of size 512x512. (more specifically, when trying to create a float ByteBuffer). So I whack in a -Xmx80m (straight from the javadoc) and see how it goes… same result.
In fact even going up to a ‘max’ of 1024 doesn’t solve things, so either:
- I’m blind and not using the command line arg properly.
- The new memory limit is being ignored for some reason
- Theres some arbitrary limit on ByteBuffers that I’ve not found the right option to tweek.
Anyone any hints?