]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Change Tmax for fixed floating point epsilon limit (#24370)
authorrouter <messagebus@vk.com>
Sun, 21 Jan 2024 22:33:06 +0000 (01:33 +0300)
committerGitHub <noreply@github.com>
Sun, 21 Jan 2024 22:33:06 +0000 (16:33 -0600)
This is the largest number that an epsilon of 1/64 = 0.015625K supports

Content.Shared/Atmos/Atmospherics.cs

index 0f330d9dcf4e38be10e0c3b8914994ff6043f6ad..7460e08e46ff07633c93b66e4d79c22a4bcdcab7 100644 (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.