reduce lag/latency of a jit.grab camera feed from webcam

Yan Da's icon

Hello, I'm doing a live performance project which requires live camera feed being grabbed into the patch with as less lag as possible. Since we need the feed to be perfectly synced with the actually performance. When I tried to connect a Logitech c930 webcam with a jit.grab help file with all default settings, the lag is about 0.5 second. How can I improve the lag. I also tried hdmi connection to goPro, the leg is about the same. Acceptable but not ideal. Besides hardware, Is there a way to optimize the patch to make it less lag. Thanks.

Federico-AmazingMaxStuff's icon

Hey, be sure to enable @output_texture on jit.grab, and use only gl objects to process the signal.

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

billyanok's icon

Yan Da,
GoPro's have pretty bad latency. I have much better results with Blackmagic thunderbolt or PCI cards.
B

daddymax's icon

What resolution is the image? You obviously don't want to get pixelated, but if the image is so large it's superfluous maybe see if it helps by setting explicit dimensions that are a little smaller?