diff options
| author | 2020-10-10 09:03:47 -0400 | |
|---|---|---|
| committer | 2020-11-15 23:33:20 -0500 | |
| commit | 9b501af8e3d0f6457fafb0fdfbcc11f6da4f0e8a (patch) | |
| tree | 3a9cc70c7caa50eb7f3c5ede1bdddd4fa928c118 /src/core/frontend/input.h | |
| parent | configure_input: Hook up the vibration percentage spinbox (diff) | |
| download | yuzu-9b501af8e3d0f6457fafb0fdfbcc11f6da4f0e8a.tar.gz yuzu-9b501af8e3d0f6457fafb0fdfbcc11f6da4f0e8a.tar.xz yuzu-9b501af8e3d0f6457fafb0fdfbcc11f6da4f0e8a.zip | |
controllers/npad: Add heuristics to reduce rumble state changes
Sending too many state changes in a short period of time can cause massive performance issues.
As a result, we have to use several heuristics to reduce the number of state changes to minimize/eliminate this performance impact while maintaining the quality of these vibrations as much as possible.
Diffstat (limited to 'src/core/frontend/input.h')
| -rw-r--r-- | src/core/frontend/input.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/frontend/input.h b/src/core/frontend/input.h index 277b70e53..fb2ce2514 100644 --- a/src/core/frontend/input.h +++ b/src/core/frontend/input.h | |||
| @@ -33,7 +33,7 @@ public: | |||
| 33 | virtual bool GetAnalogDirectionStatus(AnalogDirection direction) const { | 33 | virtual bool GetAnalogDirectionStatus(AnalogDirection direction) const { |
| 34 | return {}; | 34 | return {}; |
| 35 | } | 35 | } |
| 36 | virtual bool SetRumblePlay(f32 amp_high, f32 amp_low, f32 freq_high, f32 freq_low) const { | 36 | virtual bool SetRumblePlay(f32 amp_low, f32 freq_low, f32 amp_high, f32 freq_high) const { |
| 37 | return {}; | 37 | return {}; |
| 38 | } | 38 | } |
| 39 | }; | 39 | }; |