LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-15-2002, 02:16 PM   #1
Vaevictus
LQ Newbie
 
Registered: Nov 2002
Location: Wales
Distribution: Red Hat 8.0
Posts: 14

Rep: Reputation: 0
Enabling Vsync in games to stop flicker


Hello.
i am about to write a newbie-howto for running Tactical ops: assault on terror for linux,
I have the game up and running, but it just doesnt look as good as its windows counterpart.
The game is a bit flickery, much like when you disable VSync in windows.
therefore: I want to enable Vsync in linux.
(this is where framerates are matched up to the refresh rate of the display, I think)
How is this possible in linux?

I am running redhat 8.0
 
Old 11-15-2002, 04:08 PM   #2
rootboy
Member
 
Registered: Oct 2001
Distribution: Mint 15
Posts: 770

Rep: Reputation: 51
It would come after your modeline as either +vsync or -vsync in your XF86Config file (make a backup first!).

Example:

# 640x400 @ 85 Hz, 37.86 kHz hsync
Modeline "640x400" 31.5 640 672 736 832 400 401 404 445 -HSync +VSync


John
 
Old 11-15-2002, 04:44 PM   #3
Vaevictus
LQ Newbie
 
Registered: Nov 2002
Location: Wales
Distribution: Red Hat 8.0
Posts: 14

Original Poster
Rep: Reputation: 0
thanks for replying, and throwing me a bone.
I really dont know where to put the modeline
I want to set up Vsync for 1024x768@85 hz

Here is my XF86Config:

# File generated by anaconda.

Section "ServerLayout"
Identifier "Anaconda Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
#

InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"

# The location of the RGB database. Note, this is the name of the
# file minus the extension (like ".txt" or ".db"). There is normally
# no need to change the default.

RgbPath "/usr/X11R6/lib/X11/rgb"

# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.

FontPath "unix/:7100"

EndSection

Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "dri"
Load "glx"
Load "record"
Load "freetype"
Load "type1"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"

# Option "AutoRepeat" "500 5"

# when using XQUEUE, comment out the above line, and uncomment the
# following line
# Option "Protocol" "Xqueue"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
# Option "Xleds" "1 2 3"

# To disable the XKEYBOARD extension, uncomment XkbDisable.
# Option "XkbDisable"

# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults). For example, for a non-U.S.
# keyboard, you will probably want to use:
# Option "XkbModel" "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
# Option "XkbModel" "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
# Option "XkbLayout" "de"
# or:
# Option "XkbLayout" "de"
# Option "XkbVariant" "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
# Option "XkbOptions" "ctrl:swapcaps"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc101"
Option "XkbLayout" "gb"
#Option "XkbVariant" ""
#Option "XkbOptions" ""
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection

#


Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 30.0-96.0
VertRefresh 50.0-130.0
Option "dpms"


EndSection

Section "Device"
# no known options
Identifier "NVIDIA GeForce 4 (generic)"
Driver "nvidia"
VendorName "NVIDIA GeForce 4 (generic)"
BoardName "NVIDIA GeForce 4 (generic)"

#BusID
EndSection

Section "Screen"
Identifier "Screen0"
Device "NVIDIA GeForce 4 (generic)"
Monitor "Monitor0"
DefaultDepth 16

Subsection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
EndSubsection

EndSection

Section "DRI"
Mode 0666
EndSection

Last edited by Vaevictus; 11-15-2002 at 04:46 PM.
 
Old 11-16-2002, 02:58 PM   #4
Vaevictus
LQ Newbie
 
Registered: Nov 2002
Location: Wales
Distribution: Red Hat 8.0
Posts: 14

Original Poster
Rep: Reputation: 0
anyone? pleasE?
 
Old 02-18-2003, 09:47 PM   #5
Pwcca
Member
 
Registered: Jan 2003
Location: Florida, USA
Distribution: Slackware
Posts: 169

Rep: Reputation: 30
Well, id sure like to know if you're using the retail or the mod patch for unreal tournament. I love Tac Ops but i dont know how to get it running under linux as a mod patch.

However, I run UT just fine without any sort of flickering. Wouldnt technical specs. specific to UT also apply to Tac Ops given that they both use the same game engine?
 
Old 02-19-2003, 06:43 AM   #6
marsonist
Member
 
Registered: Sep 2002
Location: Stuttgart, Germany
Distribution: SuSE 9.1 Pro
Posts: 171

Rep: Reputation: 30
I just went to freshmeat.net and found the program yanc. Yet Another Nvidia Config... somothing :-) Anyways, it has an option to enable vsync. Perhaps you can try that and then compare XF86Configs...

Maybe it'll work.


--Steve
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to enable vsync? NTolerance Linux - General 0 04-10-2005 05:50 PM
how can i enable vsync Creeps Linux - General 0 09-30-2004 04:43 AM
Enabling VSync for games with XFree/DRI kaddict Linux - General 0 07-26-2004 07:26 PM
how do i turn off vsync? proximity Linux - Hardware 3 06-22-2004 07:47 AM
Man I need to stop playing games... Whitehat General 6 10-12-2003 01:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration