1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Increase default emerge queue limits and limit enqueue requests for active blocks.

This commit is contained in:
Lars 2020-11-08 12:30:38 -08:00 committed by lhofhansl
parent be3fe161fc
commit be8d1d2d99
3 changed files with 10 additions and 6 deletions

View file

@ -426,6 +426,10 @@ bool EmergeManager::pushBlockEmergeData(
m_qlimit_generate : m_qlimit_diskonly;
if (count_peer >= qlimit_peer)
return false;
} else {
// limit block enqueue requests for active blocks to 1/2 of total
if (count_peer * 2 >= m_qlimit_total)
return false;
}
}