This was my attempt to create a a SNES to Bluetooth adapter. It works but the average latency was 18.35ms, which I think is too much to be considered a good controller.
Whether it works or not, this looks incredibly fun! That's a win in my book.
Submitted 8 months ago by v1605@lemmy.world to retrogaming@lemmy.world
https://lemmy.world/pictrs/image/c823372b-0917-44c6-9d96-709bf81ede58.jpeg
This was my attempt to create a a SNES to Bluetooth adapter. It works but the average latency was 18.35ms, which I think is too much to be considered a good controller.
Whether it works or not, this looks incredibly fun! That's a win in my book.
The project equivalent of your mum sticking your drawings to the fridge 😊
Hey, you tried, most wouldn’t bother. You’re the top 1% of humans in that way
How much are you doing with “rolling your own” vs using off the shelf solutions? For example if you are deep into rolling your own which Bluetooth profile are you using?
So in this case it’s my own code to read the state of the controller and using the ble-gamepad library, which uses NimBLE under the hood. There could be some optimizations but getting to be under 10ms probably is going to use a lot of time I could just be playing games.
So you suspect the latency (enough of it anyway) is introduced in your translation code? I absolutely understand not wanting to go to the nth degree for optimization when this is a hobby project. Could you throw hardware at it? Not all ESP32 run at the same speed. Perhaps buy an oversized one that will execute your underperforming code faster?
I have been contemplating making my own HOTAS since every time I have the cash to buy one, I either can’t find one or it gets cancelled midway through shipping and I get an automatic refund. I’m not sure where to start with that though…
18.53ms is imperceptible to humans.
I think the concern is the stack up you get in latency between the controller, the computer, and the monitor.
That’s a valid concern that I didn’t consider.
I can absolutely notice a frame of lag at 60Hz
I read that people who play a lot of FPV shooters have higher than average reaction and perception time. 18ms is ridiculously fast though, I’d be surprised if someone could consciously register it. I know gaming monitors market latency in the 1.5ms range, so maybe elite gamers can perceive the difference. Someone else pointed out that there are concerns over latency stacking between all of the devices, and that’s a really valid point.
thanks_shakey_snake@lemmy.ca 8 months ago
If anyone else was wondering, I found this neat data table of controller latencies to compare:
rpubs.com/misteraddons/inputlatency
It looks like 18.35ms is not really among the best, but there are still lots of products in that range.
I dunno if I’d say your project didn’t work out… Maybe more like you succeeded but still have work to do. Do you think you’ll try swapping the Bluetooth for a 2.4Ghz module or something and see if that performs better?
lectricleopard@lemmy.world 8 months ago
I use an 8bitdo sn30 pro. Apparently I haven’t been using a good controller. Fooled me!
v1605@lemmy.world 8 months ago
I wouldn’t call that controller bad, just not optimal. For this, I would want to have it be under 10ms to publish the code and instructions.
Splatterphace@lemm.ee 8 months ago
I’ve had a lot of connection issues with that model
thanks_shakey_snake@lemmy.ca 8 months ago
I have two of em-- They’re pretty good! Definitely not perceptibly laggy or anything, at least to me.
Probably just outed myself as a casual.
v1605@lemmy.world 8 months ago
It definitely could but the idea was to use only an esp32 rather than incorporating additional hardware.
thanks_shakey_snake@lemmy.ca 8 months ago
Yeah, I get that. Do you have any sense of whether that’s a limitation of the ESP32, or with your implementation?