diff options
| author | 2022-01-14 17:13:30 -0800 | |
|---|---|---|
| committer | 2022-01-14 17:13:30 -0800 | |
| commit | 4064e035682b0ee046a6ac31f5343736e5f9f434 (patch) | |
| tree | e4d6dbabc5e8065fdebd5b1a40b46e3c3cbc5db4 /src | |
| parent | Merge pull request #7699 from bunnei/fix-service-thread-race (diff) | |
| parent | service/hid: Decrease motion update rate (diff) | |
| download | yuzu-4064e035682b0ee046a6ac31f5343736e5f9f434.tar.gz yuzu-4064e035682b0ee046a6ac31f5343736e5f9f434.tar.xz yuzu-4064e035682b0ee046a6ac31f5343736e5f9f434.zip | |
Merge pull request #7707 from german77/slow-update
service/hid: Decrease motion update rate
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/hid/hid.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp index 6e12381fb..84da38b3b 100644 --- a/src/core/hle/service/hid/hid.cpp +++ b/src/core/hle/service/hid/hid.cpp | |||
| @@ -37,7 +37,8 @@ namespace Service::HID { | |||
| 37 | // Period time is obtained by measuring the number of samples in a second on HW using a homebrew | 37 | // Period time is obtained by measuring the number of samples in a second on HW using a homebrew |
| 38 | constexpr auto pad_update_ns = std::chrono::nanoseconds{4 * 1000 * 1000}; // (4ms, 250Hz) | 38 | constexpr auto pad_update_ns = std::chrono::nanoseconds{4 * 1000 * 1000}; // (4ms, 250Hz) |
| 39 | constexpr auto mouse_keyboard_update_ns = std::chrono::nanoseconds{8 * 1000 * 1000}; // (8ms, 125Hz) | 39 | constexpr auto mouse_keyboard_update_ns = std::chrono::nanoseconds{8 * 1000 * 1000}; // (8ms, 125Hz) |
| 40 | constexpr auto motion_update_ns = std::chrono::nanoseconds{5 * 1000 * 1000}; // (5ms, 200Hz) | 40 | // TODO: Correct update rate for motion is 5ms. Check why some games don't behave at that speed |
| 41 | constexpr auto motion_update_ns = std::chrono::nanoseconds{10 * 1000 * 1000}; // (10ms, 100Hz) | ||
| 41 | constexpr std::size_t SHARED_MEMORY_SIZE = 0x40000; | 42 | constexpr std::size_t SHARED_MEMORY_SIZE = 0x40000; |
| 42 | 43 | ||
| 43 | IAppletResource::IAppletResource(Core::System& system_, | 44 | IAppletResource::IAppletResource(Core::System& system_, |