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:
Luboš Luňák 2008-03-20 11:42:58 +00:00
parent ca5cc5c034
commit bfbe971ed6

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;