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
@@ -35,7 +35,7 @@ public sealed class Solver : IDisposable
// Always called when a new step is generated.
public event NewActionDelegate? OnNewAction;
public Solver(SolverConfig config, SimulationState state)
public Solver(in SolverConfig config, in SimulationState state)
{
Config = config;
State = state;