Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS frame drop #22

Closed
roefer opened this issue Nov 16, 2010 · 3 comments
Closed

MacOS frame drop #22

roefer opened this issue Nov 16, 2010 · 3 comments

Comments

@roefer
Copy link
Contributor

roefer commented Nov 16, 2010

The current implementation still does not reach 30 Hz on MacOS. This is due to bad scheduling of USB transfers in libusb. A fix can be found at http://www.informatik.uni-bremen.de/~roefer/libusb/libusb-osx-kinect.diff .

In camera.c, I use PKTS_PER_XFER = 128, NUM_XFERS = 4. There are a few rules: PKTS_PER_XFER * NUM_XFERS <= 1000, PKTS_PER_XFER % 8 == 0.Initialization seems to work better when send_init() is called before the transfer packets are submitted, i.e. before the loop in cams_init().

@qdot
Copy link
Member

qdot commented Nov 16, 2010

Awesome, I just tested this and everything works great! Thank you so much for this patch, we were kinda stumped on what was happening there.

I'll go ahead, add this code and credit you in the commits. :)

@ofTheo
Copy link
Contributor

ofTheo commented Nov 16, 2010

whoohoo - now os x doesn't have to feel like the slow kid in class :)
thanks for digging into the libusb stuff.

@qdot
Copy link
Member

qdot commented Nov 17, 2010

Merged and closed.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants