Change Tmax for fixed floating point epsilon limit (#24370)

This is the largest number that an epsilon of 1/64 = 0.015625K supports
This commit is contained in:
router
2024-01-22 01:33:06 +03:00
committed by GitHub
parent 8f73e181dc
commit 4bb670a59c

View File

@@ -52,7 +52,7 @@ namespace Content.Shared.Atmos
/// calculations and so cap it here. The physical interpretation is that at this temperature, any
/// gas that you would have transforms into plasma.
/// </summary>
public const float Tmax = 200e3f;
public const float Tmax = 262144; // 1/64 of max safe integer, any values above will result in a ~0.03K epsilon
/// <summary>
/// Liters in a cell.