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
icc-effect-5.14.5
Luboš Luňák 2008-03-20 11:42:58 +00:00
parent ca5cc5c034
commit bfbe971ed6
1 changed files with 5 additions and 0 deletions

View File

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