"deferred block updates": falling sand and flowing water

This commit is contained in:
2025-09-27 17:47:28 +02:00
parent 90a7a8b48e
commit 7e7a98bd41
6 changed files with 226 additions and 80 deletions

View File

@@ -595,6 +595,10 @@ int main () {
// Check if it's time to yield to the idle task
task_yield();
if (deferred_block_updates_count == MAX_DEFERRED_BLOCK_UPDATES) {
printf("WARNING: Deferred block update queue maxed out\n");
}
// Attempt to accept a new connection
for (int i = 0; i < MAX_PLAYERS; i ++) {
if (clients[i] != -1) continue;