GZDoom 3.5.0 Input Lag

Need help running G/Q/ZDoom/ECWolf/Zandronum/3DGE/EDuke32/Raze? Did your computer break? Ask here.

Moderator: GZDoom Developers

Forum rules
Contrary to popular belief, we are not all-knowing-all-seeing magical beings!

If you want help you're going to have to provide lots of info. Like what is your hardware, what is your operating system, what version of GZDoom/LZDoom/whatever you're using, what mods you're loading, how you're loading it, what you've already tried for fixing the problem, and anything else that is even remotely relevant to the problem.

We can't magically figure out what it is if you're going to be vague, and if we feel like you're just wasting our time with guessing games we will act like that's what you're really doing and won't help you.
JustAGuy
Posts: 11
Joined: Wed Nov 29, 2017 8:33 am

GZDoom 3.5.0 Input Lag

Post by JustAGuy »

Since the new version of GZDoom is running in some sort of borderless windowed mode if I'm right, the mouse movement has input lag like if V-Sync would've been turned on.
This has bothered me so much to the point of switching back to 3.4.1.
Is there like a workaround or any chances of this being fixed in future releases?
dpJudas
 
 
Posts: 3037
Joined: Sat May 28, 2016 1:01 pm

Re: GZDoom 3.5.0 Input Lag

Post by dpJudas »

If you mean GZDoom in fullscreen, then the behavior is exactly as it has always been: when a window in Windows covers the entire monitor the Desktop Window Manager (DWM) is disabled and there is no additional input lag.

If the window is not maximized, the DWM is active and there's approximately 1 frame of delay with occasional frame stuttering. This is a limitation of Microsoft's shitty DWM implementation - there's nothing we can do to fix that. Given that Microsoft now had 12 years to fix this, chances are they don't give a shit. :(
JustAGuy
Posts: 11
Joined: Wed Nov 29, 2017 8:33 am

Re: GZDoom 3.5.0 Input Lag

Post by JustAGuy »

Ah I see, though it looks like DWM is active even on fullscreen since there is input lag, however it does not happen on 3.4.1.
Since I can't really get used to it, I will just stay on 3.4.1.
Also, thanks for the quick answer!

Edit: I just tried the Vintage version and it seems there's no input lag in this one, the mouse movement feels smooth and right.
dpJudas
 
 
Posts: 3037
Joined: Sat May 28, 2016 1:01 pm

Re: GZDoom 3.5.0 Input Lag

Post by dpJudas »

Are you sure you are using identical ini files for both? I.e. if you forgot to disable vsync in the new one. There shouldn't be any difference with regard to input lag between 3.4.1 and 3.5
JustAGuy
Posts: 11
Joined: Wed Nov 29, 2017 8:33 am

Re: GZDoom 3.5.0 Input Lag

Post by JustAGuy »

No, I never use V-Sync.
User avatar
Mynameislol
Posts: 51
Joined: Thu Feb 02, 2017 5:19 pm

Re: GZDoom 3.5.0 Input Lag

Post by Mynameislol »

Sorry for this massive bump, but i was about to make a new thread.

I can confirm that in both the latest vintage build and GZDoom version 3.4.1 there is no input lag, while every version after it has.

This is very noticeable on 144hz+ refresh rates, and makes the mouse movement feel really sluggish.

To confirm that it wasn't just a placebo, i made some slow-motion recordings with my phone, there i could very clearly see the delayed mouse movement.
User avatar
drfrag
Vintage GZDoom Developer
Posts: 3141
Joined: Fri Apr 23, 2004 3:51 am
Location: Spain
Contact:

Re: GZDoom 3.5.0 Input Lag

Post by drfrag »

Most likely new display code and not so great hardware, try LZDoom.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: GZDoom 3.5.0 Input Lag

Post by Graf Zahl »

It may also be the new timer code that got introduced around the same time. Hard to tell without system specs.
User avatar
Mynameislol
Posts: 51
Joined: Thu Feb 02, 2017 5:19 pm

Re: GZDoom 3.5.0 Input Lag

Post by Mynameislol »

LZDoom did not have any input lag whatsoever, my system specs are

I7-6700k 4Ghz, 32GB DDR4 RAM @ 3666 Mhz, Geforce GTX 1080 TI Stock

Operating System is Windows 10.
User avatar
drfrag
Vintage GZDoom Developer
Posts: 3141
Joined: Fri Apr 23, 2004 3:51 am
Location: Spain
Contact:

Re: GZDoom 3.5.0 Input Lag

Post by drfrag »

The new timer code predated GZDoom 3.3.2, it's in the legacy versions.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: GZDoom 3.5.0 Input Lag

Post by Graf Zahl »

Ok. I wasn't sure about the exact date. Still, this is weird. On such modern hardware the 3.5 changes shouldn't have such an effect.
User avatar
Mynameislol
Posts: 51
Joined: Thu Feb 02, 2017 5:19 pm

Re: GZDoom 3.5.0 Input Lag

Post by Mynameislol »

I've been reading a bit, and it the reason why there's input lag is because windows 10 uses something called DWM, but it's disabled in fullscreen applications
User avatar
Mynameislol
Posts: 51
Joined: Thu Feb 02, 2017 5:19 pm

Re: GZDoom 3.5.0 Input Lag

Post by Mynameislol »

Ok, i've compared with older versions, and while there are indeed less input lag in previous versions, with nvidia's latest driver updates and the new "Ultra-Low Latency" feature, it's more subtle.

However, comparing with the Quake II sourceport "Yamagi Quake II", the difference is clear as night an day, which makes me think, maybe GZDoom/ZDoom needs a mouse input overhaul?
User avatar
De-M-oN
Posts: 203
Joined: Mon May 26, 2008 3:24 pm

Re: GZDoom 3.5.0 Input Lag

Post by De-M-oN »

I can confirm that it feels a bit weird compared to Zandronum.
I got used to it now, but Zandronum feels better.

Maybe it's the same problem idk.

It's also weird that it feels better with mouse at 1000hz polling rate.
In old versions it was the opposite - 125 hz polling rate felt the best and 1000hz felt weird.
Which is why I used 125 hz for gzdoom still.
But now 1000hz feels much better.

With 1000hz I can live with the input. But Zandronum still feels a little bit more smooth to me.
ReFracture
Posts: 5
Joined: Fri Oct 12, 2018 8:17 am
Graphics Processor: nVidia with Vulkan support

Re: GZDoom 3.5.0 Input Lag

Post by ReFracture »

As much as I hate to bump an old thread like happened already.. I feel it's better than making a new one.

I run GZDoom 4.3.3 on Windows 10 Home, specs as follows:
Dell Inspiron 7559
i7 6700HQ
16gb ram
GTX 960m driver version 445.75/Intel HD Graphics 530 (one of those annoying nvidia optimus designs..)

As stated before ever since the overhaul to the display system where manual resolution selections disappeared.. with it seemed exclusive full screen as well.

To the point: I cannot make the renderer tear. It doesn't matter if it's running at 200 fps on the 60hz panel, it doesn't tear, and the mouse feels horribly.. horribly delayed, as if vsync was turned on even though vid_vsync is set to false, changing it true only seems to cap the fps and not affect the perceived input lag.

Is the lag placebo? I don't think so. Every other game I've tried that supports exclusive full screen doesn't have this issue, and even GZDoom itself (Same version) running under Linux on the same laptop with the desktop compositor disabled feels responsive and very playable, it tears but I tolerate it for a responsive mouse.

As far as I know you cannot get Windows 10's desktop compositor to leave you alone without exclusive full screen. The referenced examples of design for this change in GZDoom (The "Where's my resolutions" thread that was made around the time this change came to be in drd builds) are all cursor driven games like Starcraft II and Diablo 3.. not twitchy first person shooters.

This hasn't ruined GZDoom for me, on my Windows 10 desktop with a 144hz gsync monitor the input lag is noticeable but negligible since its less than half the latency it would be on a 60hz panel.. but GZDoom on my laptop really sucks if I'm not living by the penguin.
Post Reply

Return to “Technical Issues”