Forums > Jitter

background elimination / substraction in open gl

Jun 06 2011 | 9:47 am

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?

— Pasted Max Patch, click to expand. —


  1. Untitled1.jpg


Jun 06 2011 | 3:50 pm

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)

Jun 06 2011 | 3:59 pm

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.

-- Pasted Max Patch, click to expand. --

Jun 17 2011 | 1:52 pm

megathanks!you saved my live second time :)

Viewing 4 posts - 1 through 4 (of 4 total)

Forums > Jitter