Commits

Cliff Biffle  committed b8b7f14

Disabled freenect depth/rgb processing when the corresponding buffer is not provided to KFKinect. For applications that don't use one or the other, this is a small performance win.

  • Participants
  • Parent commits ff87092

Comments (0)

Files changed (1)

             freenect_set_rgb_callback(_device, rgbCallback);
             freenect_set_rgb_format(_device, FREENECT_FORMAT_RGB);
             freenect_set_depth_format(_device, FREENECT_FORMAT_11_BIT);
-            freenect_start_depth(_device);
-            freenect_start_rgb(_device);
+          if (_depthBuffer) freenect_start_depth(_device);
+          if (_rgbBuffer) freenect_start_rgb(_device);
             
           NSLog(@"wheeee");