20 lines
789 B
C#
20 lines
789 B
C#
using Content.Shared.CCVar;
|
|
|
|
namespace Content.Server.Instruments;
|
|
|
|
public sealed partial class InstrumentSystem
|
|
{
|
|
public int MaxMidiEventsPerSecond { get; private set; }
|
|
public int MaxMidiEventsPerBatch { get; private set; }
|
|
public int MaxMidiBatchesDropped { get; private set; }
|
|
public int MaxMidiLaggedBatches { get; private set; }
|
|
|
|
private void InitializeCVars()
|
|
{
|
|
Subs.CVar(_cfg, CCVars.MaxMidiEventsPerSecond, obj => MaxMidiEventsPerSecond = obj, true);
|
|
Subs.CVar(_cfg, CCVars.MaxMidiEventsPerBatch, obj => MaxMidiEventsPerBatch = obj, true);
|
|
Subs.CVar(_cfg, CCVars.MaxMidiBatchesDropped, obj => MaxMidiBatchesDropped = obj, true);
|
|
Subs.CVar(_cfg, CCVars.MaxMidiLaggedBatches, obj => MaxMidiLaggedBatches = obj, true);
|
|
}
|
|
}
|