Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2007-06-11 19:49:27

  Huk - Smoleńsk BULWA!

Huk
Smoleńsk BULWA!
Zarejestrowany: 2006-11-08

Synchronizacja pionowa - czyli, w jaki sposób ją wymusić?

Witam wszystkich.

Ostatnio zacząłem się zastanawiać w jaki sposób uzyskać na Linuksie obraz bez... hmmm "przełamań" czy jak to nazwiecie - chodzi o to, że kiedy włączam jakąś grę w 2d to na ekranie podczas szybkiego przesuwania widać "pasy" odświeżania w różnych miejscach. Na Windows - wystarczy wymusić (o ile aplikacja sama tak nie robi) włączenie opcji "Synchronizacja Pionowa" i po kłopocie - a tu? Podobno się da... tylko jak? Tak szukam i szukam, przeglądam opcję w Xorg i nic. Wiem że mogę wymusić Vsync jeżeli nastawię odświeżanie monitora na dokładną ilość klatek gry/emulatora - dla przykładu - jeżeli poprzez wine uruchomię sobie VBA(VisualBoyAdvance) to przy 60 klatkach na ekranie musze nastawić odświeżanie na 60 - jak łatwo się domyśleć - po 30 minutach takiego grania, oczy chcą mi wypłynąć :( .

Posiadam GeForca 5200 - stery 9755 - z paczki .run mój xorg wygląda tak:

Kod:

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
    FontPath    "/usr/share/fonts/X11/misc"
    FontPath    "/usr/X11R6/lib/X11/fonts/misc"
    FontPath    "/usr/share/fonts/X11/cyrillic"
    FontPath    "/usr/X11R6/lib/X11/fonts/cyrillic"
    FontPath    "/usr/share/fonts/X11/100dpi/:unscaled"
    FontPath    "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
    FontPath    "/usr/share/fonts/X11/75dpi/:unscaled"
    FontPath    "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
    FontPath    "/usr/share/fonts/X11/Type1"
    FontPath    "/usr/X11R6/lib/X11/fonts/Type1"
    FontPath    "/usr/share/fonts/X11/100dpi"
    FontPath    "/usr/X11R6/lib/X11/fonts/100dpi"
    FontPath    "/usr/share/fonts/X11/75dpi"
    FontPath    "/usr/X11R6/lib/X11/fonts/75dpi"
    # path to defoma fonts
    FontPath    "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
    Load    "bitmap"
    Load    "ddc"
    Load    "dri"
    Load    "extmod"
    Load    "freetype"
    Load    "glx"
    Load    "int10"
    Load    "vbe"
EndSection

Section "InputDevice"
    Identifier    "Generic Keyboard"
    Driver        "kbd"
    Option        "CoreKeyboard"
    Option        "XkbRules"    "xorg"
    Option        "XkbModel"    "pc105"
    Option        "XkbLayout"    "pl"
EndSection

Section "InputDevice"
    Identifier    "Configured Mouse"
    Driver        "mouse"
    Option        "CorePointer"
    Option        "Device"        "/dev/input/mice"
    Option        "Protocol"        "ImPS/2"
EndSection

Section "InputDevice"
        Identifier  "LIRC-Mouse"
        Driver      "mouse"
        Option      "Device" "/dev/lircm"
        Option      "Protocol" "IntelliMouse"
        Option      "SendCoreEvents"
        Option      "Buttons" "5"
        Option      "ZAxisMapping" "4 5"
EndSection

Section "Device"
    Identifier    "Generic Video Card"
    Driver        "nvidia"
    BusID        "PCI:1:0:0"
    Option         "TripleBuffer" "true"
    
EndSection

Section "Monitor"
    Identifier    "Generic Monitor"
    Option        "DPMS"
    HorizSync    30-70
    VertRefresh    50-160

    # 640x480 @ 120.00 Hz (GTF) hsync: 61.80 kHz; pclk: 52.41 MHz
      Modeline "640x480_120.00"  52.41  640 680 744 848  480 481 484 515  -HSync  +Vsync
    
EndSection

Section "Screen"
    Identifier    "Default Screen"
    Device        "Generic Video Card"
    Monitor        "Generic Monitor"
    DefaultDepth    16
    SubSection "Display"
        Depth        1
        Modes        "1024x768" "800x600_100" "640x480_120"
    EndSubSection
    SubSection "Display"
        Depth        4
        Modes        "1024x768" "800x600_100" "640x480_120"
    EndSubSection
    SubSection "Display"
        Depth        8
        Modes        "1024x768" "800x600_100" "640x480_120"
    EndSubSection
    SubSection "Display"
        Depth        15
        Modes        "1024x768" "800x600_100" "640x480_120"
    EndSubSection
    SubSection "Display"
        Depth        16
        Modes        "1024x768" "800x600_100" "640x480_120"
    EndSubSection
    SubSection "Display"
        Depth        24
        Modes        "1024x768" "800x600_100" "640x480_120"
    EndSubSection
EndSection

Section "ServerLayout"
    Identifier    "Default Layout"
    Screen        "Default Screen"
    InputDevice    "Generic Keyboard"
    InputDevice    "Configured Mouse"
    InputDevice     "LIRC-Mouse"
EndSection

Section "DRI"
    Mode    0666
EndSection

Z góry dzięki za pomoc.

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
Możesz wyłączyć AdBlock — tu nie ma reklam ;-)