sync to vblank for Xgl/compiz (and more)
Thursday, March 30th, 2006Just a quick note… in order to get nice things like sync-to-vblank, fsaa and anisotropic-texture filtering for Xgl/compiz have a little script like this…
#!/bin/sh export __GL_FSAA_MODE=4 export __GL_LOG_MAX_ANISO=3 export __GL_SYNC_TO_VBLANK=1 sudo Xgl :1 -fullscreen -ac -accel glx:pbuffer -accel xv:fbo & |
… to start Xgl. If you have Xgl setup to be started via gdm you’ll need to place the exports for the env-vars in a different file of course.
NOTE: This only applies to nvidia-cards running on the closed-source driver!
Furhtermore you should have a beefy card (something with a 256-bit wide memory-bus and much RAM), because this can get really stressing for the card, if you drive the values for fsaa and filtering up high. The meaning of the number-values for each env-var is described in the documentation shipping with the driver. It gets usually installed somewhere like /usr/share/doc/nvidia-glx/README.txt. Exact path and capitalization may vary from distro to distro. If your card is to weak for running fsaa and/or texture-filtering at least give the sync-to-vblank a try. Trearing, during cube-rotation, will be a thing of the past. The nvidia-driver has more settings you can tweak, but unfortunately not all of those are controlable via env-vars.


