PDA

View Full Version : Turning OFF vsync


Petrucci
12-08-02, 09:34 AM
I'm trying to turn off vsync because of some games like quake 3 where i get limited to certain framerates per second acordind to resolution.
For example quake 3 in my athlon 2000 with geforce 2 mx at 1024 won't go higher than 60fps and it should give much higher fps with this specifications.
I've investigated a bit and i'm almost sure it's because vsync.

I've tryed:
Option "IgnoreEDID" "on"
Option "UseEdidFreqs" "off"

but it didn't work. Am I doing something wrong??

Thanks

bwkaz
12-08-02, 04:13 PM
If you do an unset __GL_SYNC_TO_VBLANK from the terminal emulator session that you use to launch Q3, then the GL drivers will not sync to vblank. However, you should not have to do this, as that environment variable should not be set to anything by default.

However, Q3 still might do the sync itself. You may want to look into stopping it from syncing on its own. Again, the drivers do not sync by default.

You can check whether vsync is really the problem or not by changing the VertRefresh parameter in your XF86Config(-4) file. Make the range not include 60Hz (make it something like 70-whatever), restart X, and if you get anything, it won't be running at a 60Hz refresh rate. Then see if Q3's framerate rises or not.

Anthaus
12-09-02, 04:31 PM
From a console type:

export __GL_SYNC_TO_VBLANK=0
quake3

Both commands should go on the same terminal.

If you are still capped at 60fps, then you must edit quake3's config file. Find the set_maxfps line and it should read 60. Change it to 999 and try again.

Linux drivers disable vsync by default. And Quake 3 is capped to your monitor refresh rate by default. My guess is that you will have to mod the config file. Remember to modify that file for all your users!!

Petrucci
12-10-02, 10:06 AM
Thanks a lot guys.
The problem was in q3config file. I never thought of it because max fps would change acording to the resolution but it worked :cool:

ROCK ON