Only getting every other frame for "Sample" project in C++
I am running the project called Sample in VS 2012, and it is working well, except for the fact that I noticed I am only getting even number (or odd number) frame ID's. Why is it that I am only getting every other frame? Is this supposed to happen, or is it that my machine is somehow too slow in processing? I can change the code in Sample.cpp so that it only outputs the frame id and does no other calculation in order to reduce the amount of time spent in the onFrame() function and reduce processing, but this does not change the problem as I am still getting only every other frame data.
Does anyone have any idea why this is (or has anybody else experienced this? I would like to get every frame instead of losing half the data collected.
Thanks
Frame numbers are expected to be in ascending order, but not guaranteed to be consecutive integers.
The always-even-numbers phenomenon is known to occur when the device goes into robust mode. In that case you're not losing half the data, although it takes two hardware frames to generate one data frame.