You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trace.TraceInformation($"Advanced adhesion model switched to low precision permanently after low frame rate {screenFrameRate:F1} below limit {1/UpperLimitS:F0}");
1136
-
PrecisionLevel=AdhesionPrecisionLevel.Low;
1137
-
}
1142
+
Trace.TraceInformation($"At {gameTime:F0} secs, advanced adhesion model switched to low precision permanently after {timeSincePreviousDowngradeS:F0} secs since previous switch (less than limit of {IntervalBetweenDowngradesLimitS})");
1143
+
PrecisionLevel=AdhesionPrecisionLevel.LowLocked;
1138
1144
}
1139
-
break;
1145
+
else
1146
+
{
1147
+
TimeOfLatestDowngrade=gameTime;
1148
+
1149
+
Trace.TraceInformation($"At {gameTime:F0} secs, advanced adhesion model switched to low precision after low frame rate {screenFrameRate:F1} below limit {1/UpperLimitS:F0}");
1150
+
PrecisionLevel=AdhesionPrecisionLevel.Low;
1151
+
1152
+
}
1153
+
}
1154
+
break;
1155
+
1156
+
caseAdhesionPrecisionLevel.Low:
1157
+
if(elapsedSeconds>0// When debugging step by step, elapsedSeconds == 0, so test for that
1158
+
&&elapsedSeconds<LowerLimitS)
1159
+
{
1160
+
PrecisionLevel=AdhesionPrecisionLevel.High;
1161
+
varScreenFrameRate=1/elapsedSeconds;
1162
+
Trace.TraceInformation($"At {gameTime:F0} secs, advanced adhesion model switched to high precision after high frame rate {ScreenFrameRate:F1} above limit {1/LowerLimitS:F0}");
0 commit comments