mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Nerf protocol window sizes
Probably due to a unit misunderstanding a long time ago the window sizes were quite insane (especially the default). In practice this was sometimes hidden by other bugs, games trying their best to be lightweight or didn't matter on high-quality internet connections.
This commit is contained in:
parent
9c2b2c002c
commit
42af7cc1c5
3 changed files with 15 additions and 4 deletions
|
@ -327,6 +327,7 @@ void ConnectionSendThread::sendAsPacketReliable(BufferedPacketPtr &p, Channel *c
|
|||
channel->outgoing_reliables_sent.insert(p,
|
||||
(channel->readOutgoingSequenceNumber() - MAX_RELIABLE_WINDOW_SIZE)
|
||||
% (MAX_RELIABLE_WINDOW_SIZE + 1));
|
||||
// wtf is this calculation?? ^
|
||||
}
|
||||
catch (AlreadyExistsException &e) {
|
||||
LOG(derr_con << m_connection->getDesc()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue