author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Thu, 10 Oct 2019 09:01:53 +0000 (12:01 +0300) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Thu, 10 Oct 2019 09:04:49 +0000 (12:04 +0300) | ||
commit | 7d53b8719f818712900fefb1c36e41b1fe9b3f32 | |
tree | ceb9e69bd4209c9ada58f2ea1ee57d68afda64e8 | tree | snapshot |
parent | f25a08e69e17ffebfd919fd38e29684b334e6fb2 | commit | diff |
net: do not hiccup when the game is in progress, and master server is not available
the game repeatedly tries to connect to master server while the match is going on, and
the master is not available. connection routine is blocking, so the whole game freezes
for 3 seconds once a minute. definitely not a very pleasant expirience.
i made connection to master optionally non-blocking. the game will still hang for 3 secs
when loading a new map (this can be changed too, but i don't think that it really matters),
but in-game hangups should be gone.
the game repeatedly tries to connect to master server while the match is going on, and
the master is not available. connection routine is blocking, so the whole game freezes
for 3 seconds once a minute. definitely not a very pleasant expirience.
i made connection to master optionally non-blocking. the game will still hang for 3 secs
when loading a new map (this can be changed too, but i don't think that it really matters),
but in-game hangups should be gone.
src/game/g_game.pas | diff | blob | history | |
src/game/g_language.pas | diff | blob | history | |
src/game/g_netmaster.pas | diff | blob | history |