summaryrefslogtreecommitdiffstats
path: root/compton.c
diff options
context:
space:
mode:
authorRichard Grenville <pyxlcy@gmail.com>2013-03-18 19:01:18 +0800
committerRichard Grenville <pyxlcy@gmail.com>2013-03-18 19:01:18 +0800
commit69c3579a24635e9504bceabc1c76dfe96342c3b0 (patch)
tree037aed0ddfaafdc80c85ef19fde30ffbddea6457 /compton.c
parent848103bc3447f814c51cb818836533e18e018bf5 (diff)
downloadtdebase-69c3579a24635e9504bceabc1c76dfe96342c3b0.tar.gz
tdebase-69c3579a24635e9504bceabc1c76dfe96342c3b0.zip
Improvement: GLX: Use SCISSOR_TEST instead of STENCIL_TEST when possible
- GLX backend: Use GL_SCISSOR_TEST instead of STENCIL_TEST if there's only one rectangle in glx_set_clip(). Profiling with gDebugger shows a 10% performance improvement. - Add .desktop installation rules. (#97)
Diffstat (limited to 'compton.c')
-rw-r--r--compton.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compton.c b/compton.c
index 539f8d201..a2fbee265 100644
--- a/compton.c
+++ b/compton.c
@@ -4136,7 +4136,7 @@ usage(void) {
"--glx-no-stencil\n"
" Avoid using stencil buffer under GLX backend. Might cause issues\n"
" when rendering transparent content, may have a positive or\n"
- " negative effect on performance.\n"
+ " negative effect on performance. (My test shows a 10% slowdown.)\n"
#undef WARNING
#ifndef CONFIG_DBUS
#define WARNING WARNING_DISABLED