And yes MIR_SERVER_NBUFFERS=2 forces double buffering which generally halves lag. However we don't use that because on Ubuntu Touch it tends to stall the rendering pipeline so much that droids clock down to lower power modes and suffer. However that only happens with slow rendering clients (like unity8-dash) when nested on an otherwise idle device. So given any of:
(a) a desktop/laptop; or
(b) a much faster client than unity8-dash; or
(c) no nesting; or
(d) a spinning background process keeping the CPU out of low power mode;
you can then use MIR_SERVER_NBUFFERS=2 and get smooth graphics with half the lag.
And yes MIR_SERVER_ NBUFFERS= 2 forces double buffering which generally halves lag. However we don't use that because on Ubuntu Touch it tends to stall the rendering pipeline so much that droids clock down to lower power modes and suffer. However that only happens with slow rendering clients (like unity8-dash) when nested on an otherwise idle device. So given any of: NBUFFERS= 2 and get smooth graphics with half the lag.
(a) a desktop/laptop; or
(b) a much faster client than unity8-dash; or
(c) no nesting; or
(d) a spinning background process keeping the CPU out of low power mode;
you can then use MIR_SERVER_