kpkeerthi
August 19th, 2006, 03:17 PM
About:
1. How to eliminate choppiness and tearing in fullscreen Video/DVD playback and Cube rotation.
2. How to eliminate jaggies from compiz cube and window edges (wobbly plugin) - antialiasing
Prequisites:
1. Nvidia graphics card
2. Binary "nvidia" driver.
3. Ubuntu 6.06
4. Xgl/Compiz
Step 1: Verify OpenGL
Part 1
Open a terminal and do:
$ glxinfo | grep OpenGL
If you get something similar to:
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce Go 7800 GTX/PCI/SSE2
OpenGL version string: 1.2 (2.0.2 NVIDIA 87.62)
... then proceed to Part 2 of Step 1.
If, otherwise, you see
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.2 (1.5 Mesa 6.5.1)
... follow instructions here (http://ubuntuguide.org/wiki/Dapper#How_to_install_Graphics_Driver_.28NVIDIA.29 ) to install "nvidia" binary driver.
Part 2
Now, check if opengl libraries are linked properly:
$ ls -al /usr/lib/libGL.*
The result should be similar to:
lrwxrwxrwx 1 root root 19 2006-08-19 09:39 /usr/lib/libGL.so -> /usr/lib/libGL.so.1
lrwxrwxrwx 1 root root 17 2006-07-11 20:08 /usr/lib/libGL.so.1 -> libGL.so.1.0.8762
-rw-r--r-- 1 root root 540136 2006-07-10 07:10 /usr/lib/libGL.so.1.0.8762
Most importantly, you should see the line highlighted above. If not, do
$ sudo ln -s /usr/lib/libGL.so.1 /usr/lib/libGL.so
Reboot.
Step 2: Eliminate "tearing" in DVD and other video playback
Now that OpenGL has been setup properly, lets get the "tearing" fixed in fullscreen DVD playback.
Part 1
Enable vsync:
$ gksudo gedit /etc/init.d/gdm
Open the file and locate the line (near line# 37) containing:
if [ -r /etc/environment ]; then
if LANG=$(pam_getenv -l LANG); then
export LANG
fi
if LANGUAGE=$(pam_getenv -l LANGUAGE); then
export LANGUAGE
fi
fi
Now add export __GL_SYNC_TO_VBLANK="1" above it. It should now look similar to below:
export __GL_SYNC_TO_VBLANK="1"
if [ -r /etc/environment ]; then
if LANG=$(pam_getenv -l LANG); then
export LANG
fi
if LANGUAGE=$(pam_getenv -l LANGUAGE); then
export LANGUAGE
fi
fi
Save and exit.
Enable tripple buffering in xorg.conf:
$ gksudo gedit /etc/X11/xorg.conf
Section "Device"
Identifier "NVIDIA Corporation NVIDIA Default Card"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "RenderAccel" "true"
Option "TripleBuffer" "true"
Option "NoLogo"
EndSection
Save and exit. Reboot.
Part 2
Enable opengl driver in your favorite player. I personally prefer Totem-xine.
$ gedit ./.gnome2/totem_config
Search for video.driver and add
video.driver:opengl
Save and exit.
Now, play your favorite video/DVD movie fullscreen in Totem-xine and enjoy tearless smooth playback.
Did you notice that cube rotation is also free from tearing? I'm sure you did. If not, try it now.
Step 3: Eliminate jagged cube edges [OPTIONAL]
Its also possible to eliminate the jaggies we get along the edges of the cube. Enable antialiasing by adding
export __GL_FSAA_MODE="2"
to /etc/init.d/gdm. Reboot. You should now have smooth antialiased cube and window edges. To see it in action, <Ctrl> <Atl> + left click on desktop and drag the mouse. Also dragging the windows by title bar (wobbly) should produce smooth edges.
Here is a setting that works best for me:
export __GL_SYNC_TO_VBLANK="1"
export __GL_FSAA_MODE="4"
export __GL_LOG_MAX_ANISO="4"
if [ -r /etc/environment ]; then
if LANG=$(pam_getenv -l LANG); then
export LANG
fi
if LANGUAGE=$(pam_getenv -l LANGUAGE); then
export LANGUAGE
fi
fi
Refer to OpenGL Environment Variable Settings (http://download.nvidia.com/solaris/1.0-8762/README/appendix-e.html) for more information.
EDIT:
This guide also helps improving the cool animations available in the latest version of compiz (quinn's). Try it to belive it.
1. How to eliminate choppiness and tearing in fullscreen Video/DVD playback and Cube rotation.
2. How to eliminate jaggies from compiz cube and window edges (wobbly plugin) - antialiasing
Prequisites:
1. Nvidia graphics card
2. Binary "nvidia" driver.
3. Ubuntu 6.06
4. Xgl/Compiz
Step 1: Verify OpenGL
Part 1
Open a terminal and do:
$ glxinfo | grep OpenGL
If you get something similar to:
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce Go 7800 GTX/PCI/SSE2
OpenGL version string: 1.2 (2.0.2 NVIDIA 87.62)
... then proceed to Part 2 of Step 1.
If, otherwise, you see
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.2 (1.5 Mesa 6.5.1)
... follow instructions here (http://ubuntuguide.org/wiki/Dapper#How_to_install_Graphics_Driver_.28NVIDIA.29 ) to install "nvidia" binary driver.
Part 2
Now, check if opengl libraries are linked properly:
$ ls -al /usr/lib/libGL.*
The result should be similar to:
lrwxrwxrwx 1 root root 19 2006-08-19 09:39 /usr/lib/libGL.so -> /usr/lib/libGL.so.1
lrwxrwxrwx 1 root root 17 2006-07-11 20:08 /usr/lib/libGL.so.1 -> libGL.so.1.0.8762
-rw-r--r-- 1 root root 540136 2006-07-10 07:10 /usr/lib/libGL.so.1.0.8762
Most importantly, you should see the line highlighted above. If not, do
$ sudo ln -s /usr/lib/libGL.so.1 /usr/lib/libGL.so
Reboot.
Step 2: Eliminate "tearing" in DVD and other video playback
Now that OpenGL has been setup properly, lets get the "tearing" fixed in fullscreen DVD playback.
Part 1
Enable vsync:
$ gksudo gedit /etc/init.d/gdm
Open the file and locate the line (near line# 37) containing:
if [ -r /etc/environment ]; then
if LANG=$(pam_getenv -l LANG); then
export LANG
fi
if LANGUAGE=$(pam_getenv -l LANGUAGE); then
export LANGUAGE
fi
fi
Now add export __GL_SYNC_TO_VBLANK="1" above it. It should now look similar to below:
export __GL_SYNC_TO_VBLANK="1"
if [ -r /etc/environment ]; then
if LANG=$(pam_getenv -l LANG); then
export LANG
fi
if LANGUAGE=$(pam_getenv -l LANGUAGE); then
export LANGUAGE
fi
fi
Save and exit.
Enable tripple buffering in xorg.conf:
$ gksudo gedit /etc/X11/xorg.conf
Section "Device"
Identifier "NVIDIA Corporation NVIDIA Default Card"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "RenderAccel" "true"
Option "TripleBuffer" "true"
Option "NoLogo"
EndSection
Save and exit. Reboot.
Part 2
Enable opengl driver in your favorite player. I personally prefer Totem-xine.
$ gedit ./.gnome2/totem_config
Search for video.driver and add
video.driver:opengl
Save and exit.
Now, play your favorite video/DVD movie fullscreen in Totem-xine and enjoy tearless smooth playback.
Did you notice that cube rotation is also free from tearing? I'm sure you did. If not, try it now.
Step 3: Eliminate jagged cube edges [OPTIONAL]
Its also possible to eliminate the jaggies we get along the edges of the cube. Enable antialiasing by adding
export __GL_FSAA_MODE="2"
to /etc/init.d/gdm. Reboot. You should now have smooth antialiased cube and window edges. To see it in action, <Ctrl> <Atl> + left click on desktop and drag the mouse. Also dragging the windows by title bar (wobbly) should produce smooth edges.
Here is a setting that works best for me:
export __GL_SYNC_TO_VBLANK="1"
export __GL_FSAA_MODE="4"
export __GL_LOG_MAX_ANISO="4"
if [ -r /etc/environment ]; then
if LANG=$(pam_getenv -l LANG); then
export LANG
fi
if LANGUAGE=$(pam_getenv -l LANGUAGE); then
export LANGUAGE
fi
fi
Refer to OpenGL Environment Variable Settings (http://download.nvidia.com/solaris/1.0-8762/README/appendix-e.html) for more information.
EDIT:
This guide also helps improving the cool animations available in the latest version of compiz (quinn's). Try it to belive it.