Pass large structs byref instead
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user