The amazing lazy-copy-back-repaint-page-flip
authorKristian Høgsberg <krh@bitplanet.net>
Wed, 29 Sep 2010 21:10:44 +0000 (17:10 -0400)
committerRobert Bragg <robert@linux.intel.com>
Thu, 14 Oct 2010 15:23:05 +0000 (16:23 +0100)
commit134ce072e793834c7fe08a270c03ee5b2efbe998
tree2ed005a92b84c3cb347857cfb6c7dfa2f2f6428e
parentcb5582c4ab1207738a2b5dc4c94fb4551e696c20
The amazing lazy-copy-back-repaint-page-flip

Always use pageflipping, but avoid full repaint by copying back dirty
regions from front to back.  Additionally, we dealy copying back until
we're ready to paint the new frame, so we can avoid copying areas that
will be repainted anyway.

This is the least amount of copying per frame we can get away with at all
and at the same time we don't have to worry about stalling the GPU on
synchronized blits since we always pageflip.
clutter/wayland/clutter-backend-wayland.c
clutter/wayland/clutter-stage-wayland.c
clutter/wayland/clutter-stage-wayland.h