background elimination / substraction in open gl

Jun 6, 2011 at 9:47am

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?

– Pasted Max Patch, click to expand. –

[attachment=163785,2330]

Attachments:
  1. Untitled1.jpg
#57469
Jun 6, 2011 at 3:50pm

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)

#205904
Jun 6, 2011 at 3:59pm

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. –
#205905
Jun 17, 2011 at 1:52pm

megathanks!you saved my live second time :)

#205906

You must be logged in to reply to this topic.