Jess, Whatever you do, there will always be a dropped frame at some point. Best bet is to just allow for a variable frame rate in your paint algorithm.
I'm doing a paint program too, and managed to get it working very well, with smooth uninterupted lines no matter what the framerate is.. but then I'm not depending on video input. I'm using a system where the mouse position is stored in a queue each frame, and the queue has a length of 2. I then feed the 2 queue members into the line drawing stuff, so it will draw a line between the mouse positions for the current frame.. then it will always draw a connected line, no matter how long the frame takes. The lines are then fed into the accumulator of course. And some extra logic is needed to handle the start + end of paint stroke events, assuming you aren't paint continuously. Chris 2008/11/20 Jesse Lucas <[EMAIL PROTECTED]> > Hi list, > > I'm using a firewire camera as the input for a drawing program. An > accumulator and basic core image filter is used to keep only the brightest > part of the image. > But I often get breaks in continuous lines when drawing. It looks like the > computer is missing a frame of the camera or forgetting to process one > through the accumulator. Its very random and happens even after shutting > down any unnecessary functions (airport, bluethooth etc...) > > Any idea on where it could come from ? Or a way to optimize the code ? > > Thx > JeSs > > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Quartzcomposer-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > > http://lists.apple.com/mailman/options/quartzcomposer-dev/psonice%40gmail.com > > This email sent to [EMAIL PROTECTED] >
_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]

