Access webcam on Linux

I didn’t realize that it’s consume a lot of fps until I tried to use this for my another sketch. =(

I assume that I could update the buffer in another thread and pass to the texture in main thread to fix the frame drops but, to be honest, I’m not 100% sure where the problem comes from and there might be something mistakes in my code that I made when I ported the example into the cinder.

I’m not very experienced programmer but I want to be and I’m trying =] so I would like to ask help those cinder gurus in this forum, can you guys point me where the problems are or direct me what to do to make this better and usable module for cinder on linux?

I appreciate in advance!