Add atmos time compression (#21954)
Add atmos.speedup which is effectively a atmos-only time compression CVar. This adjusts heat capacities and transfer rates to effectively globally speed up the time constants of atmos. This allows faster response to heating/cooling changes and faster cleanups (by buffing scrubbers, pumps, and everything else) that is tunable through one global time compression CVar. It also achieves this without any thermodynamic unsoundness.
This commit is contained in:
@@ -1044,6 +1044,15 @@ namespace Content.Shared.CCVar
|
||||
public static readonly CVarDef<float> AtmosTickRate =
|
||||
CVarDef.Create("atmos.tickrate", 15f, CVar.SERVERONLY);
|
||||
|
||||
/// <summary>
|
||||
/// Scale factor for how fast things happen in our atmosphere
|
||||
/// simulation compared to real life. 1x means that a room takes as
|
||||
/// long to heat up in game as real life. Players typically expect
|
||||
/// things to happen faster in-game.
|
||||
/// </summary>
|
||||
public static readonly CVarDef<float> AtmosSpeedup =
|
||||
CVarDef.Create("atmos.speedup", 64f, CVar.SERVERONLY);
|
||||
|
||||
/*
|
||||
* MIDI instruments
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user