Decrease delta time error threshold.

This commit is contained in:
Skyth 2024-12-22 15:03:22 +03:00
parent b3b14b4154
commit a17aa054dc

View file

@ -42,7 +42,7 @@ PPC_FUNC(sub_822C1130)
if (Config::FPS >= 15 && Config::FPS < 240) if (Config::FPS >= 15 && Config::FPS < 240)
{ {
double targetDeltaTime = 1.0 / Config::FPS; double targetDeltaTime = 1.0 / Config::FPS;
if (abs(ctx.f1.f64 - targetDeltaTime) < 0.001) if (abs(ctx.f1.f64 - targetDeltaTime) < 0.00001)
ctx.f1.f64 = targetDeltaTime; ctx.f1.f64 = targetDeltaTime;
} }