-
-
Notifications
You must be signed in to change notification settings - Fork 354
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 issues with Gnome X11 #108
Comments
There's no such an issue with simple or terrain example, but present in 3rd_person, StationIapetus and rusty-shooter |
It looks like |
Trigger of the problem is actually resizing the windows. But that's works only with examples. StationIapetus and rusty-shooter have this issues when they're both default size and modified size. Maybe because they're manually resized by code? BTW I found some artifacts in while running examples... |
@Eragonfr No. There weren't any input issues on wayland. |
I know, I'm on wayland. As I know when I opened the other issue mrDIMAS was only testing on a VM of Ubuntu with the default GNOME X11 DE |
@mrDIMAS simple example. that's the minimal working example. |
in ui example. at line 474 there's a comment about winit not sending Resized event. |
whoops. |
Update: the issue differs on different videocards. I'm more than sure that this is the problem with rg3d, not winit. |
I noticed the same issue under X11, while everything is fine on Wayland. In my case, it's kind of "special": camera movement is controlled using W (forwards) and S (backwards) keys, as well as the mouse to rotate the camera. Hitting W makes my camera start moving without any delay. Then I keep the W key pressed for some seconds to move for some longer time, then release the W key. Now there is quite a noticeable delay before movement stops. However, during that delay, I can still control the camera rotation using my mouse. So my application reacts to mouse input correctly and without any delay, but the "W key released" event is probably queued up somewhere (along with lots of "this is a reminder that the W key is still pressed!" events?) and waiting to be processed. I don't really care about X11 so I don't feel like investigating this further right now, but looking at how those key input events are transferred from the X server through winit (and possibly other crates) to rg3d might be a good start. Maybe there's some event queue in there somewhere that is not getting polled frequently enough and has events piling up while holding a key? |
There has been quite some modifications done to the engine since the last comment. Do you still have this bug ? @w-flo @Voodlaz |
I can't test right now, my code uses an old version of what used to be called rg3d. I guess there have been enough breaking changes since then to make the upgrade somewhat time-consuming, and I have some custom patches applied to rg3d (e.g. to use a simple forward rendering pipeline instead of deferred). So if there is nobody else to test if this is still an issue, feel free to close it. Once/If I get around to updating my code, I will test and leave another comment. |
Could somebody please re-check this issue? I updated the engine to winit 0.29 which has a brand new input system and this issue might be fixed as well. |
So my charchter continued to walk thought I stopped pressing on the button. This Doesen't happen when use movements one at a time. Also there was problems with charachter obeying commands late. This only happens with the keyboard, no such things happens with mouse.
This is probably some issue with the keyboard event handling.
The text was updated successfully, but these errors were encountered: