When I sent a large numpy array to vbo, the memory goes up, right up to the concert.
The shape of the array is (120000, 1), each vertex x, y, z, r, g, b. The array may be larger, but regardless of its size, the distribution is disproportionate.
I added OpenGL.ERROR_ON_COPY = True, but it does not start.
I am using the vbo module from OpenGL.arrays
the vbo string self.vbo = vbo.VBO( vertices, usage=buffer.usage). Nothing special AFAICT.
The only thing I have is that I create and delete a lot of vao / vbos when the grid is full and they are stored in memory (even if you use it VBO.delete(), which I do).
Either I'm doing something wrong, or I get into a buggy precedent.
Any idea on how to solve this problem?
source
share