#How to reduce input lag

17 messages · Page 1 of 1 (latest)

dire spindle
#

I am using the Input singleton in _process to poll for input, but there seems to be a noticeable delay/lag when I play the game
Turning off vsync massively improves the situation and makes the delay unnoticeable, but it causes screen tearing.

lunar kayak
dire spindle
lunar kayak
#

Could it be that your monitor has a delay of its own?

dire spindle
#

no

#

i have a 60hz monitor, but the delay i had vas very noticeable, and it would go away when turning off vsync(and is also gone with using mailbox vsync)

lunar kayak
#

How where your FPS?

#

Because sometimes you may perform an action and it may be rendered late

dire spindle
#

Very high fps, like 400

#

without vsync

#

with vsync its 60

lunar kayak
#

You always want VSync on if you are not having performance issues. It both reduces stress on the GPU (i burnt one by disabling VSync once) and reduces screen tearing.

If anything this sounds like an issue with the drivers and how they handle VSync, seems this mailbox VSync is just better supported.

#

Remember that if your monitor is 60hz, it can only display 60 FPS, anything over is just wasted.

dire spindle
#

Input can still feel faster with higher FPS

lunar kayak
#

It may reduce the effects of screen tearing, which obviously looks better.

But it should not look any better than with VSync on.

#

But at this point, what do i know.
Apparently some monitors have built in VSync now (called GSync i think) and there is a lot of newer tech for this.

ripe obsidian
#

Why would you do it in _process() or _physics_process() instead of in _input()? That's what it's intended for