Skip to content

Writing lag on OSX #35

Description

@mindoftea

Hey there.

I've been using your software recently to relay commands from a ps3 controller to an Arduino-based robot. It works really well, except that it takes 250ms to write data to the Arduino's bluetooth. For a robot which needs quick moment-to-moment controls, this is quite unwieldy.

When the write command is called for the first time, it can take as few as 10ms to summon its callback. Within two or three calls, however, it slows to exactly 250ms. I've checked that the ps3-parser I wrote is serving data fast enough and that the Arduino is reading data fast enough; both systems perform in the <20ms range. I've put together a minimal test case which you can see here: https://gist.github.com/mindoftea/ac6ca90687e0f1c10d0f.

Do you know why this might be happening? I wondered if it might be an OSX-specific issue, but I don't have another machine to test it on.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions