Re: [Flashcoders] Help! Webcam + lineTo on mousemove = webcam freeze

2008-07-05 Thread Alias Cummins
Well for a start, you're going to be creating loads of geometry. Are
you rendering your drawings to bitmaps at all? Sounds like a
performance issue to me. Drawing vector lines takes CPU - this is just
a fact of life.

What I'd recommend is something along these lines:

User presses mouse
User draws with pen tool
User releases mouse
The line drawn is drawn to a bitmap

Repeat.

Does this make sense?

It may not solve your immediate issue with the webcam, but you will
definitely run into it sooner or later.

Hope this helps,
Alias

2008/6/29 Johnny Zen <[EMAIL PROTECTED]>:
> Hi all
>
> I am writing an application where I have  a whiteboard and webcam.
>
> When I freehand draw a lot using lineTo (sprite), the webcam freezes.
>
> (Drawing.graphics.lineTo(sourcePt.xPos, sourcePt.yPos);) - on mousemove
>
> Any idea why this would happen ?
>
> When I am drawing like crazy, I can see my webcam start to slow down
> and then it gives up. - almost like a processing bottleneck ?
>
> Any help would be cool.
>
>
> Thanks
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Help! Webcam + lineTo on mousemove = webcam freeze

2008-06-29 Thread Johnny Zen
Hi all

I am writing an application where I have  a whiteboard and webcam.

When I freehand draw a lot using lineTo (sprite), the webcam freezes.

(Drawing.graphics.lineTo(sourcePt.xPos, sourcePt.yPos);) - on mousemove

Any idea why this would happen ?

When I am drawing like crazy, I can see my webcam start to slow down
and then it gives up. - almost like a processing bottleneck ?

Any help would be cool.


Thanks
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders