Vsync ON == Mouse Lag!

flexy

Diamond Member
Sep 28, 2001
8,464
155
106
Problem:

I have a 8800 GTS 512MB on a 60hz Widescreen LCD.

I am using 174.70 drivers.

*Every time* when i enable Vsync in games i get a very noticeable "mouse lag"...i dont get nay mouse-lag whatsoever if i run without vsync on.

There are some games (WoW) where i prefer Vsync..but the lag is a bit annyoing.

Btw. this applies to any games, even games which can run with 200+ FPS, like HL2 engine on the GTS...Vsync On: Mouselag..

Why?

 

kylebisme

Diamond Member
Mar 25, 2000
9,396
0
0
By default vsync uses double buffering, which means the GPU has to sit idle after it finishes drawing each new frame to the back buffer while waiting for the refresh to be completed from the front buffer, hence the lag you notice. Triple buffering reduces that latency by allocating memory to store a frame while waiting for vsync, so the GPU can continue rendering as it does when not using vsync and potentially produce a newer frame in time for the next vsync. You can use D3DOverrider which is included with RivaTuner to force triple buffering D3D applications.
 

flexy

Diamond Member
Sep 28, 2001
8,464
155
106
TSM,

thanks. Yes i know about all the technical details. I forgot to say that i never had a mouse-lag issue gaming on my old CRT, or at least not that i remember. Yes i have Vsync and Triplebuffering on...but the lag is still there when i play using Vsync.

I wonder if its related to the lower refresh of the LCD.
 

ArchAngel777

Diamond Member
Dec 24, 2000
5,223
61
91
I have never noticed input lag at all... I tried to find it on the dad's plasma TV, which is supposed to have it, but NEVER once noticed it. I spent 10 minutes to try and get this 'lag' to show.

I also enabled Vsync + TB and notice no lag on my LCD. I move the mouse and it instantly moves. I have tried to move it quick to spot this lag, but am unable too.

It must be something that only some people notice. It could be that their eyes are sharper, quicker, etc... But, in some ways, I would consider myself lucky that I do not notice it, because look how miserable people are. They either live with tearing (something I noticed and abhore, both CRT and LCD) or they live with their input lag (something I never notice). So, I guess life is good for me as a result of perhaps my own visual human limitations. *shrug* no complaints here.

But one thing I don't understand is how a CRT user can stand imperfect geometry. I'd rather have slightly less accurate colors and contrast than a line that isn't perfectly straight. Even the best CRT's have geometry issues.
 

Munky

Diamond Member
Feb 5, 2005
9,372
0
76
I also noticed input lag with vsync, even in my own 3-D applications, not sure if it's because I switched to a 27" LCD or a Nvidia video card (or both).

As far as colors vs. geometry, it depends on what you use the monitor for. For games and movies I'd chose colors over geometry any day... but there's something to be said about gaming and movies on a 27" screen, even with imperfect colors.
 

whiplash willy

Junior Member
Mar 9, 2008
10
0
0
Forget about VSYNC and turn up the refresh rate on your LCD, turn it up as high as you can. After increasing the refresh rate on my LCD from 60 to 75hz, I no longer needed to use VSYNC to get rid of tearing.

Here is a good read on VSYNC:

Vsync
 

taltamir

Lifer
Mar 21, 2004
13,576
6
76
wouldn't triple buffering the mouse lag more? I would imagine you would want to use D3D overrider to completely eliminate buffering.

There is always the chance that it isn't their eyes or brain, but simply a case of a driver bug affecting their specific system. some people get their pcie 16x set to 1x for some reason, some get their videocard downclocking automatically due to thinking it has too little power (on beefy PSUs), there are a plethorea of system specific errors. When the brand of PSU you have can cause driver bugs, well, then so can anything else.
 

BFG10K

Lifer
Aug 14, 2000
22,709
2,995
126
I wonder if its related to the lower refresh of the LCD.
Not the refresh rate per-se, just the general image lag LCDs have.

After increasing the refresh rate on my LCD from 60 to 75hz, I no longer needed to use VSYNC to get rid of tearing.
LCDs that can truly go above 60 Hz are rare. The rest of them will do something like skip every fifth refresh when you use 75 Hz.

wouldn't triple buffering the mouse lag more?
In theory triple buffering should improve the situation but in practice I?ve found it can make things worse.

I would imagine you would want to use D3D overrider to completely eliminate buffering.
If you eliminate buffering you couldn?t render anything. Two buffers are needed at a minimum to ensure there?s no flicker during animation.
 

taltamir

Lifer
Mar 21, 2004
13,576
6
76
wouldn't triple buffering the mouse lag more?
In theory triple buffering should improve the situation but in practice I?ve found it can make things worse.

I would imagine you would want to use D3D overrider to completely eliminate buffering.
If you eliminate buffering you couldn?t render anything. Two buffers are needed at a minimum to ensure there?s no flicker during animation.
[/quote]
Sorry I meant make into single buffer. I mean, what kind of theory is that where triple buffer will have less input lag? Triple buffer is reducing stutter and image lag at the cost of increased input lag.

Time = start
Single buffer:
Frame 1 is displayed.
Frame 2 is rendering.
Frame 3 will not render until frame 2 is displayed. (or it will and discard, depending on vsync)

Double buffer:
Frame 1 is displayed.
Frame 2 is rendering.
Frame 3 will render ASAP.
Frame 4 will not begin rendering until frame 2 is displayed. (or it will and discard, depending on vsync)

Triple buffer:
Frame 1 is displayed.
Frame 2 is rendering.
Frame 3 will render ASAP
Frame 4 will render ASAP.
Frame 5 will not begin rendering until frame 2 is displayed. (or it will and discard, depending on vsync)

without vsync each frame is rendered ASAP, so the faster the video card, the less time passess between frames. With vsync, each frame is matched to be 1/60th of a second apart.

Time meaningfully progresses every 1/60th of a second, when a new frame is sent to the monitor. If your video card is fast enough to render 240fps for game X, then it will render and DISCARD about 3 or so frames before the next monitor refresh. Meaning that regardless of buffer the next frame WILL display your input. If your video card is vsynced that it would have instead rendered 3 "future" frames that are each 1/60th of a second apart and EACH is going to be displayed, resulting in X/60th of a second input lag.

vsync off (250fps, frames 1/250th of a second apart):
time=0 : Frame 1 is displayed.
time=1/250s: Frame 2 created.
time=1.5/250s: input from user
time=2/250s: Frame 3 created.
time=3/250s: Frame 4 created.
time=1/60s: Frame 4 begins sending to monitor
time=4/250s: Frame 5 enters buffer while frame 4 is being sent. Resulting in tearing as the top half of frame 4 and bottom half of frame 5 are displayed.

vsync on (250fps CAPABLE card working at 60fps) :
time=0 : Frame 1 is displayed.
time=1/250s: Frame 2 created
time=1.5/250s: input from user
time=2/250s: Frame 3 created.
time=3/250s: Frame 4 created.
time=1/60s: Frame 2 (which is missing the last input) begins sending to monitor, when it finishes, frame 5 will begin rendering.

Basically with very high FPS situation, input lag will be introduced by triple and double buffering. (2/60th and 1/60th of a second respectively). But the tearing is eliminated. With low FPS the input lag is lessened because it is less like that frames are rendered ahead (since the video card is just not fast enough), but it might still occur in times of high FPS spikes. However tearing is completely gone.

If you think vsync reduces input lag then you are just confusing input lag with lag in general. Or your CPU is choking, and reducing the framerate by capping it allows quicker calculations.


PS. Input lag could mean one of two types. Where you gave input but it did not display on the next image (it took X miliseconds before the gun animation started). Or when you gave a command and it did not REGISTER with the computer until some time later (i clicked first but died).
Oh wow, I just understood the stutter in quad GPU AFR rendering.. it all makes perfect sense now...

Anyways, if you are suffering from cases where you shot first and still died that this is a case where you want to unburden your CPU as much as possible, in which case vsync + triple buffer means you are doing the LEAST amount of work per image displayed, resulting in a snappier system, that will more quickly detect your click.

When I was saying "image lag" before I meant stutter between pictures caused by low FPS. Example: crysis at 5fps lags and looks like a slideshow.
 

Phynaz

Lifer
Mar 13, 2006
10,140
819
126
You're off by one.

What you call single buffer is actually double buffer, and what you call double buffer is actually triple buffer.
 

taltamir

Lifer
Mar 21, 2004
13,576
6
76
ah... right... cause the currently displayed image is ALSO a buffer... oops. Thanks..

I think I got it... What you are probably experiencing is STUTTER, not input lag.

Input lag : I pulled the trigger first and yet he killed me.
Stutter : I pulled the trigger, and then it suddenly jumped to 50% done with the firing animation.

Buffering + Vsync = reduced input lag and no tearing, but increased stutter.
No vsync + high FPS = no stutter at all, but increased input lag and tearing.

Just reduce your buffering to double. if it STILL bothers you, then you have to choose which bothers you more.
 

flexy

Diamond Member
Sep 28, 2001
8,464
155
106
guys, i am not talking about the LCD mouselag!! The LCD itself doesnt lag, i can see since it is 5ms/2ms (gray to gray), pretty fast and i can run whatever i want without vsync fine. its NOT the monitor.

It must be an issue with the drivers, or just general an issue which appears *only* using vsync and LCDs. If i have time i can test tomorrow on my other PC on the CRT....but the test would be flawed since it COULD also be a Nvidia issue, the other PC has an ATI card.

Btw. the lag does NOT get better with "maximum pre-rendered frames" to 2..i also can test whether this happens in OpenGL, eg running WoW in OpenGL. I notice this lag in all games (mostly RPGs) where i dont care about speed/tearing and turn on Vsync.
 

LegitimateBusinessman

Junior Member
Jan 18, 2009
2
0
0
I have this same problem, and if you have a squiz on the internet at large it seems common - vsync on = input lag. I am not joking when I say that if I forced myself to play with vsync enabled for an extended period I would eventually vomit from a combination of anger and nausea.
My framerate is anywhere from 70 to 110 in most games, and with vsync on in COD it never flutters below a solid 60fps. Without vsync there's no mouse lag whatsoever and if it hovers around 90fps everything is fine and dandy. However, it doesn't do that all or even most of the time - 75 is about average, and the absolute worst possible framerate for suicidal tearing on a 60hz monitor. God I hate computers sometimes.
 

zod96

Platinum Member
May 28, 2007
2,867
68
91
I use vsync on my LG L227 and I notice no mouse lag at all. My mouse movments are instant. There is no way I could play without vsync in games now. Its sooo much smoother with it on
 

Grinja

Member
Jul 31, 2007
168
0
0
I found that Quake 4 had crazy lag when I used vsync ... no other game currently comes to mind though.
 

Emperor88

Junior Member
Dec 4, 2008
8
0
0
Originally posted by: LegitimateBusinessman
I have this same problem, and if you have a squiz on the internet at large it seems common - vsync on = input lag. I am not joking when I say that if I forced myself to play with vsync enabled for an extended period I would eventually vomit from a combination of anger and nausea.
My framerate is anywhere from 70 to 110 in most games, and with vsync on in COD it never flutters below a solid 60fps. Without vsync there's no mouse lag whatsoever and if it hovers around 90fps everything is fine and dandy. However, it doesn't do that all or even most of the time - 75 is about average, and the absolute worst possible framerate for suicidal tearing on a 60hz monitor. God I hate computers sometimes.

What system/gfx card config/screen are you using?

 

ed35

Junior Member
May 19, 2009
1
0
0
I would just like to say to everyone looking to use VSYNC and NOT experience mouse/input lag.... Simply limit your FPS to 59. I don't know why this works, but it does for me with every single game (TF2, Far Cry, WoW, CSS) and I experience zero tearing, the smoothest gameplay (SLI seems to perform better in most games with vsync on), and no input lag.
 

brblx

Diamond Member
Mar 23, 2009
5,499
2
0
i think you guys have other issues. i use vsync, triple buffering on a 21" lcd and have never had any input lag with the exception of maybe one of two obviously consolitis-ridden games.

and i grew up playing quakeworld on a crt, i think i'd notice.
 

dguy6789

Diamond Member
Dec 9, 2002
8,558
3
76
Originally posted by: brblx
i think you guys have other issues. i use vsync, triple buffering on a 21" lcd and have never had any input lag with the exception of maybe one of two obviously consolitis-ridden games.

and i grew up playing quakeworld on a crt, i think i'd notice.

It's definitely vsync. The input lag isn't large, but it's noticeable. It doesn't bother everyone, but it does bother some. It's happened to me on every computer I've ever owned with Nvidia or ATI and on every monitor I have ever had both CRT and LCD. If you've used vsync for years, you probably are long since used to it. If you haven't used vsync for years, it's very noticeable when you turn it on.
 

brblx

Diamond Member
Mar 23, 2009
5,499
2
0
are you saying this is present on CRT's as well? i had never heard of 'mouse lag' until lcd's (and wireless mice) came out.

i never vsynced on a crt, because tearing never seemed to be a problem with quake or similar games of the era. i think half-life was the first game where i noticed it (still on a crt), and it didn't bother me until i moved to an lcd.
 

dguy6789

Diamond Member
Dec 9, 2002
8,558
3
76
Yeah it happens on CRTs as well. The screen doesn't have anything to do with it really. Enabling vsync makes a game's view move around in a laggy fashion compared to your mouse's movements. Disabling vsync makes it much more responsive and snappy.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |