mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-12 16:58:39 +00:00
Server: Calculate maximal total block sends dynamically (#6393)
The block sends per client is 1/2 when reaching the maximal player count.
This commit is contained in:
parent
1105a14bcc
commit
745a90dc84
6 changed files with 13 additions and 17 deletions
|
@ -272,10 +272,7 @@ public:
|
|||
*/
|
||||
void ResendBlockIfOnWire(v3s16 p);
|
||||
|
||||
s32 SendingCount()
|
||||
{
|
||||
return m_blocks_sending.size();
|
||||
}
|
||||
u32 getSendingCount() const { return m_blocks_sending.size(); }
|
||||
|
||||
// Increments timeouts and removes timed-out blocks from list
|
||||
// NOTE: This doesn't fix the server-not-sending-block bug
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue