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.

    • Jan 20 2022 | 2:48 pm
      Hey MIB, the patch on my computer runs at 60 fps. There is one thing I don't understand though: why are you using jit.anim.node? You can scale, move and rotate the shape just by using the gridshape relative attributes, no need for anim.
      Also, no need for @automatic 1 if you are drawing the shape with multiple. The rest seems pretty straightforward and ok. Let me know if now it runs better. Federico
    • Jan 21 2022 | 10:11 am
      Thanks! I think the jit.anim.node was leftover from some testing, thanks for catching that!
      If I run your patch it is at 60fps. If I swap it into my setup it goes down to 15-20 fps... better than before but still something wrong. Nothing else in the patch is doing anything right now so I don't understand... will investigate.
      Since I will need short 1-2 second videos on each cube I was wondering if you think it would be better to use jit.gltextureset or jit.matrixset, specially since I will need to process the textures according to some input?
      @FEDERICO-AMAZINGMAXSTUFF love your channel btw!
    • Jan 23 2022 | 12:54 am
      @MIB your patcher runs fine. no fps problem on my old MacbookPro2014