Table of Contents

Class PerformanceAdvice

Namespace
McServerLauncher.Services
Assembly
McServerLauncher.dll

Turns a verdict into the settings changes worth offering. Pure.

public static class PerformanceAdvice
Inheritance
PerformanceAdvice
Inherited Members

Remarks

Distances first, because they cost nothing and are undone with a number: a simulation distance above 6 goes to 6 (4 when saturated), a view distance above 10 goes to 10 (8 when saturated), and the view distance never ends up below the simulation distance, which would make players see the world frozen before it ends.

More memory only when memory is the cause, or the server ran out of it, and the machine can spare it: 2 GB more, leaving 2 GB of the free memory untouched, never above three quarters of the machine and never above 32 GB (past that Java loses its compressed pointers and gets slower).

Fields

RaiseByMb

public const long RaiseByMb = 2048

Field Value

long

Methods

For(PerformanceStatus, AdviceInputs)

The settings changes to offer, most useful first.

public static IReadOnlyList<Advice> For(PerformanceStatus status, AdviceInputs input)

Parameters

status PerformanceStatus
input AdviceInputs

Returns

IReadOnlyList<Advice>

RaisedCeilingMb(AdviceInputs)

The ceiling after the raise, or null when the machine cannot spare it.

public static long? RaisedCeilingMb(AdviceInputs input)

Parameters

input AdviceInputs

Returns

long?