ofTheo/ofxKinect — Issue #84: freenect_update_tilt_state and cpu ( OS X )
Author: ofTheo
Created: 2011-11-13 18:28:29+00:00
State: open

noticed in shark the the 15% of cpu was being used by	freenect_update_tilt_state(kinectDevice);
this seemed strange as its just updating the tilt.

I commented out this line and then got no image.
I tried changing the timing of how often it was called and it appeared that the timing of frames coming in was directly connected to the length of ofSleepMillis in the threadedFunction ( ie: ofSleepMillis(1000) gave me a new rgb frame every second ).

So it appears that the update_tilt_state command is directly connected to updating the camera stream.
What is weird is that the camera and the motor are two different devices, so I wouldn't expect the motor to block the camera's stream.

I found: https://github.com/OpenKinect/libfreenect/issues/175 which hints at the same thing on linux.

Going to look into this more as if its is resulting in a slow down then it would be great to get this solved.