Class NetcodeOptions
- Namespace
- Backdash
- Assembly
- Backdash.dll
Configurations for sessions.
public sealed class NetcodeOptions
- Inheritance
-
NetcodeOptions
- Inherited Members
Constructors
NetcodeOptions()
public NetcodeOptions()
Properties
FrameDelay
Amount of frames to delay for local input
public int FrameDelay { get; init; }
Property Value
- int
Defaults to
2
FramesPerSecond
Base FPS used to estimate fairness (frame advantage) over peers.
public short FramesPerSecond { get; init; }
Property Value
InputQueueLength
Max length for player input queues.
public int InputQueueLength { get; init; }
Property Value
- int
Defaults to
128
Log
Logging options. LogOptions
public LogOptions Log { get; init; }
Property Value
PredictionFrames
Max allowed prediction frames.
public int PredictionFrames { get; init; }
Property Value
- int
Defaults to
16
- See Also
PredictionFramesOffset
Value to be incremented on PredictionFrames in state store Initialize(int)
public int PredictionFramesOffset { get; init; }
Property Value
- int
Defaults to
2
- See Also
Protocol
Networking Protocol options. ProtocolOptions
public ProtocolOptions Protocol { get; init; }
Property Value
RecommendationInterval
Interval for time synchronization notifications.
public int RecommendationInterval { get; init; }
Property Value
- int
Defaults to
240
milliseconds
- See Also
SpectatorInputBufferLength
Max length for spectators input queues.
public int SpectatorInputBufferLength { get; init; }
Property Value
- int
Defaults to
128
SpectatorOffset
Offset to be incremented to spectators Number when added to session.
public int SpectatorOffset { get; init; }
Property Value
- int
Defaults to
1000
- See Also
StateSizeHint
Size hint in bytes for state serialization pre-allocation
public int StateSizeHint { get; init; }
Property Value
- int
Defaults to
128
TimeSync
Time synchronization options. TimeSyncOptions
public TimeSyncOptions TimeSync { get; init; }
Property Value
UseIPv6
Config UdpSocket to use IPv6.
public bool UseIPv6 { get; init; }
Property Value
UseInputSeedForRandom
Enabled input base seed for deterministic random
public bool UseInputSeedForRandom { get; init; }
Property Value
UseNetworkEndianness
Forces serialization byte order to network order BigEndian.
public bool UseNetworkEndianness { get; init; }
Property Value
- See Also