| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| Expand Up | @@ -1136,7 +1136,7 @@ public enum InterpolationTypes | |
| /// Uses a 1 to 2 phase interpolation approach where:<br /> | ||
| /// <list type="bullet"> | ||
| /// <item><description>The first phase lerps from the previous state update value to the next state update value.</description></item> | ||
| /// <item><description>The second phase (optional) performs lerp smoothing where the current respective transform value is lerped towards the result of the first phase at a rate of 1.0 minus the respective maximum interpolation time.</description></item> | ||
| /// <item><description>The second phase (optional) performs lerp smoothing where the current respective transform value is lerped towards the result of the first phase at a frame rate independent rate determined by the respective maximum interpolation time.</description></item> | ||
| /// </list> | ||
| /// </summary> | ||
| /// <remarks> | ||
| Expand All | @@ -1156,7 +1156,7 @@ public enum InterpolationTypes | |
| /// Uses a 1 to 2 phase smooth dampening approach where:<br /> | ||
| /// <list type="bullet"> | ||
| /// <item><description>The first phase smooth dampens towards the current tick state update being processed by the accumulated delta time relative to the time to target.</description></item> | ||
| /// <item><description>The second phase (optional) performs lerp smoothing where the current respective transform value is lerped towards the result of the first phase at a rate of delta time divided by the respective max interpolation time.</description></item> | ||
| /// <item><description>The second phase (optional) performs lerp smoothing where the current respective transform value is lerped towards the result of the first phase at a frame rate independent rate determined by the respective maximum interpolation time.</description></item> | ||
| /// </list> | ||
| /// </summary> | ||
| /// <remarks> | ||
| Expand Down Expand Up | @@ -1236,7 +1236,10 @@ public enum InterpolationTypes | |
| /// Controls position interpolation smoothing. | ||
| /// </summary> | ||
| /// <remarks> | ||
| /// When enabled, the <see cref="BufferedLinearInterpolator{T}"/> will apply a final lerping pass where the "t" parameter is calculated by dividing the frame time divided by the <see cref="PositionMaxInterpolationTime"/>. | ||
| /// When enabled, the <see cref="BufferedLinearInterpolator{T}"/> will apply a final lerping pass towards | ||
| /// the interpolated result at a rate determined by <see cref="PositionMaxInterpolationTime"/>.<br /> | ||
| /// This is frame rate independent for all <see cref="InterpolationTypes"/>, but the same value will not | ||
|
Comment thread
Copy link
Copy Markdown
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityLegacyLerp is not frame-rate independent: its smoothing path still applies deltaTime / MaximumInterpolationTime each update. With a fixed target and MaximumInterpolationTime = 0.9, one second leaves (1 - 1/27)^30 of the delta at 30 fps versus (1 - 1/216)^240 at 240 fps. Restrict this statement to Lerp and SmoothDampening (the same incorrect statement is repeated for rotation and scale), unless legacy smoothing is also changed. 🤖 Helpful? 👍/👎
Sorry, something went wrong.
All reactions
|
||
| /// produce the same result under <see cref="InterpolationTypes.LegacyLerp"/> as it does under the others. | ||
| /// </remarks> | ||
| public bool PositionLerpSmoothing = true; | ||
| private bool m_PreviousPositionLerpSmoothing; | ||
| Expand All | @@ -1257,7 +1260,10 @@ public enum InterpolationTypes | |
| /// Controls rotation interpolation smoothing. | ||
| /// </summary> | ||
| /// <remarks> | ||
| /// When enabled, the <see cref="BufferedLinearInterpolator{T}"/> will apply a final lerping pass where the "t" parameter is calculated by dividing the frame time divided by the <see cref="RotationMaxInterpolationTime"/>. | ||
| /// When enabled, the <see cref="BufferedLinearInterpolator{T}"/> will apply a final lerping pass towards | ||
| /// the interpolated result at a rate determined by <see cref="RotationMaxInterpolationTime"/>.<br /> | ||
| /// This is frame rate independent for all <see cref="InterpolationTypes"/>, but the same value will not | ||
| /// produce the same result under <see cref="InterpolationTypes.LegacyLerp"/> as it does under the others. | ||
| /// </remarks> | ||
| public bool RotationLerpSmoothing = true; | ||
| private bool m_PreviousRotationLerpSmoothing; | ||
| Expand All | @@ -1278,7 +1284,10 @@ public enum InterpolationTypes | |
| /// Controls scale interpolation smoothing. | ||
| /// </summary> | ||
| /// <remarks> | ||
| /// When enabled, the <see cref="BufferedLinearInterpolator{T}"/> will apply a final lerping pass where the "t" parameter is calculated by dividing the frame time divided by the <see cref="ScaleMaxInterpolationTime"/>. | ||
| /// When enabled, the <see cref="BufferedLinearInterpolator{T}"/> will apply a final lerping pass towards | ||
| /// the interpolated result at a rate determined by <see cref="ScaleMaxInterpolationTime"/>.<br /> | ||
| /// This is frame rate independent for all <see cref="InterpolationTypes"/>, but the same value will not | ||
| /// produce the same result under <see cref="InterpolationTypes.LegacyLerp"/> as it does under the others. | ||
| /// </remarks> | ||
| public bool ScaleLerpSmoothing = true; | ||
| private bool m_PreviousScaleLerpSmoothing; | ||
| Expand Down | ||
| Back | FazBrowse Home | New Git URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityThis caps every legal value in (0.99, 1.0], not just the freezing endpoint. For example, a Lerp/SmoothDampening transform configured with MaximumInterpolationTime = 0.995f now uses the same t as 0.99f (at 60 fps, 0.01 rather than 0.005), so it becomes twice as responsive and no longer honors the documented “higher is smoother” setting. Clamp to 1.0f first and special-case only the exact 1.0f endpoint (or otherwise preserve values below it).
🤖 Helpful? 👍/👎
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.