nvidiaç¨ãã©ã¤ãã«é¢ããã¤ã³ã¹ãã¼ã«æ¹æ³ããã¥ã¼ãã³ã°æ¹æ³ãworkaround ãã¾ã¨ãã¾ãã
ç°å¢å¤æ°(ç»è³ªé¢é£ã®è¨å®)
__GL_FSAA_MODE
FSAA(full screen anti alias) ã®åæè¨ç½®å¤ãå¤ãããæã¯
export __GL_FSAA_MODE=5
ãªã©ã¨ãã¾ããFSAAã使ãã¨ç»è³ªãåä¸ãã¾ãããæç»é度ã¯ä½ä¸ãã¾ãã
__GL_LOG_MAX_ANISO
Anisotropic Texture filtering ã®è¨å®ãè¡ãã¾ããå¤ã0ã®å ´å㯠offã1ã®å ´å㯠2xã2ã®å ´åã¯4xã㨠2^nã§filtering ãè¡ããã¾ãã
__GL_SYNC_TO_VBLANK
1ãè¨å®ããã¨OpenGLã®ãã¬ã¼ã ãããã¡ã®åãæ¿ããããã£ã¹ãã¬ã¤ã®åç´åæã¨åæããããã«ãªãã¾ãã
__GL_YIELD
libGL.soå
é¨ã® busy loop ä¸ã®åä½ãåãæ¿ãã¾ãã
æç»é度ã¨CPUè² è·ã«ã¯ãã¬ã¼ããªããããã¾ããããã®åªå
é ä½ãè¨å®ããéã«ä½¿ãã¾ãã
å®éã®åä½ã¯kernelã®è¨å®ãããã·ã³ã®ã¹ããã¯ã«å¤§ããä¾åãã¾ãããè¨å®å¤ã¨åä½ã®é¢ä¿ã¯ãããã次ã®ããã«ãªãã¾ãã
- __GL_YIELDæªè¨å®æ sched_yeild()ãã³ã¼ã«ãããCPUè² è·ãä¸ãããã¨ãåªå ãã¾ãã
- __GL_YIELD=NOTHING sched_yeild()ãã³ã¼ã«ããªããCPUè² è·ã¯ãããã¾ããæç»é度ã¯åä¸ãã¾ãã
- __GL_YIELD=USLEEP usleep(0) ãã³ã¼ã«ãããNOTHINGããã¯CPUè² è·ã¯ä½ãã§ããããããªãã«æç»é度ãåä¸ãã¾ãã
ç°å¢ã«ãããã¾ãã(ä¾å¤ãããããããã®ã§æ³¨æãã¦ãã ãã)ãä¸è¬ã«
- æç»é度ï¼ã¨ãããå¿çé度ï¼ã¯ãéãé ã« NOTHING > USLEEP >= æªè¨å®ã
- CPUè² è·ã¯ãè² è·ãä½ãé ã« æªè¨å® <= USLEEP < NOTHING
ã¨ãªãçã§ãã
__GL_ALLOW_UNOFFICIAL_PROTOCO
è£ã³ãã³ããæå¹ã«ãã¾ãã
__GL_HEAP_ALLOC_LIMIT
libGL.so ã使ãã¡ã¢ãªéã«å¶éãããã¾ãã
ãã¨ãã° 20MBãã«å¶éãããå ´åã¯
$ export __GL_HEAP_ALLOC_LIMIT="20 MB"
ã¨ãã¾ãããããã°ã«ä¾¿å©ã§ããã
__GL_SHADER_DISK_CACHE
__GL_SHADER_DISK_CACHE_PATH
GLSLã§æ¸ããã shader ã®ã³ã³ãã¤ã«ãã£ãã·ã¥ã使ããã©ãããããã³ãã£ãã·ã¥ãã¼ã¿ãä¿åãããã£ã¬ã¯ããªãæå®ãã¾ãã
ããã©ã«ãã§ã¯ã³ã³ãã¤ã«ãã£ãã·ã¥ã¯æå¹ã§ããã¼ã¿ã¯ã $HOME/.nv/GLCache ã«ä¿åããã¦ãã¾ãã
GLSLã§éçºãè¡ãªã£ã¦ããã¨ãæ®å¿µãªãã¨ã«æã ã³ã³ãã¤ã«ãã£ãã·ã¥ããã¹ãããããã®ã§ããã®OpenGLã使ã£ãããã°ã©ã ããã人㯠~/.bashrc ãããã§
export __GL_SHADER_DISK_CACHE=0
ã¨ãã¦ãããã»ãã幸ãã«ãªãã¾ãã
ç°å¢å¤æ°(æ£å¸¸ã«åä½ããªãå ´åã®workaroundçãªå¤æ°é)
__GL_SINGLE_THREADED
OpenGLã使ãã¢ããªã±ã¼ã·ã§ã³ãèµ·åæã«Seg-Vã§è½ã¡ãå ´åã¯ã ç°å¢å¤æ° __GL_SINGLE_THREADEDããã1 ãã«è¨å®ããã¨ã¯ã©ãã·ã¥ãåé¿ã§ããå ´åãããã¾ãã
__GL_NO_DSO_FINALIZER
OpenGLã使ãã¢ããªã±ã¼ã·ã§ã³ãçµäºæã«Seg-Vã§è½ã¡ãå ´åã¯ã ç°å¢å¤æ° __GL_NO_DSO_FINALIZERããã1 ãã«è¨å®ããã¨ã¯ã©ãã·ã¥ãåé¿ã§ããå ´åãããã¾ãã
__GL_ExtensionStringVersion
OpenGLã®ãã¼ã¸ã§ã³ãä¸æçã«ä¸ãã¦ä½¿ãããå ´åã¯ãç°å¢å¤æ° __GL_ExtensionStringVersionãã使ãã¾ã
ã¤ã³ã¹ãã¼ã«ã«é¢ãã Tips (debianã®å ´å)
debian ã®å ´å㯠apt-get ã§ã¤ã³ã¹ãã¼ã«ã§ãã¾ãã
NVidia ã®ãã©ã¤ãã¯ãåºæ¬çã«ææ°çã®æ¹ãå®å®ãã¦ãã¾ããdebian ã®å ´åãææ°çã®ãã©ã¤ãã¯ã¾ãexperimental ã«é ç½®ãããã®ã§ãapt-get 㯠-t experimental ãã¤ããã®ããªã¹ã¹ã¡ã§ãã
$ apt-get install nvidia-kernel-dkms -t experimental
NVIDIAç´æ£ã®ã¤ã³ã¹ãã¼ã©ã«é¢ãã Tips
ã¤ã³ã¹ãã¼ã©ã®ãã¡ã¤ã«ãå±éãã
$ cd /tmp $ sh ./NVIDIA-Linux-x86_64-304.51.run -x
ã«ã¼ãã«ã®ãã¼ã¸ã§ã³ãæå®ãã¦ãã¢ã¸ã¥ã¼ã« nvidia.ko ã ãã³ã³ãã¤ã«ã
ãã¨ãã° /lib/modules/2.6.32.3/ ç¨ã« module ã ããã«ããã¦ã¤ã³ã¹ãã¼ã«ããå ´å
# sh ./NVIDIA-Linux-x86-173.14.22-pkg1.run --no-x-check -k 2.6.32.3 --kernel-module-only
workaroud çãªTips
youtube ã®åç»ã®è²ãå¤
nvidiaã®ãã©ã¤ã㨠flash player ã®çµã¿åããã«ãã£ã¦ã¯ãRGBãå
¥ãæ¿ãã£ãåç»ãåçãããå ´åãããã¾ãã
åæ§ã« mplayer ãxineãªã©ã§ãè²ãå¤ã«ãªãå ´åãããã¾ãã
ãã®å ´åã¯ã¨ãããã VDPAU_DRIVER ç°å¢å¤æ°ã使ãã¨åé¡ãåé¿ã§ãã¾ãã
ãã¨ãã° firefox ã使ã£ã¦ããå ´åã¯ãä¸åº¦ãã¹ã¦ã® firefox ãçµäºããã¦ããããã
$ env VDPAU_DRIVER=trace firefox
ã¨ãã¦firefoxãèµ·åããªããã¦ã¿ã¾ãããã