For a project, i need a script to take a picture from a webcam continuously, as fast as possible. Right now, i am only getting about 3 fps, where the camera (Logitech QuickCam Chat) should be able to do 30fps.

my current script:
while [ true ]
streamer -q -o zpic.jpeg
echo "Took Picture $count"
count=`expr $count + 1`
It's not the camera, as Cheese Webcam Booth is very smooth, and im pretty sure, 30fps. In addition streamer is giving me sweeping lighter bar (insignificant).

What could i use?