With the example code below I am loading (large) Jitter matrices and rendering these with mgraphics within jsui. My issue is, I can’t find a way to free the MGraphics instance created by the mginstance function – every time i call it Max’s active memory allocation increases until it crashes.
How can I explicitly call a release on this MG instance (a kind of equivalent to the freepeer() method for jitter matrices)? I could not find a clue in the docs or DG’s tutorials.
Ok, my problem was badly stated – I am now getting my matrix directly into an Image object without creating an MG instance for that purpose (appropriate code below for those interested). I had got confused (mainly) by the fact that the .fromnamedmatrix method on Image does not work for float32 matrices but only for 4 plane char, which I should have guessed earlier.