Hardware cursor is always slightly ahead of the composited image
Bug #1274408 reported by
Daniel van Vugt
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mir |
Fix Released
|
Low
|
Daniel van Vugt | ||
mir (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The hardware cursor is always slightly ahead of the composited image. This is a common problem you'll see on the Ubuntu desktop too.
However in Mir we have the possibility of fixing it all in a single project... The issue is that we update the hardware cursor position immediately in the same thread as the Android input logic that controls it. But it takes several context switches and a buffer flip or two before a corresponding change in the client surface can appear on screen.
Even worse, there still seems to be some (less) visible lag between the hardware cursor position and the shell (which is in the same process). I can see some lag when dragging windows around with Alt+left-button.
Related branches
lp://staging/~vanvugt/mir/mesa-double
- PS Jenkins bot (community): Approve (continuous-integration)
- Robert Carr (community): Approve
- Alexandros Frantzis (community): Approve
- Alan Griffiths: Approve
- Cemil Azizoglu: Pending requested
-
Diff: 126 lines (+57/-8)3 files modifiedsrc/platforms/mesa/display_buffer.cpp (+25/-0)
tests/unit-tests/graphics/mesa/test_display.cpp (+2/-1)
tests/unit-tests/graphics/mesa/test_display_buffer.cpp (+30/-7)
lp://staging/~vanvugt/mir/ddouble
- Cemil Azizoglu (community): Approve
- Alexandros Frantzis (community): Approve
- Alberto Aguirre (community): Abstain
- Kevin DuBois (community): Abstain
- PS Jenkins bot (community): Approve (continuous-integration)
- Alan Griffiths: Abstain
-
Diff: 486 lines (+277/-45)3 files modifiedsrc/server/compositor/buffer_queue.cpp (+96/-19)
src/server/compositor/buffer_queue.h (+14/-0)
tests/unit-tests/compositor/test_buffer_queue.cpp (+167/-26)
Changed in mir: | |
status: | Fix Committed → Fix Released |
Changed in mir: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Linked two related branches. This bug would be close enough to resolved if they both landed but we can do more later to further reduce lag end-to-end.