Update: SNES to Bluetooth Lag is now at 8ms and code is available - eviltoast

An update to my previous post. I was able to improive the average lag by disabling the serial monitor, passing a reference of the controller to the polling logic (eliminating the need to loop over the current state and previous state to determine if buttons should be pressed), and adding a 1ms delay between loops (should have realized that the board need some down time between calls). I’ve added the code since I think 8ms is a perfectly good lag result for a diy project.

  • v1605@lemmy.worldOP
    link
    fedilink
    English
    arrow-up
    8
    ·
    8 months ago

    The SNES uses shift registers on the controller. Polling it requires reading the registers to get the current state.