Why is there such a huge difference between the CPU load for AmCap and the
PlayCap sample? I'm running both on a laptop with windows XP, 1.83 ghz, 2GB
ram. Display adapter is Intel 945 express chipset.
CPU load for AmCap is barely 2 whereas PlayCap jumps up to 20.
I would like to implement PlayCap into our existing .Net software which runs
on a sort of industrial terminal, so bringing the CPU load down to AmCap
levels would be very welcome.
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
Why is there such a huge difference between the CPU load for AmCap and the
PlayCap sample? I'm running both on a laptop with windows XP, 1.83 ghz, 2GB
ram. Display adapter is Intel 945 express chipset.
CPU load for AmCap is barely 2 whereas PlayCap jumps up to 20.
I would like to implement PlayCap into our existing .Net software which runs
on a sort of industrial terminal, so bringing the CPU load down to AmCap
levels would be very welcome.
Thanks!
You doing a debug build?
just did a release build, same thing
Probably the next thing I'd look at is the WndProc routine. Seems like there
might be some recursion there.
this routine right here?
protected new void WndProc(ref Message m)
{
switch (m.Msg)
{
case WM_GRAPHNOTIFY:
HandleGraphEvent();
break;
}
if ((VideoWindow != null))
{
VideoWindow.NotifyOwnerMessage(m.HWnd, m.Msg, (IntPtr) m.WParam.ToInt32(),
(IntPtr) m.LParam.ToInt32());
}
base.WndProc(ref m);
}
what should I change about it?
Are you a programmer? Or are you just looking for a commercial-ready product?
I am a programmer indeed. I'm looking to add a webcam stream to our existing
.net application.