Skip to content

Add staggered interpolation option - #7553

Draft
msmfai wants to merge 1 commit into
HarbourMasters:developfrom
msmfai:staggered-rounding
Draft

msmfai wants to merge 1 commit into
HarbourMasters:developfrom
msmfai:staggered-rounding

Conversation

@msmfai

@msmfai msmfai commented Nov 24, 2026 •

Copy link
Copy Markdown

Adds a Staggered Interpolation option that changes how interpolated frames are spaced above 20 FPS. Today the in-between frames are spread evenly between the game's 20 Hz poses; with this on, they're remapped by a symmetric ease so the picture lingers near the real poses and moves quickly through the middle of each tick (at 60 FPS with the default 50% strength that's 0, 1/6, 5/6, 1 instead of 0, 1/3, 2/3, 1), which keeps more of the original's weight while still drawing a new frame every refresh.

Under Advanced Graphics Options made available when you turn it on - you can adjust the strength and turn the effect on or off separately for rotations, translations, model poses, object movement and the camera. By default it applies only to rotations and model poses, so movement through the world and the camera stay smooth.

This applies to both actor poses and object transforms, to capture things like the spin attack. I've found it improves my experience, so I wanted to make it available to others.

The intent of this option is that, from my testing, it noticeably looks like a higher frame rate while still looking like the original game in terms of pose holds. Open to discussing this further.

Build Artifacts

@msmfai

msmfai commented Nov 24, 2026 •

Copy link
Copy Markdown
Author
staggered-interpolation

This is fairly experimental and hard to communicate without just showing gameplay so open to discuss this in more detail. This emerged from trying to balance the eye getting new information 60 times a second while retaining the "animated on twos" look of the original game and hedges interpolating the sample counts are low.

@msmfai msmfai changed the title Add staggered rounding option for frame interpolation Add staggered interpolation option Nov 24, 2026
@Jepvid

Jepvid commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

This emerged from trying to balance the eye getting new information 60 times a second while retaining the "animated on twos" look of the original game and hedges interpolating the sample counts are low.

Just wanna clarify. there is no animated on twos in oot. animations are keyed at 30 fps but almost every animation is played in 20 fps. No clue why they did that but it is what it is

@msmfai

msmfai commented Nov 24, 2026

Copy link
Copy Markdown
Author

The monsters too? When I looked at the data it just seemed to be Link who does that. Am I incorrect?

Above 20 FPS, the in-between frames are currently spaced evenly between
the game's 20 Hz poses. Staggered interpolation remaps the step with a
symmetric ease so displayed frames linger near the real poses and move
quickly through the middle of each tick (0, 1/6, 5/6, 1 at 60 FPS and
the default 50% strength).

When enabled, sub-options set the strength and choose which parts it
applies to: rotations, translations, model poses (matrices relative to
an actor), object movement, and the camera. By default it applies to
rotations and model poses only.
@msmfai
msmfai force-pushed the staggered-rounding branch from 06eb333 to 8cb9bb9 Compare November 24, 2026 21:37
@msmfai
msmfai marked this pull request as ready for review November 24, 2026 21:37
@horrible

Copy link
Copy Markdown

this seems pretty experimental? have you done any testing on it or been able to identify the differences between this "staggered" interpolation and the default?

i'm also not sure what the difference would be between this and the #7552 version in practice.

@msmfai

msmfai commented Nov 24, 2026 •

Copy link
Copy Markdown
Author

I played through the child link section of the game with this turned on and found I preferred it to having it turned off and received fairly positive feedback from some people I've shown it to who agreed it lacked an uncanny smoothness quality that prevented them from raising the frame rate. It's trying to achieve the intuitively contradictory task of preserving the time spent on individual poses at 20hz while also showing a new pose each frame so it still reads as high frame rate.

I agree it's experimental - apologies if this is not the correct forum - I thought just providing the code was the easiest way to propose it. I definitely didn't expect this to be added without discussion.

7552 was put up by mistake by Claude mistaking an instruction to prepare this for PR and making it conform to your coding standards with actually autonomously doing the PR. Sorry about that, it should be deleted!

@serprex
serprex marked this pull request as draft November 25, 2026 04:55
@serprex

serprex commented Nov 25, 2026

Copy link
Copy Markdown
Member

I get what you're trying to do, but imo people should just play with 20fps if they find 60fps uncanny

@msmfai

msmfai commented Nov 25, 2026 •

Copy link
Copy Markdown
Author

What is it about offering an intermediate approach as an option that you feel is less desirable than people simply playing at 20fps?

Some aspects of achieving higher frame rates through interpolation can alter the aesthetic qualities of the original game, particularly its animations. Since the animation data is baked, the original authoring curves are no longer available, and interpolated poses are necessarily approximations rather than reconstructions of the original authored motion.

Other aspects, such as smoother camera movement, contribute to the sense of responsiveness without necessarily compromising the original animation aesthetic. The idea is to give players the option to retain the benefits of the latter while mitigating the effects of the former.

I'm not quite sure what you mean by "should just" in this context.

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.

4 participants