When I change line in GrayscaleSample code (COM-based code written for OptiTrack) to full speed
i.e. I change
camera->SetOption(NP_OPTION_FRAME_RATE,(CComVariant) 25);
to
camera->SetOption(NP_OPTION_FRAME_RATE,(CComVariant) 75);
most of the frames are corrupted and empty frames are returned.
My question is, is this because of COM interface and could be solved by using TT2.0?
While I capture each frame using the command:
camera->GetFrameImage(frame, windowWidth, windowHeight, windowWidth, 8, (byte *) frameBuffer);
what does the NP_OPTION_FRAME_RATE do? I mean shouldn't framme-per-second solely depend on how fast we capture the frames? Or maybe NP_OPTION_FRAME_RATE increases some hardware timer speed in order to capture with higher rate and otherwise calling GetFrameImage would return the previous frame?
The reason I suspect it is COM fault (not USB) is that inside NaturalPoint TT2.0 I can get the 100FPS.
I decided to ask my software question here instead of the other thread that I started, because I did not want to mix different issues.
I may keep all my questions in these two threads if you suggest so
