Hi, i've made:
1 2 3
| m_vertices = BufferUtil.newFloatBuffer(m_vertexCount * 3* fVertexPerPixel); m_texCoords = BufferUtil.newFloatBuffer(m_vertexCount * 2* fVertexPerPixel); |
and i get the memory error.
if i enable "float [] vertices= new float[m_vertexCount * 2* fVertexPerPixel*fVertexPerPixel];"
and disable "m_vertices = BufferUtil.newFloatBuffer(m_vertexCount * 3* fVertexPerPixel);", i dont get an error.
1) is the ByteBuffer limited in any way, and have less mem space than the java heap?
2) can i extend the java heap?