Add high frame rate fixes for 2D splines & down force.

This commit is contained in:
Skyth
2024-10-18 15:40:07 +03:00
parent e899f32f0e
commit d29dd06dce
2 changed files with 58 additions and 1 deletions
+10
View File
@@ -162,4 +162,14 @@ PPC_FUNC(sub_825197C0)
__imp__sub_825197C0(ctx, base);
}
void HighFrameRateDeltaTimeFixMidAsmHook(PPCRegister& f1)
{
// Having 60 FPS threshold ensures we still retain
// the original game behavior when locked to 30/60 FPS.
constexpr double threshold = 1.0 / 60.0;
if (f1.f64 < threshold)
f1.f64 = threshold;
}
#pragma endregion