inputs icon indicating copy to clipboard operation
inputs copied to clipboard

1ms delay to data loop.

Open phuein opened this issue 6 years ago • 6 comments
trafficstars

Overloads the CPU otherwise. The While loop should at least take 1ms.

phuein avatar Apr 24 '19 02:04 phuein

#65 Discussion

phuein avatar Apr 24 '19 02:04 phuein

👍

jagprog5 avatar Apr 30 '19 21:04 jagprog5

Is this going to be merged?

gaafiz avatar Mar 19 '20 21:03 gaafiz

So... we gonna merge this?

barrettford avatar Sep 26 '20 22:09 barrettford

This is not the right way to fix this, IMO. The sleep does not belong in the _do_iter method. Just put in the loop in your own code where you iterate over the InputDevice instance.

SpotlightKid avatar Dec 16 '20 16:12 SpotlightKid

This is not the right way to fix this, IMO. The sleep does not belong in the _do_iter method. Just put in the loop in your own code where you iterate over the InputDevice instance.

This is what I thought. At least we should use asyncio or something so the user has control.

The original platform this was aimed at was Raspberry Pi then I tested it on Linux, Mac and Windows on thirty input devices.

(BTW If the delay is really needed on Windows then any solutions should only be on Windows, which to be fair I think this is. I don't feel I know enough yet to make changes.)

zeth avatar Dec 17 '20 02:12 zeth