Kjetil's Information Center: A Blog About My Projects

Deus Ex vblank fix.

Deus Ex is one of those games that seems to work flawlessly under Wine in Linux, except for this issue I will mention below.

If you play Deus Ex on a fast machine, you may experience that the audio dialogs cuts off to early. According to information lying around on the Internet, this seems to be a generic bug/weakness in the Unreal engine, and apparently affects all platforms(?). But it can be fixed by forcing sync to vblank, which slows down the (too fast) frame rate. There does not seem to be any way of doing this from the menus in Deus Ex, but it can be done by configuring it in the graphics driver.

On Linux (at least with the proprietary Nvidia drivers) there is an easy way to setup sync to vblank automatically, by setting an environment variable.

You can just wrap/replace the actual binary with a small shell script like this:

#!/bin/sh
export __GL_SYNC_TO_VBLANK=1
exec /path/to/deusex
          


Topic: Configuration, by Kjetil @ 06/03-2009, Article Link