-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Input delay when moving mouse #2
Comments
Bevy by default has the worst possible input latency. IE: it polls input right after the end of the previous frame, resulting on input latency of exactly one frame, even without counting accidental lag caused by bad system ordering. Using |
@nicopap This is a usefull advice, thanks. I will try it if there is a difference. Bevy_Lunex currently uses a dummy entity to track cursor, so you can style it. Notice the bloom of the cursor for example. It pulls cursor data, puts it as transform on entity and then that is used. So there might even be 2 frame delay. I will try to add option to style native cursor sprite instead, which was recently merged in winit. Altough, its kinda surprising you noticed this delay. When OS cursor is hidden, I can't tell the difference, but that might be because of my 165hz display. |
I've tried setting the I added Btw, not related but when I clicked "Quit Game" in the UI, I got a segfault:
|
Thanks for building such an awesome showcase!
I just compiled it and tested it myself, though there's quite a noticeable delay when moving my mouse to click buttons. I ran in release mode, and my PC is quite powerful with a 4070, so its definitely not my PC under performing.
Any ideas where this delay might be coming from?
For context, here's some of the logs I see when running the app:
And I'm on Linux
The text was updated successfully, but these errors were encountered: