Page 1 of 1

Does multiple USB devices with 1ms polling slow down the MiSTer?

Posted: Mon Aug 17, 2020 7:21 pm
by sofakng
Is there a limit to how many devices the MiSTer can support even if they are all using USB at 1ms polling?

For example, if you have four players each using a DaemonBite USB encoder, does that cause any issues?

I'm not quite sure how of the MiSTer architecture, but I think the Linux part of the device handles the USB so has anybody tested this?

Re: Does multiple USB devices with 1ms polling slow down the MiSTer?

Posted: Tue Aug 18, 2020 12:50 am
by grizzly
I'm not sure but my guess is no.
Not anymore then a slower polling rate or one single usb device at 1ms will slow down the mister.

from what i understand the usb will constantly ask/check the device is there anything new happening and if nothing new nothing will be sent/happen.
Lowering the polling rate to 1ms will tax the mister (probably the ARM cpu) more since it will have to shout anything new more often, but if that is noticeable at all on what the mister is used for is a completely different story.

If more usb devices would mean more lag/tax/etc is probably only if more then one controller presses one or more buttons at the same millisecond meaning maximum 3ms lag added=4ms total for 4 vs 1 controller, and it will be well under the 16ms one screen is shown.

My guess is if so many devices is using the usb bus at once it is the usb bus that will slow down not the rest of the system (as long as nothing in the rest of the system is not wating for any usb device to finish anyway).

The more problematic is probably what chip is in the usb hubs/usb controllers and so on THAT can add much lag.
More info in this tread.
viewtopic.php?f=32&t=915

Re: Does multiple USB devices with 1ms polling slow down the MiSTer?

Posted: Tue Aug 18, 2020 1:55 am
by Newsdee
1ms is basically 1Mhz, and the ARM core runs at 800 Mhz. Even if it used the four Deamonbyte adapters sequentially, it has plenty of capacity to spare.

As grizzly points out, if you experience lag with a controller it's more likely to be a slower chip inside it (i.e. it is not physically capable of running at 1ms / 1Mhz). You could also have odd issues (e.g. button not debouncing) if you have insufficient power to your devices (it's recommended to use a powered USB hub).

Re: Does multiple USB devices with 1ms polling slow down the MiSTer?

Posted: Tue Aug 18, 2020 1:08 pm
by rsn8887
Almost correct, but a period of 1 ms corresponds to a frequency of only 1 kHz, so it is even slower than you say.

Re: Does multiple USB devices with 1ms polling slow down the MiSTer?

Posted: Tue Aug 18, 2020 1:11 pm
by Newsdee
rsn8887 wrote: Tue Aug 18, 2020 1:08 pm Almost correct, but a period of 1 ms corresponds to a frequency of only 1 kHz, so it is even slower than you say.
Doh, you're right, got mixed up by an order of magnitude :oops:

Re: Does multiple USB devices with 1ms polling slow down the MiSTer?

Posted: Tue Aug 18, 2020 7:43 pm
by rsn8887
Three orders of magnitude.