Skip to content

Improve frame interpolation#4919

Open
jwt27 wants to merge 21 commits into
dkfans:masterfrom
jwt27:lerp
Open

Improve frame interpolation#4919
jwt27 wants to merge 21 commits into
dkfans:masterfrom
jwt27:lerp

Conversation

@jwt27

@jwt27 jwt27 commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

The frame interpolation method used is non-linear and includes some future-prediction, which causes overshoots. #4908 works around the visual effect, but I believe it is better to use a purely linear method instead.

This did uncover some new bugs, where the previous-frame position was reset too early. Those have been fixed now.

I removed the minimap interpolation code, as it was not necessary. Both the (local) camera and all Things already have interpolated map positions, there is no need to do it twice.

@jwt27 jwt27 changed the title Use linear frame interpolation Improve frame interpolation Jun 14, 2026
@jwt27 jwt27 marked this pull request as ready for review June 16, 2026 17:50
@jwt27 jwt27 marked this pull request as draft June 16, 2026 18:03
@jwt27 jwt27 marked this pull request as ready for review June 16, 2026 18:03
@Loobinex Loobinex requested a review from rainlizard June 16, 2026 18:44
@jwt27 jwt27 marked this pull request as draft June 16, 2026 18:54
@jwt27 jwt27 marked this pull request as ready for review June 16, 2026 18:54
@jwt27 jwt27 marked this pull request as draft June 16, 2026 21:32
@jwt27 jwt27 marked this pull request as ready for review June 16, 2026 21:33
@jwt27 jwt27 marked this pull request as draft June 20, 2026 13:02
@jwt27 jwt27 marked this pull request as ready for review June 20, 2026 13:02
Makes the mouse light a little less flickery.
@jwt27 jwt27 marked this pull request as draft June 21, 2026 01:06
@jwt27 jwt27 marked this pull request as ready for review June 22, 2026 15:48
Clean up this function and match logic with get_player_coords_and_context()
in front_input.c.

Fixes local mouse light glitching when:
- something is held in hand, and there is something under it to pick up
- pointing just above/behind a door (DoorKey cursor state)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant