From 6b3a07cbc1326d31219a67799c98f7b501b3d450 Mon Sep 17 00:00:00 2001 From: austin Date: Sun, 1 Dec 2024 18:26:51 -0500 Subject: [PATCH] Conditional fluid chunk network activity --- buildNumber.properties | 4 ++-- docs/src/progress/renderertodo.md | 1 + src/fluid/src/metadata/metadatacalc.c | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/buildNumber.properties b/buildNumber.properties index 4cd5487d..2093a824 100644 --- a/buildNumber.properties +++ b/buildNumber.properties @@ -1,3 +1,3 @@ #maven.buildNumber.plugin properties file -#Sun Dec 01 18:23:03 EST 2024 -buildNumber=484 +#Sun Dec 01 18:25:39 EST 2024 +buildNumber=485 diff --git a/docs/src/progress/renderertodo.md b/docs/src/progress/renderertodo.md index c211b3f5..37c89671 100644 --- a/docs/src/progress/renderertodo.md +++ b/docs/src/progress/renderertodo.md @@ -1215,6 +1215,7 @@ Server homogenous fluid chunk declarations Unsleeping fluid chunks on edit Conditionally rasterize fluid chunks based on homogeneity Awake fluid chunks based on neighbor state +Fluid chunk conditionally send update based on sleep status diff --git a/src/fluid/src/metadata/metadatacalc.c b/src/fluid/src/metadata/metadatacalc.c index 7a639b86..ea2d7026 100644 --- a/src/fluid/src/metadata/metadatacalc.c +++ b/src/fluid/src/metadata/metadatacalc.c @@ -46,7 +46,6 @@ void updateMetadata(JNIEnv * env, int numChunks, Chunk ** passedInChunks, Enviro (*env)->SetBooleanField(env,jObj,environment->lookupTable.serverFluidChunkTable.homogenousId,homogenous); //update total density - (*env)->SetBooleanField(env,jObj,updatedId,JNI_TRUE); (*env)->SetFloatField(env,jObj,totalDensityId,sum); //check if any neighbor is non-homogenous @@ -75,6 +74,7 @@ void updateMetadata(JNIEnv * env, int numChunks, Chunk ** passedInChunks, Enviro //if this cell is awake AND non-homogenous, make sure all neighbors are awake if(shouldSleep == JNI_FALSE && homogenous == JNI_FALSE){ + (*env)->SetBooleanField(env,jObj,updatedId,JNI_TRUE); for(int j = 0; j < NEIGHBOR_ARRAY_COUNT; j++){ if(j == CENTER_LOC){ continue;