From 71613f20c2f50b9a9a24547296d6ef81e5a119c8 Mon Sep 17 00:00:00 2001 From: Richard Grenville Date: Tue, 23 Oct 2012 13:42:20 +0800 Subject: Improvement #7: Add double buffering Add double buffering with X DBE extension in hope to get rid of the tearing issue. Thanks to cairo-compmgr for providing hints. Could be enabled with --dbe. Only very limited tests have been done, I don't know if it actually solves the tearing issue. My estimation is it is harmful for performance, but I found no clear evidence. Experimental, so no configuration file option is available for it. MONITOR_REPAINT is broken if --dbe is turned on, this is intended for testing whether DBE is actually working. --- compton.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'compton.h') diff --git a/compton.h b/compton.h index 6aac338e9..ee505985a 100644 --- a/compton.h +++ b/compton.h @@ -75,6 +75,7 @@ #include #include #include +#include #ifdef CONFIG_VSYNC_DRM #include @@ -314,6 +315,8 @@ typedef struct _options { int refresh_rate; /// VSync method to use; vsync_t vsync; + /// Whether to enable double buffer. + Bool dbe; // Shadow Bool wintype_shadow[NUM_WINTYPES]; -- cgit v1.2.1