After recent optimizations __GL_YIELD=NOTHING does not give noticeable
performance impact with either glxgears or the launch feedback icon, so KWIN_NVIDIA_HACK=1 is the default again. CCMAIL: kwin@kde.org svn path=/trunk/KDE/kdebase/workspace/; revision=787993
This commit is contained in:
parent
ca5cc5c034
commit
bfbe971ed6
1 changed files with 5 additions and 0 deletions
|
@ -38,8 +38,13 @@ class kwinnvidiahack
|
|||
kwinnvidiahack::kwinnvidiahack()
|
||||
{
|
||||
const char* env = getenv( "KWIN_NVIDIA_HACK" );
|
||||
#if 1 // turned on by default
|
||||
if( env == NULL || env[ 0 ] != '0' )
|
||||
setenv( "__GL_YIELD", "NOTHING", true );
|
||||
#else // turned off by default
|
||||
if( env != NULL && env[ 0 ] != '0' )
|
||||
setenv( "__GL_YIELD", "NOTHING", true );
|
||||
#endif
|
||||
}
|
||||
|
||||
kwinnvidiahack kwinnvidiahackinst;
|
||||
|
|
Loading…
Reference in a new issue