improve fps when render into a matrix

Ad.'s icon

Hi all
For some reasons, I have to render my gl context to a matrix…
With a single 1200x1000 video, I get 15 fps maximum…
Some of you would have some tips to obtain a good frame rate ?

Max Patch
Copy patch and select New From Clipboard in Max.

Thx you.
Here's the patch to understand my problem:
ad

yair reshef's icon

im getting 20fps!

but seriously, this is some harsh patch,
GPU and CPU dont like to pass big chunks of data between each.
there is help, and i might be outdated BUT it worked
https://cycling74.com/forums/cc-uyvy2rgba-jxs-and-optimization