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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-15-2002, 02:16 PM
|
#1
|
LQ Newbie
Registered: Nov 2002
Location: Wales
Distribution: Red Hat 8.0
Posts: 14
Rep:
|
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
|
|
|
11-15-2002, 04:08 PM
|
#2
|
Member
Registered: Oct 2001
Distribution: Mint 15
Posts: 770
Rep:
|
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
|
|
|
11-15-2002, 04:44 PM
|
#3
|
LQ Newbie
Registered: Nov 2002
Location: Wales
Distribution: Red Hat 8.0
Posts: 14
Original Poster
Rep:
|
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.
|
|
|
11-16-2002, 02:58 PM
|
#4
|
LQ Newbie
Registered: Nov 2002
Location: Wales
Distribution: Red Hat 8.0
Posts: 14
Original Poster
Rep:
|
anyone? pleasE? 
|
|
|
02-18-2003, 09:47 PM
|
#5
|
Member
Registered: Jan 2003
Location: Florida, USA
Distribution: Slackware
Posts: 169
Rep:
|
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?
|
|
|
02-19-2003, 06:43 AM
|
#6
|
Member
Registered: Sep 2002
Location: Stuttgart, Germany
Distribution: SuSE 9.1 Pro
Posts: 171
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 04:07 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|