mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Reduce client's packet processing budget per iteration from 100 to 10ms. (#13237)
This commit is contained in:
parent
2553db5c81
commit
63c378fb5b
1 changed files with 1 additions and 1 deletions
|
@ -923,7 +923,7 @@ void Client::ReceiveAll()
|
||||||
{
|
{
|
||||||
NetworkPacket pkt;
|
NetworkPacket pkt;
|
||||||
u64 start_ms = porting::getTimeMs();
|
u64 start_ms = porting::getTimeMs();
|
||||||
const u64 budget = 100;
|
const u64 budget = 10;
|
||||||
for(;;) {
|
for(;;) {
|
||||||
// Limit time even if there would be huge amounts of data to
|
// Limit time even if there would be huge amounts of data to
|
||||||
// process
|
// process
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue