yuzu icon indicating copy to clipboard operation
yuzu copied to clipboard

Attempt at improving HD Rumble emulation

Open marius851000 opened this issue 1 year ago • 4 comments

I use a game controller that is technically comatible with HD Rumble (a DualSense), but Yuzu totally ignore the fact, and doesn’t emulate it other than using standard rumble (I may try to add proper support for it, but I’ll need to learn more about SDL and likely CPP, hoping I don’t have to having to generate the wave myself, like I did in a python prototype).

This change the amplitude of the rumble based upon the frequency. This allow to have some sort of feel for the frequency. It first have no change for frequency from 0 to 100 Hz, then lower linearly from 100 Hz to 600 Hz (Mario Odyssey in practice doesn’t go over 420).

Those parameter might be changed, but this still seems to provide better rumble.

I also increased the max duration of Rumble. There is an effect on the SMO scooter that, when not moving, continue to vibrate. I didn’t went up-to disabling it due to being worried it will continue to vibrate even in the event of a crash, thought.

ps: I’ve had far better performance against EA than mainline, but seemingly nothing related to rumble

marius851000 avatar Apr 30 '23 12:04 marius851000