low framerate with jit.gl.multiple
Jan 14 2022 | 10:52 pm
I am wondering if I am doing something inherently wrong here. I have a 5x5 grid of cubes that need to be able to independently move and rotate (and eventually have a different video on each cube). I am getting 5-10fps and this is a stripped down, simplified version of what is to come! In the end I will need to play back short, different videos on each cube (~2-5secs each), have a background animation AND do some msp stuff that will trigger the movement, rotation, etc...
For the video playback I was thinking of using jit.gl.textureset inside a poly~ to "record" a number of frames for each cube with a unique texture name that will be sent to jit.gl.multiple. A prototype is sort of working (not included below) but the framerate is just killing me!
Any pointers would be much appreciated.