2021-11-28 01:47:36 +01:00
|
|
|
using Content.Shared.CCVar;
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Instruments;
|
|
|
|
|
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed partial class InstrumentSystem
|
2021-11-28 01:47:36 +01:00
|
|
|
{
|
|
|
|
|
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()
|
|
|
|
|
{
|
2024-02-13 22:48:39 +01:00
|
|
|
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);
|
2021-11-28 01:47:36 +01:00
|
|
|
}
|
|
|
|
|
}
|