Skip to content

jak1/2/3: fix high fps slowdown - #4302

Open
gratefulforest wants to merge 6 commits into
open-goal:masterfrom
gratefulforest:fps-ratio
Open

jak1/2/3: fix high fps slowdown#4302
gratefulforest wants to merge 6 commits into
open-goal:masterfrom
gratefulforest:fps-ratio

Conversation

@gratefulforest

@gratefulforest gratefulforest commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

DISPLAY_FPS_RATIO shrinks values relative to the higher rate of operations when the framerate is higher.

However, currently it always applies the limit needed for the full framerate, even when the game is not running at full speed.

During slowdown, this causes a slower speed for anything adjusted by DISPLAY_FPS_RATIO, compared to everything else in the game.

This small fix incorperates slowdown into DISPLAY_FPS_RATIO, syncing the speeds of everything during slowdown and eliminating the strange speedups/slowdowns of things when the game lags.

Tested at various framerates in Jak 1/2/3.

This also has the positive side effect of correctly boosting values during slowdown at regular 60 FPS.

@OpenGOALBot

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@gratefulforest

Copy link
Copy Markdown
Contributor Author

Oh, there's one small issue here. Since DISPLAY_FPS_RATIO can go above 1.0 when lagging at 60 FPS, usually this is helpful, but when lerping, it can pass it's target if a lerp step ends up above 1.0. I just need to clamp lerps that are scaled by DISPLAY_FPS_RATIO to min 1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants