Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Can I get rid of tearing in the top with use of frame_delay and vsync_offset?  (Read 3050 times)

0 Members and 1 Guest are viewing this topic.

inv

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 21
  • Last login:August 10, 2020, 10:35:44 pm
  • I want to build my own arcade controls!
Hi.

I have a question of tearing when use a 1080p lcd and groovymame 0.180 d3d9ex 64bits version with win10.

I use a NVIDIA GeForce GTX 960 card.

When I set frame_delay to 1, there is a tearing appear in the top of screen. Set vsync_offset to 100 or 90 or 120 can't help.

But I really like the low latency effect with frame_delay.

Can I eliminate the tearing with use of frame_delay and vsync_offset?


logs here:
Code: [Select]
SwitchRes: v0.016_alpha4, Monitor: lcd, Orientation: horizontal, Modeline generation: enabled
SwitchRes: Using default vfreq range for LCD 59.000000-61.000000
SwitchRes: \\.\DISPLAY1: NVIDIA GeForce GTX 960 (PCI\VEN_10DE&DEV_1401&SUBSYS_32021462&REV_A1)
SwitchRes: Device key: System\CurrentControlSet\Control\Video\{4E4DF68B-FF44-4EEB-A534-4E8DCBB2DB61}\0000
Video chipset is not compatible.
Switchres: Searching for custom video modes...
Switchres: [  1]  640x 480 @ 60 : system mode
Switchres: [  2]  640x 480 @ 75 : system mode
Switchres: [  3]  720x 480 @ 60 : system mode
Switchres: [  4]  720x 480 @ 75 : system mode
Switchres: [  5]  720x 576 @ 60 : system mode
Switchres: [  6]  720x 576 @ 75 : system mode
Switchres: [  7]  800x 600 @ 60 : system mode
Switchres: [  8]  800x 600 @ 75 : system mode
Switchres: [  9] 1024x 768 @ 60 : system mode
Switchres: [ 10] 1024x 768 @ 75 : system mode
Switchres: [ 11] 1152x 864 @ 60 : system mode
Switchres: [ 12] 1152x 864 @ 75 : system mode
Switchres: [ 13] 1280x 720 @ 60 : system mode
Switchres: [ 14] 1280x 768 @ 60 : system mode
Switchres: [ 15] 1280x 800 @ 60 : system mode
Switchres: [ 16] 1280x 960 @ 60 : system mode
Switchres: [ 17] 1280x 960 @ 75 : system mode
Switchres: [ 18] 1280x1024 @ 60 : system mode
Switchres: [ 19] 1280x1024 @ 75 : system mode
Switchres: [ 20] 1360x 768 @ 60 : system mode
Switchres: [ 21] 1366x 768 @ 60 : system mode
Switchres: [ 22] 1600x 900 @ 60 : system mode
Switchres: [ 23] 1600x1024 @ 59 : system mode
Switchres: [ 24] 1600x1024 @ 60 : system mode
Switchres: [ 25] 1680x1050 @ 59 : system mode
Switchres: [ 26] 1680x1050 @ 60 : system mode
Switchres: [ 27] 1920x1080 @ 60* : system mode
SwitchRes: Found 0 custom of 27 active video modes
SwitchRes: Creating automatic specs for LCD based on VESA GTF
SwitchRes: Monitor range 65962.00-68198.00,59.00-61.00,0.741,1.157,1.898,0.015,0.045,0.507,0,1,1080,1080,0,0
SwitchRes: -resolution was forced as 1920x1080@60

SwitchRes: Entering switchres_modeline_setup
SwitchRes: v0.016_alpha4:[captcomm] Calculating best video mode for 384x224@59.637405 orientation: normal

SwitchRes: [ 640]x[ 480]_[60=60.000000Hz] - locked

SwitchRes: [ 640]x[ 480]_[75=75.000000Hz] - locked

SwitchRes: [ 720]x[ 480]_[60=60.000000Hz] - locked

SwitchRes: [ 720]x[ 480]_[75=75.000000Hz] - locked

SwitchRes: [ 720]x[ 576]_[60=60.000000Hz] - locked

SwitchRes: [ 720]x[ 576]_[75=75.000000Hz] - locked

SwitchRes: [ 800]x[ 600]_[60=60.000000Hz] - locked

SwitchRes: [ 800]x[ 600]_[75=75.000000Hz] - locked

SwitchRes: [1024]x[ 768]_[60=60.000000Hz] - locked

SwitchRes: [1024]x[ 768]_[75=75.000000Hz] - locked

SwitchRes: [1152]x[ 864]_[60=60.000000Hz] - locked

SwitchRes: [1152]x[ 864]_[75=75.000000Hz] - locked

SwitchRes: [1280]x[ 720]_[60=60.000000Hz] - locked

SwitchRes: [1280]x[ 768]_[60=60.000000Hz] - locked

SwitchRes: [1280]x[ 800]_[60=60.000000Hz] - locked

SwitchRes: [1280]x[ 960]_[60=60.000000Hz] - locked

SwitchRes: [1280]x[ 960]_[75=75.000000Hz] - locked

SwitchRes: [1280]x[1024]_[60=60.000000Hz] - locked

SwitchRes: [1280]x[1024]_[75=75.000000Hz] - locked

SwitchRes: [1360]x[ 768]_[60=60.000000Hz] - locked

SwitchRes: [1366]x[ 768]_[60=60.000000Hz] - locked

SwitchRes: [1600]x[ 900]_[60=60.000000Hz] - locked

SwitchRes: [1600]x[1024]_[59=59.000000Hz] - locked

SwitchRes: [1600]x[1024]_[60=60.000000Hz] - locked

SwitchRes: [1680]x[1050]_[59=59.000000Hz] - locked

SwitchRes: [1680]x[1050]_[60=60.000000Hz] - locked

SwitchRes: [1920]x[1080]_[60=60.000000Hz]
   rng(0): 1920 x1080_60.000000p 0.000000 [fract] scale(4, 4, 1) diff(6.67, 18.07, 0.3626) ratio(5.000, 4.821)

SwitchRes: [captcomm] (1) horizontal (384x224@59.637405)->(1920x1080@60.000000)
   rng(0): 1920 x1080_60.000000p 0.000000 [fract] scale(4, 4, 1) diff(6.67, 18.07, 0.3626) ratio(5.000, 4.821)
SwitchRes: Modeline "1920x1080_60 0.000000KHz 60.000000Hz" 0.000000 1920 0 0 0 1080 0 0 0   -hsync -vsync
SwitchRes: Setting option -rotate
SwitchRes: Setting option -noror
SwitchRes: Setting option -autoror
SwitchRes: Setting option -norol
SwitchRes: Setting option -noautorol
SwitchRes: Setting option -noblack_frame_insertion
SwitchRes: Setting option -syncrefresh
SwitchRes: Setting option -notriplebuffer
SwitchRes: Setting option -waitvsync
SwitchRes: Setting option -keepaspect
SwitchRes: Setting option -unevenstretch
SwitchRes: Setting option -nounevenstretchx
SwitchRes: Setting option -filter
Video: Monitor 65537 = "\\.\DISPLAY1" (primary)
Direct3D: Using Direct3D 9Ex
Physical width 1920, height 1080
Direct3D: Initialize
Direct3D: Configuring adapter #0 = NVIDIA GeForce GTX 960
Direct3D: Adapter has Vendor ID: 10DE and Device ID: 1401
Direct3D: Using dynamic textures
Direct3D: YUV format = RGB
Direct3D: Max texture size = 16384x16384
Direct3D: Device created at 1920x1080
Direct3D: First scanline: 0, Last scanline: 1079, Break scanline: 959, Delay scanline: 0
Direct3D: Initialize HLSL
Direct3D: First store options
Direct3D: HLSL initialized
RawInput: APIs detected
RawInput: APIs detected
RawInput: APIs detected
Sound: XAudio2 created initial buffers. total size: 23040, count 5, size each 4608
Sound: XAudio2 initialized. 42 ms.
Input: Adding keyboard #0: HID Keyboard Device (device id: \\?\HID#VID_046D&PID_C31C&MI_00#8&2583c8bd&0&0000#{884b96c3-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding mouse #0: HID-compliant mouse (device id: \\?\HID#VID_04CA&PID_0061#7&138429b&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd})
Input: Adding lightgun #0: HID-compliant mouse (device id: \\?\HID#VID_04CA&PID_0061#7&138429b&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd})
Region ':maincpu' created
unzip: opened archive file d:\roms\mame roms\captcomm.zip
unzip: found d:\roms\mame roms\captcomm.zip ECD
unzip: d:\roms\mame roms\captcomm.zip has no ZIP64 ECD locator
unzip: read d:\roms\mame roms\captcomm.zip central directory
unzip: closing archive file d:\roms\mame roms\captcomm.zip and sending to cache
unzip: found d:\roms\mame roms\captcomm.zip in cache
unzip: opened archive file d:\roms\mame roms\captcomm.zip
unzip: closing archive file d:\roms\mame roms\captcomm.zip and sending to cache
unzip: found d:\roms\mame roms\captcomm.zip in cache
unzip: opened archive file d:\roms\mame roms\captcomm.zip
unzip: closing archive file d:\roms\mame roms\captcomm.zip and sending to cache
unzip: found d:\roms\mame roms\captcomm.zip in cache
unzip: opened archive file d:\roms\mame roms\captcomm.zip
unzip: closing archive file d:\roms\mame roms\captcomm.zip and sending to cache
Region ':gfx' created
unzip: found d:\roms\mame roms\captcomm.zip in cache
unzip: opened archive file d:\roms\mame roms\captcomm.zip
unzip: closing archive file d:\roms\mame roms\captcomm.zip and sending to cache
unzip: found d:\roms\mame roms\captcomm.zip in cache
unzip: opened archive file d:\roms\mame roms\captcomm.zip
unzip: closing archive file d:\roms\mame roms\captcomm.zip and sending to cache
unzip: found d:\roms\mame roms\captcomm.zip in cache
unzip: opened archive file d:\roms\mame roms\captcomm.zip
unzip: closing archive file d:\roms\mame roms\captcomm.zip and sending to cache
unzip: found d:\roms\mame roms\captcomm.zip in cache
unzip: opened archive file d:\roms\mame roms\captcomm.zip
unzip: closing archive file d:\roms\mame roms\captcomm.zip and sending to cache
unzip: found d:\roms\mame roms\captcomm.zip in cache
unzip: opened archive file d:\roms\mame roms\captcomm.zip
unzip: closing archive file d:\roms\mame roms\captcomm.zip and sending to cache
unzip: found d:\roms\mame roms\captcomm.zip in cache
unzip: opened archive file d:\roms\mame roms\captcomm.zip
unzip: closing archive file d:\roms\mame roms\captcomm.zip and sending to cache
unzip: found d:\roms\mame roms\captcomm.zip in cache
unzip: opened archive file d:\roms\mame roms\captcomm.zip
unzip: closing archive file d:\roms\mame roms\captcomm.zip and sending to cache
unzip: found d:\roms\mame roms\captcomm.zip in cache
unzip: opened archive file d:\roms\mame roms\captcomm.zip
unzip: closing archive file d:\roms\mame roms\captcomm.zip and sending to cache
Region ':audiocpu' created
unzip: found d:\roms\mame roms\captcomm.zip in cache
unzip: opened archive file d:\roms\mame roms\captcomm.zip
unzip: closing archive file d:\roms\mame roms\captcomm.zip and sending to cache
Region ':oki' created
unzip: found d:\roms\mame roms\captcomm.zip in cache
unzip: opened archive file d:\roms\mame roms\captcomm.zip
unzip: closing archive file d:\roms\mame roms\captcomm.zip and sending to cache
unzip: found d:\roms\mame roms\captcomm.zip in cache
unzip: opened archive file d:\roms\mame roms\captcomm.zip
unzip: closing archive file d:\roms\mame roms\captcomm.zip and sending to cache
Region ':aboardplds' created
unzip: found d:\roms\mame roms\captcomm.zip in cache
unzip: opened archive file d:\roms\mame roms\captcomm.zip
unzip: closing archive file d:\roms\mame roms\captcomm.zip and sending to cache
unzip: found d:\roms\mame roms\captcomm.zip in cache
unzip: opened archive file d:\roms\mame roms\captcomm.zip
unzip: closing archive file d:\roms\mame roms\captcomm.zip and sending to cache
unzip: found d:\roms\mame roms\captcomm.zip in cache
unzip: opened archive file d:\roms\mame roms\captcomm.zip
unzip: closing archive file d:\roms\mame roms\captcomm.zip and sending to cache
unzip: found d:\roms\mame roms\captcomm.zip in cache
unzip: opened archive file d:\roms\mame roms\captcomm.zip
unzip: closing archive file d:\roms\mame roms\captcomm.zip and sending to cache
unzip: found d:\roms\mame roms\captcomm.zip in cache
unzip: opened archive file d:\roms\mame roms\captcomm.zip
unzip: closing archive file d:\roms\mame roms\captcomm.zip and sending to cache
Region ':bboardplds' created
unzip: found d:\roms\mame roms\captcomm.zip in cache
unzip: opened archive file d:\roms\mame roms\captcomm.zip
unzip: closing archive file d:\roms\mame roms\captcomm.zip and sending to cache
unzip: found d:\roms\mame roms\captcomm.zip in cache
unzip: opened archive file d:\roms\mame roms\captcomm.zip
unzip: closing archive file d:\roms\mame roms\captcomm.zip and sending to cache
unzip: found d:\roms\mame roms\captcomm.zip in cache
unzip: opened archive file d:\roms\mame roms\captcomm.zip
unzip: closing archive file d:\roms\mame roms\captcomm.zip and sending to cache
Region ':cboardplds' created
unzip: found d:\roms\mame roms\captcomm.zip in cache
unzip: opened archive file d:\roms\mame roms\captcomm.zip
unzip: closing archive file d:\roms\mame roms\captcomm.zip and sending to cache
unzip: found d:\roms\mame roms\captcomm.zip in cache
unzip: opened archive file d:\roms\mame roms\captcomm.zip
unzip: closing archive file d:\roms\mame roms\captcomm.zip and sending to cache
unzip: opened archive file cheat.zip
unzip: found cheat.zip ECD
unzip: cheat.zip has no ZIP64 ECD locator
unzip: read cheat.zip central directory
unzip: closing archive file cheat.zip and sending to cache
un7z: opened archive file newcheat.7z
un7z: closing archive file newcheat.7z and sending to cache
Loading cheats file from newcheat
unzip: found cheat.zip in cache
unzip: closing archive file cheat.zip and sending to cache
un7z: found newcheat.7z in cache
un7z: closing archive file newcheat.7z and sending to cache
Starting Captain Commando (World 911202) ':'
Optional memory region ':stars' not found
Optional memory region ':key' not found
Optional shared pointer ':decrypted_opcodes' not found
Optional device ':msm2' not found
Optional device ':msm1' not found
Optional device ':m48t35' not found
Optional shared pointer ':output' not found
Optional shared pointer ':objram2' not found
Optional shared pointer ':objram1' not found
Optional shared pointer ':qsound_ram2' not found
Optional shared pointer ':qsound_ram1' not found
  (missing dependencies; rescheduling)
Starting M68000 ':maincpu'
Starting Z80 ':audiocpu'
Starting Video Screen ':screen'
  (missing dependencies; rescheduling)
Starting gfxdecode ':gfxdecode'
Starting palette ':palette'
Starting Speaker ':mono'
  (missing dependencies; rescheduling)
Starting Generic 8-bit latch ':soundlatch'
Starting Generic 8-bit latch ':soundlatch2'
Starting YM2151 ':2151'
Starting OKI6295 ':oki'
Starting Captain Commando (World 911202) ':'
Optional memory region ':stars' not found
Optional memory region ':key' not found
Optional shared pointer ':decrypted_opcodes' not found
Optional device ':msm2' not found
Optional device ':msm1' not found
Optional device ':m48t35' not found
Optional shared pointer ':output' not found
Optional shared pointer ':objram2' not found
Optional shared pointer ':objram1' not found
Optional shared pointer ':qsound_ram2' not found
Optional shared pointer ':qsound_ram1' not found
  (missing dependencies; rescheduling)
Starting Video Screen ':screen'
Starting Speaker ':mono'
Starting Captain Commando (World 911202) ':'
Optional memory region ':stars' not found
Optional memory region ':key' not found
Optional shared pointer ':decrypted_opcodes' not found
Optional device ':msm2' not found
Optional device ':msm1' not found
Optional device ':m48t35' not found
Optional shared pointer ':output' not found
Optional shared pointer ':objram2' not found
Optional shared pointer ':objram1' not found
Optional shared pointer ':qsound_ram2' not found
Optional shared pointer ':qsound_ram1' not found
Average speed: 525.78% (73 seconds)
Sound: overflows=0, underflows=19
Sound: XAudio2 deinitialized


haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1536
  • Last login:June 16, 2025, 04:27:16 pm
  • retro maniac
Did You try set it using this instructions - http://geedorah.com/eiusdemmodi/forum/viewtopic.php?id=293 ?

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7461
  • Last login:May 23, 2025, 06:07:25 am
  • Quote me with care
Are you using any hlsl filter?
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

inv

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 21
  • Last login:August 10, 2020, 10:35:44 pm
  • I want to build my own arcade controls!
I don't use HLSL or GLSL, just 1080p full screen mode with d3d9ex option.

The tearing are some static tearing on the upper side of the screen.

I try to set vsync_offset from 1 to 150, but don't work.


inv

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 21
  • Last login:August 10, 2020, 10:35:44 pm
  • I want to build my own arcade controls!
Did You try set it using this instructions - http://geedorah.com/eiusdemmodi/forum/viewtopic.php?id=293 ?

I followed the suggestions of instructions but the tearing are still here...
« Last Edit: December 09, 2016, 06:27:34 pm by inv »

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7461
  • Last login:May 23, 2025, 06:07:25 am
  • Quote me with care
There should be a noticeable change on the tearing line position by using different values of -vsync_offset.

If you see that change but still can't manage to hide the line completely, then probably there's not much that can be done.

You need a somewhat powerful GPU to run frame delay without tearing on high resolution display. I have a Radeon R9 270 and get no tearing on a 2560x1600 display, -video d3d, with no hlsl shaders. According to this, your GeForce GTX 960 is more powerful, and 1080p is a less exigent resolution, so I don't know what's going on.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

inv

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 21
  • Last login:August 10, 2020, 10:35:44 pm
  • I want to build my own arcade controls!
I begin to suspect my video card hardware...

I try to uninstall my video card driver and reinstall it, but no effect.

Don't want to reinstall windows to test it...  :(