I have a patch which does spectrum analysis and writes it to a matrix. That matrix goes to the GPU through jit.gl.pix and slabs for heavy processing. Then I want to take the output and use it as vertex position data for GL drawing, using jit.gl.mesh right now.
I'm getting a big fps drop from having to write the slab output into a jit.matrix before sending it to jit.gl.mesh (also having to reformat from 4 planes to 3). Rendering stays stuck at 30fps. Which is not very bad but I know it could be lots faster given the relatively simple geometry.
Doing the gl.pix and slab processing on the CPU and thus circumventing readback is slower. Getting around 15fps that way.
Is there a more efficient way of doing this in Max6? Perhaps with Lua?