From 8c71bcf7c88aeba2204c1bd8fc6f92a4a3c1473c Mon Sep 17 00:00:00 2001 From: Christian Heinemann Date: Sun, 24 Nov 2024 07:25:34 +0100 Subject: [PATCH] offset initial connection distance corrected --- source/EngineGpuKernels/ConstructorProcessor.cuh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/EngineGpuKernels/ConstructorProcessor.cuh b/source/EngineGpuKernels/ConstructorProcessor.cuh index ee33df506..1c356b044 100644 --- a/source/EngineGpuKernels/ConstructorProcessor.cuh +++ b/source/EngineGpuKernels/ConstructorProcessor.cuh @@ -379,7 +379,7 @@ ConstructorProcessor::startNewConstruction(SimulationData& data, SimulationStati if (!constructionData.isLastNodeOfLastRepetition || !constructionData.genomeHeader.separateConstruction) { auto distance = constructionData.isLastNodeOfLastRepetition && !constructionData.genomeHeader.separateConstruction ? constructionData.genomeHeader.connectionDistance - : constructionData.genomeHeader.connectionDistance + 0.6f; + : constructionData.genomeHeader.connectionDistance + 0.8f; if(!CellConnectionProcessor::tryAddConnections(data, hostCell, newCell, anglesForNewConnection.referenceAngle, 0, distance)) { CellConnectionProcessor::scheduleDeleteCell(data, cellPointerIndex); } @@ -486,7 +486,7 @@ __inline__ __device__ Cell* ConstructorProcessor::continueConstruction( //move connection between lastConstructionCell and hostCell to a connection between newCell and hostCell auto distance = constructionData.isLastNodeOfLastRepetition && !constructionData.genomeHeader.separateConstruction ? constructionData.genomeHeader.connectionDistance - : constructionData.genomeHeader.connectionDistance + 0.6f; + : constructionData.genomeHeader.connectionDistance + 0.8f; for (int i = 0; i < hostCell->numConnections; ++i) { auto& connectedCell = hostCell->connections[i]; if (connectedCell.cell == constructionData.lastConstructionCell) {