By default most Linux distributions ship Radeon (ATI/AMD) and Intel open source graphics drivers with vertical screen blanking / synchronisation enabled. While this is a safe default, disabling this can allow for better performance and is stable in many hardware configurations nowadays.
To check which graphics drivers you are using, you may use the lscpi command or inspect your X log.
This command works for me to display my graphics driver, it may or may not work for you, too:
lspci -knnv | fgrep -A 10 VGA | awk '/Kernel driver in use/ {print $5}'To disable vertical screen synchronisation and potentially improve your graphics performance (FPS) add this to your user profiles' startup scripts, such as to
~/.bashrc:
#Intel (i815, i915) or Radeon (r300, r600) driver + DRI2: Disable vertical screen synchronisation
export vblank_mode=0
Beware: this may break your graphical desktop, causing you lots of trouble if you do not know how to undo it from a text based terminal window.
If it worked, on the next start of an OpenGL application (such as MegaGlest) from a terminal window you should get to see this:
ATTENTION: default value of option vblank_mode overridden by environment. Users of the Intel and Radeon open source drivers can also install driconf, a graphical frontend for setting graphics driver related configuration options. Note that With intel drivers, this should work out of the box. With radeon drivers, you may need to manually edit the
~/.drirc file every time you change an option on the driconf GUI, and replace
radeon by
dri2 respectively (depending on the driver you actually use).
ATI users with open source drivers: Please report your experience at
http://wiki.x.org/wiki/RadeonProgram (see the MegaGlest entry in this table)