asrob-uc3m / robotDevastation

A new-generation shooter with augmented reality and real robots. You can play online with other users with your PC, moving robots in championships and campaigns: all 24/7!
http://asrob-uc3m.github.io/workgroups/2017-05-28-robot-devastation.html
GNU Lesser General Public License v2.1
9 stars 4 forks source link

Strangely large amount of Key Release while Key is pressed #60

Closed jgvictores closed 7 years ago

jgvictores commented 8 years ago

During robotDevastation, there is a strangely large amount of Key Release detections while a Key is pressed. Consequences:

Note: This does not happen in the testRdInputManager.

jgvictores commented 7 years ago

All these issues seem related. Our current theories are related to the fact that SDL_PumpEvents is being called by threads that are not the main video thread (see SDL_PollEvent in RdInputLib/RdSDLInputManager.cpp).

Must experiment with events such as SDL_AddEventWatch so a callback can call the listeners.

David-Estevez commented 7 years ago

I am going to assume issue #71 solved this at 27b941dd116ba1e

If this happens again, we will reopen the issue