Zemanzo / web-marbles

Aims to recreate Marble Racing from the ground up, as a fully web based game
https://playmarbl.es/
GNU General Public License v3.0
23 stars 12 forks source link

When client tab is hidden, the networking buffer increases (whilst it shouldn't) #232

Closed Zemanzo closed 3 years ago

Zemanzo commented 5 years ago

Expected behavior When the client tab becomes inactive, it should not adapt the network buffer because of the tab's low processing priority.

Actual behavior When the client tab becomes inactive, it increases the network buffer because of the tab's low processing priority. This causes unnecessary delays.

Reproduction steps

  1. Go to /client.
  2. Start a marble race.
  3. Go to a different tab in the same browser window for ~30 seconds.
  4. Open the client tab again.
  5. Network buffer has increased causing delays.

Platform OS: Windows 10 Browser version: Firefox Developer Edition 68.0b11 (64-bit) Build version: v1.2.0

Related issues Might be related to #206