I'm developing a webcam sampler with the help of Bryan Chung's Multimedia Programming in Pd book. I've created four points on the screen that uses changing colour hues to trigger samples, I've also used [switch~]ing to the four [readsf~] objects for each sample to minimise CPU usage on audio. All seems to work fine. However, when the GEM window is activated for the webcam, my CPU usage jumps up by about 30 % and creates audio errors! Is there a way to reduce CPU usage with GEM windows/webcams etc? Would FPS and other methods make a difference?
Patch is here webcam.pd