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)
This commit is contained in:
Richard Grenville
2013-03-18 19:01:18 +08:00
parent 1a88e3d0c5
commit a41f05ea92
3 changed files with 35 additions and 12 deletions

View File

@@ -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