Skip to content

Commit

Permalink
Remove useless ccvar
Browse files Browse the repository at this point in the history
  • Loading branch information
Fansana authored Dec 14, 2024
1 parent a0e6fcb commit 626231a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Content.Server/Power/Pow3r/BatteryRampPegSolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ public sealed class BatteryRampPegSolver : IPowerSolver
private UpdateNetworkJob _networkJob;
private bool _disableParallel;

public BatteryRampPegSolver(bool disableParallel = false)
public BatteryRampPegSolver()
{
_disableParallel = disableParallel;
_networkJob = new()
{
Solver = this,
Expand Down Expand Up @@ -56,10 +55,7 @@ public void Tick(float frameTime, PowerState state, IParallelManager parallel)
// suppliers + discharger) Then decide based on total layer size whether its worth parallelizing that
// layer?
_networkJob.Networks = group;
if (_disableParallel)
parallel.ProcessSerialNow(_networkJob, group.Count);
else
parallel.ProcessNow(_networkJob, group.Count);
parallel.ProcessSerialNow(_networkJob, group.Count);
}

ClearBatteries(state);
Expand Down

0 comments on commit 626231a

Please sign in to comment.