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