on xenial help sign in
Deprecate usage of Mir's input resampling, instead opting for:

Shell: Raw native input events Apps: Qt's built-in touch compression input resampling algorithm, and other toolkits are expected to provide their own. This fixes LP: #1497105 nicely, allowing apps to receive the full-speed input stream (if they ask their toolkit to give it to them). As an added bonus this also eliminates the 0-16.9ms (average 8.4ms) of input lag that apps under Unity8 would experience. We do still have the problem of output lag making everything still look laggy but I am working to eliminate that soon in Mir 0.26.0.

commite3bace47189079420ad8ece33e1b6bce312a6cf8 authorDaniel van Vugt <daniel.van.vugt@canonical.com> dateFri 6 Jan 2017, 18:08 (10 years ago) parentc73be7a
1 file changed+14−5
data/unity8.conf+14−5
data/unity8.conf+14−5
@@ -8,6 +8,15 @@ stop on desktop-end
88
99kill timeout 120
1010
11+#
12+# Ensure the shell always gets unthrottled touch events, so that applications
13+# who want full speed low-latency input can get it (LP: #1497105) and so that
14+# apps can use QML touch compression safely (the QML touch compression
15+# algorithm does not support nesting well - LP: #1486341, LP: #1556763 - so
16+# must be fed by the raw input event stream from Unity8).
17+#
18+env QML_NO_TOUCH_COMPRESSION=1
19+
1120respawn
1221expect stop
1322
@@ -45,11 +54,11 @@ pre-start script
4554
4655 initctl set-env --global MIR_SERVER_PROMPT_FILE=1
4756
48− # Disable Qt's stuttering 'touch compression' to fix scrolling smoothness
49− # issues (LP: #1486341, LP: #1556763). As a bonus, this eliminates most of
50− # the lag seen in the indicator panel pull-down (LP: #1488327) and also
51− # reduces lag seen in apps:
52− initctl set-env --global QML_NO_TOUCH_COMPRESSION=1
57+ #
58+ # Mir's input resampling is deprecated and going away soon. Turn it off
59+ # so we don't get a surprise change in behaviour when that happens.
60+ #
61+ initctl set-env --global MIR_CLIENT_INPUT_RATE=0
5362
5463 if [ "$XDG_SESSION_DESKTOP" = "ubuntu-touch" ]; then
5564 # On Ubuntu Touch, we currently use a trick where we auto-login the