background elimination / substraction in open gl
hi!
i started to work on video tracking, and i would like to free my cpu, during background substraction. i'v made a simple patch in opengl, but something is still eating my whole 1 core, of Phenom II X6. i thought, that it will be done in gpu, but it isn't. can you help me with optimization?
Max Patch
Copy patch and select New From Clipboard in Max.
more than likely, it's all those matrix-readbacks. every time you send a blue patchcord into a jit.matrix, the CPU is tasked with doing a readback from the GPU. get rid of those and see if your cpu utilization goes down (or FPS goes up)
Max Patch
Copy patch and select New From Clipboard in Max.
This would be my first step to optimize: always cheaper to do grab as uyvy when possible and get rid of all those preview windows.
megathanks!you saved my live second time :)