Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High Latency and half working Motion Controls #23

Open
sonich2401 opened this issue May 11, 2024 · 2 comments
Open

High Latency and half working Motion Controls #23

sonich2401 opened this issue May 11, 2024 · 2 comments

Comments

@sonich2401
Copy link

sonich2401 commented May 11, 2024

Hello. I am really happy that this software exists. Thank you.

I am having some trouble with the latency of the wiimotes. It takes anywhere from about a half a second to 2 seconds for my inputs to register. On average it is about 1 second for every button press. My nintendo switch pro-controller works just fine and feels the same as playing on real hardware but the wiimotes are very laggy. Sometimes the inputs also hold down even after I let go. All of these issues do not occur when connecting wiimotes to dolphin via bluetooth or wiimote passthrough.

As for the motion controls, only shaking works. Tilting or rotating has no affect on the game.

Again thank you for making this software and let me know if you need anything from me.

Here are my system and what version of the code I compiled:
Code commit version: e0b61c9
OS: Kubuntu 22.04.4 LTS x86_64
Kernel: 6.5.0-28-generic
AMD Ryzen 5 1600 (12) @ 3.200GHz
AMD ATI Radeon RX 470/480/570/570X/580/580X

EDIT:
Just tested the Wiimote with SDL plugin in CEMU without using linuxmotehook2 and there is no button lag. This is not a full solution seeing as there is no native support for Motion controls with a wiimote or nunchunk in CEMU. This was just to test if it was CEMU that was introducing the lag.

I compiled CEMU from source using gcc
I am using gcc: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
and CEMU commit: cf41c3b136ab7272e6801991d081c9d2c69c7143

@v1993
Copy link
Owner

v1993 commented May 11, 2024

To be honest, I'm not sure what could I do here. I'm already sending button presses as early as possible to minimize lag (I might want to try to do this for all events, but it's definitely working for buttons). Inputs holding down (assuming they do so indefinitely) sound really odd, though, since every packet to the server contains full button state.

As for rotation - for those to register, you must have MotionPlus, either built-in or external.

@sonich2401
Copy link
Author

For motion, I switched to my motion plus controller and the motion does not work. In Mario Kart 8 it just supplies seemingly random movements to my tilt. Shaking works but not tilting. However, I have a new error

** (linuxmotehook2:122726): WARNING **: 13:10:03.825: MainDevice.vala:112: Failed to open accelerometer interface (motion won't work!): No such file or directory

As for buttons, they don't hang indefinitely. They just hold down for an extra second sometimes. It is not often and is random. Also, while there is still lag, the motion plus remote I have seems to have way less lag than my OG white wiimotes.

When it comes to button polling, what are my options? Do I just need to wait for CEMU to add native support?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants