Skip to content

Conversation

@sfan5
Copy link
Collaborator

@sfan5 sfan5 commented Oct 26, 2025

it can lead to terrain not loading/updating at all if you're constantly building and moving.

for more see the irc logs: https://irc.luanti.org/luanti/2025-10-26#i_6293100

To do

This PR is Ready for Review.

How to test

🤷

if (m_time_from_building < m_min_time_from_building) {
max_simul_sends_usually
= LIMITED_MAX_SIMULTANEOUS_BLOCK_SENDS;
max_simul_sends_usually *= LIMITED_BLOCK_SENDS_FACTOR;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting. For larger viewing_ranges (or actual servers with some latency to the client) max_simultaneous_block_sends_per_client has to be increased significantly. For 1000-2000 I have it set to 512, for example.

@lhofhansl
Copy link
Contributor

Can we just get rid of that logic entirely.

@sfan5
Copy link
Collaborator Author

sfan5 commented Oct 26, 2025

We can, the new logic is just based on me guessing that this could still be useful.

@sfan5
Copy link
Collaborator Author

sfan5 commented Oct 29, 2025

It at least wouldn't hurt to merge this for the time being. After all servers can still disable this optimization(?) entirely using a setting. 🤷

Copy link
Member

@SmallJoker SmallJoker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested according to instructions.
LGTM.

@sfan5 sfan5 merged commit 7a6e639 into luanti-org:master Nov 4, 2025
17 checks passed
@sfan5 sfan5 deleted the dumb branch November 4, 2025 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants