Pass large structs byref instead

This commit is contained in:
Asriel Camora
2023-11-10 18:41:58 -08:00
parent 3edb156d97
commit 036cbb2fb4
9 changed files with 21 additions and 27 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ internal sealed class Simulator : SimulatorNoRandom
}
}
public Simulator(SimulationState state, int maxStepCount) : base(state)
public Simulator(in SimulationState state, int maxStepCount) : base(state)
{
this.maxStepCount = maxStepCount;
}