dualsense-controller-python
dualsense-controller-python copied to clipboard
Delay on slow CPU
There's a large delay on my raspberrypi-zero.
When pressing a button it takes about a second to register with my python-script.
Is there some kind of busy-cpu loop that is blocking the CPU? could this be worked around to be event-driven?
Interesting. We've never tried this lib on slow CPU machines. There is a separate thread, which polls the incoming HID data bytes, then it detect changes of values like button up or down, and then, on change, it executes your callback. is your callback doing hard work which blocks execution?
No, it is just printing debug-information.
Unfortunately i can't test with your setup right now to find out if it's a general problem with python on slow CPU devices or if it's a problem with this library itself. Maybe you could help me by trying the pydualsense library from flok and let me know if it runs better with it. the core structure is very similar. this could provide us with valuable conclusions and give us a starting point for further problem analysis.
have you tried flok's library? do you have any insights you can share?