Skip to content

Commit

Permalink
parameter legacyCellFunctionMuscleNoActivityReset removed
Browse files Browse the repository at this point in the history
  • Loading branch information
chrxh committed Nov 8, 2024
1 parent b37b015 commit 6d7e27e
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 21 deletions.
4 changes: 0 additions & 4 deletions source/EngineGpuKernels/MuscleProcessor.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,6 @@ __device__ __inline__ void MuscleProcessor::movement(SimulationData& data, Simul
cell->vel += direction;
cell->cellFunctionData.muscle.lastMovementX = direction.x;
cell->cellFunctionData.muscle.lastMovementY = direction.y;
if (!(cudaSimulationParameters.features.legacyModes && cudaSimulationParameters.legacyCellFunctionMuscleNoActivityReset)) {
activity.channels[0] = 0;
activity.origin = ActivityOrigin_Unknown;
}
cell->releaseLock();
statistics.incNumMuscleActivities(cell->color);
}
Expand Down
1 change: 0 additions & 1 deletion source/EngineInterface/SimulationParameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ bool SimulationParameters::operator==(SimulationParameters const& other) const
&& cellFunctionMuscleMovementTowardTargetedObject == other.cellFunctionMuscleMovementTowardTargetedObject
&& legacyCellFunctionMuscleMovementAngleFromSensor == other.legacyCellFunctionMuscleMovementAngleFromSensor
&& muscleMovementVisualization == other.muscleMovementVisualization
&& legacyCellFunctionMuscleNoActivityReset == other.legacyCellFunctionMuscleNoActivityReset
&& externalEnergyInflowOnlyForNonSelfReplicators == other.externalEnergyInflowOnlyForNonSelfReplicators
&& externalEnergyBackflowLimit == other.externalEnergyBackflowLimit
;
Expand Down
1 change: 0 additions & 1 deletion source/EngineInterface/SimulationParameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ struct SimulationParameters
float cellFunctionDetonatorActivityThreshold = 0.1f;

bool legacyCellFunctionMuscleMovementAngleFromSensor = false;
bool legacyCellFunctionMuscleNoActivityReset = false;

bool operator==(SimulationParameters const& other) const;
bool operator!=(SimulationParameters const& other) const { return !operator==(other); }
Expand Down
8 changes: 0 additions & 8 deletions source/Gui/SimulationParametersWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1610,14 +1610,6 @@ void SimulationParametersWindow::processBase()
"movement angle directly from a connected (or connected-connected) sensor cell that has previously detected a target "
"(legacy behavior). If deactivated, the input signal must only originate from a sensor cell and must not be adjacent (new behavior)."),
parameters.legacyCellFunctionMuscleMovementAngleFromSensor);
AlienImGui::Checkbox(
AlienImGui::CheckboxParameters()
.name("No activity reset in muscles")
.textWidth(RightColumnWidth)
.defaultValue(origParameters.legacyCellFunctionMuscleNoActivityReset)
.tooltip("If activated, the activity in channel #0 is not set to 0 in muscle cells which are in movement mode. Thus the output of this type "
"of muscles can be reused for other muscle cells."),
parameters.legacyCellFunctionMuscleNoActivityReset);
AlienImGui::EndTreeNode();
}
}
Expand Down
6 changes: 0 additions & 6 deletions source/PersisterInterface/AuxiliaryDataParserService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -658,12 +658,6 @@ namespace
defaultParameters.legacyCellFunctionMuscleMovementAngleFromSensor,
"simulation parameters.legacy.cell.function.muscle.movement angle from sensor",
parserTask);
ParameterParser::encodeDecode(
tree,
parameters.legacyCellFunctionMuscleNoActivityReset,
defaultParameters.legacyCellFunctionMuscleNoActivityReset,
"simulation parameters.legacy.cell.function.muscle.no activity reset",
parserTask);

//particle sources
ParameterParser::encodeDecode(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ void LegacyAuxiliaryDataParserService::activateParametersAndFeaturesForLegacyFil
//parameter conversion for v4.10.2 and below
if (programVersion.empty()) {
parameters.features.legacyModes = true;
parameters.legacyCellFunctionMuscleNoActivityReset = true;
}

//*******************
Expand Down

0 comments on commit 6d7e27e

Please sign in to comment.