#How to reduce input lag
17 messages · Page 1 of 1 (latest)
_process() is FPS dependent. So it would only update during a frame render.
Use _physics_process() for a consistent polling rate.
i tried using it in physics process, but the same issue, the input is delayed.
i now found a setting called mailbox vsync mode, which actually fixes the issue for me, but im not sure what mailbox vsync actually is
Could it be that your monitor has a delay of its own?
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)
How where your FPS?
Because sometimes you may perform an action and it may be rendered late
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.
Input can still feel faster with higher FPS
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.
Why would you do it in _process() or _physics_process() instead of in _input()? That's what it's intended for