Have you explored changing the polling logic to interrupt?
this post was submitted on 20 Mar 2024
76 points (98.7% liked)
RetroGaming
19512 readers
130 users here now
Vintage gaming community.
Rules:
- Be kind.
- No spam or soliciting for money.
- No racism or other bigotry allowed.
- Obviously nothing illegal.
If you see these please report them.
founded 1 year ago
MODERATORS
Can you provide an example? I only experimented with delay and found that 1 millisecond gave the best improvement.
I'm not familiar with the hardware at hand, but an example is how the PS/2 port on a computer is interrupt based. Where you press a button and it informs the cpu of the button press. I was curious if the hardware you're working with has something akin to that.
The SNES uses shift registers on the controller. Polling it requires reading the registers to get the current state.