CVars for MIDI instrument limits (#2632)
* CVars for MIDI instruments limits! * Localize this * Cache CVars in instrument systems * better naming Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
This commit is contained in:
committed by
GitHub
parent
6bb1e9fa5d
commit
cec722e19e
@@ -182,6 +182,22 @@ namespace Content.Shared
|
||||
public static readonly CVarDef<bool> ExcitedGroupsSpaceIsAllConsuming =
|
||||
CVarDef.Create("atmos.excited_groups_space_is_all_consuming", false, CVar.SERVERONLY);
|
||||
|
||||
/*
|
||||
* MIDI instruments
|
||||
*/
|
||||
|
||||
public static readonly CVarDef<int> MaxMidiEventsPerSecond =
|
||||
CVarDef.Create("midi.max_events_per_second", 1000, CVar.REPLICATED | CVar.SERVER);
|
||||
|
||||
public static readonly CVarDef<int> MaxMidiEventsPerBatch =
|
||||
CVarDef.Create("midi.max_events_per_batch", 60, CVar.REPLICATED | CVar.SERVER);
|
||||
|
||||
public static readonly CVarDef<int> MaxMidiBatchesDropped =
|
||||
CVarDef.Create("midi.max_batches_dropped", 1, CVar.SERVERONLY);
|
||||
|
||||
public static readonly CVarDef<int> MaxMidiLaggedBatches =
|
||||
CVarDef.Create("midi.max_lagged_batches", 8, CVar.SERVERONLY);
|
||||
|
||||
/*
|
||||
* Branding stuff
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user