opened 06:58PM - 26 Apr 22 UTC
intermediate
programming
bug
C#
stage:microbe
probably caused by the approach of starting at 0,0 coordinates and spiraling out…wards until an empty spot is found. That probably starts running quite long when the cell is very large in radius.
I think we have two choices to fix this:
- Have the algorithm remember where it last placed an organelle and look for free spots nearby to cut down on the attempts it needs before finding a spot
- Run the search in a background task (TaskExecutor) and then place the duplicate organelle once the task is complete and it has found a suitable position