Reduced physics maxstep to 16

This commit is contained in:
Antoine Pilote
2023-07-17 02:46:35 -04:00
parent 830c5fddf4
commit 6433518a25

View File

@@ -420,7 +420,7 @@ namespace Nuake
// Do 1 collision step per 1 / 60th of a second (round up).
int collisionSteps = 1;
constexpr float minStepDuration = 1.0f / 90.0f;
constexpr int maxStepCount = 32;
constexpr int maxStepCount = 16;
if(ts > minStepDuration)
{
collisionSteps = static_cast<float>(ts) / minStepDuration;