Overclock USB Controller Polling Rate
-
Is it possible on Raspberry Pi to Overclock the USB Polling Rate to reduce input latency of attached controllers?
I learned of the concept from this post about doing exactly that on the MiSTer device, which has a Linux Kernel:
https://github.com/eniva/MisSTer_Guides/wiki/Overclock-USB-Controllers-Polling-Rate -
I'd say it's not possible, since it uses a custom kernel and the modifications they may have done are not included in the Raspbian provided kernel.
-
Sure it is. @Brunnis recently covered this is his post An input lag-investigation
1000 Hz polling for USB gamepads (add usbhid.jspoll=1 at end of line in /boot/cmdline.txt in Raspbian).
-
@Rion That's great, it means that the kernel used by MiSter board is older than the one included in Raspberry Pi if it needs additional patches.
-
I knew it had to be possible some how @Rion, while not using the exact same method as seen on MiSTer @mitu, thanks @Rion and thank you @Brunnis - every millisecond counts!
There are some good extra tips for reducing latency in that post worth checking out:
https://forums.libretro.com/t/an-input-lag-investigation/4407/848Hopefully we can get “usbhid.jspoll=1” added to the end line of “/boot/cmdline.txt” in a future build of RetroPie.
/cc @BuZz
-
Besides adding that line to cmdline.txt, are other actions or precautions necessary?
Is this on the same level of risk (of increasing temp.) as overclocking the GPU/CPU of the Pi? -
It won't be added by default. Users are free to make these changes.
-
@Rion said in Overclock USB Controller Polling Rate:
Sure it is. @Brunnis recently covered this is his post An input lag-investigation
1000 Hz polling for USB gamepads (add usbhid.jspoll=1 at end of line in /boot/cmdline.txt in Raspbian).
Is this also possible or even beneficial for usb input encoders for arcade controls? (I believe I have DragonRise)
-
@WeirdH I'm curious as to the answer to your “usb encoder” question, however I have to wonder that if it was always beneficial (or at least not a detriment) the functionality would be the default. Again, I look forward to the answer to your question.
-
@TheBattleMaster said in Overclock USB Controller Polling Rate:
Besides adding that line to cmdline.txt, are other actions or precautions necessary?
Is this on the same level of risk (of increasing temp.) as overclocking the GPU/CPU of the Pi?No you are just changing the Polling Rate for usb joysticks/game pads.
-
@WeirdH I don't know if it's possible to change the Pooling Rate for Keyboards in Raspian. Mouse and joysticks/gamepads are implemented that i know of.
Found this while searching for the topic.
-
@Rion said in Overclock USB Controller Polling Rate:
@TheBattleMaster said in Overclock USB Controller Polling Rate:
Besides adding that line to cmdline.txt, are other actions or precautions necessary?
Is this on the same level of risk (of increasing temp.) as overclocking the GPU/CPU of the Pi?No you are just changing the Polling Rate for usb joysticks/game pads.
Thanks for the info! Just needed some confirmation, because I haven't bought a fan for my setup yet.
-
@IanDaemon I just changed the line in my cmdline.txt, but I don't really notice anything different.
-
Hello, I tried this with my Xin-Mo arcade setup and while it sorta made things more responsive in games, it ended up making some wacky things happen in EmulationStation. When scrolling through systems left-right it would skip over a system sometimes even though I pressed it once. Same goes for up-down in the game lists, it would skip games over as if it were double tapping.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.