Menu

AmCap vs PlayCap - CPU load

Anonymous
2009-11-04
2012-10-29
  • Anonymous

    Anonymous - 2009-11-04

    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!

     
  • snarfle

    snarfle - 2009-11-05

    You doing a debug build?

     
  • Anonymous

    Anonymous - 2009-11-05

    just did a release build, same thing

     
  • snarfle

    snarfle - 2009-11-07

    Probably the next thing I'd look at is the WndProc routine. Seems like there
    might be some recursion there.

     
  • Anonymous

    Anonymous - 2009-11-09

    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?

     
  • snarfle

    snarfle - 2009-11-09

    Are you a programmer? Or are you just looking for a commercial-ready product?

     
  • Anonymous

    Anonymous - 2009-11-12

    I am a programmer indeed. I'm looking to add a webcam stream to our existing
    .net application.

     

Log in to post a comment.