Commit 233a3244 authored by Matt Reynolds's avatar Matt Reynolds Committed by Commit Bot

Decrease the default gamepad polling interval

Changes the default internal polling interval for gamepad state from
16 ms (~60 Hz) to 4 ms (~250 Hz).

BUG=855188

Change-Id: I4b791c27330b56519a7484c423ec764a00320e01
Reviewed-on: https://chromium-review.googlesource.com/1191234Reviewed-by: default avatarReilly Grant <reillyg@chromium.org>
Commit-Queue: Matt Reynolds <mattreynolds@chromium.org>
Cr-Commit-Position: refs/heads/master@{#586395}
parent 45116fe1
...@@ -60,7 +60,8 @@ bool AreGamepadButtonAxisEventsEnabled() { ...@@ -60,7 +60,8 @@ bool AreGamepadButtonAxisEventsEnabled() {
} }
size_t GetGamepadPollingInterval() { size_t GetGamepadPollingInterval() {
size_t polling_interval = kPollingIntervalMillisecondsMax; // Default to the minimum polling interval.
size_t polling_interval = kPollingIntervalMillisecondsMin;
// Check if the polling interval is overridden by a field trial. // Check if the polling interval is overridden by a field trial.
if (base::FeatureList::IsEnabled(kGamepadPollingInterval)) { if (base::FeatureList::IsEnabled(kGamepadPollingInterval)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment