cfoust / sour

Sauerbraten for the web in a single Docker image.
https://sourga.me/
MIT License
159 stars 30 forks source link

Separate the rendering and input loops on web (or at least don't vsync game inputs) #37

Open cfoust opened 1 year ago

cfoust commented 1 year ago

There is noticeable input lag in the web version that arises because of the way inputs are only processed in alignment with requestAnimationFrame. It seems you can get around this using getCoalescedEvents.