Skip to content
New issue

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

Stutter in with transform interpolation on #625

Open
vladinator1000 opened this issue Jan 13, 2025 · 1 comment
Open

Stutter in with transform interpolation on #625

vladinator1000 opened this issue Jan 13, 2025 · 1 comment

Comments

@vladinator1000
Copy link

vladinator1000 commented Jan 13, 2025

Hey folks, I think I discovered a potential issue, check out this stuttering:

2025-01-11.14-21-06.mp4

Originally I thought it was caused by the tnua library (idanarye/bevy-tnua#78) but the author said tnua doesn't mutate the transform, and the velocity remains constant. This makes us think that might be an Avian bug.

I followed these steps to reproduce:
Cloned tnua from: https://github.com/idanarye/bevy-tnua

On Windows 11, ran the demo with this command (set the wgpu backend env var to prevent log noise in the terminal):

$env:WGPU_BACKEND="dx12"; cargo run --bin platformer_2d --features avian2d

I've tried to debug, following these docs:

  1. Adding a TransformExtrapolation and TransformInterpolation component to the setup_player function in for_2d_platformer.rs
  2. Changing the physics plugin addition fn main in platformer_2d.rs to
               app.add_plugins(
                    PhysicsPlugins::new(FixedPostUpdate)
                        .set(avian2d::interpolation::PhysicsInterpolationPlugin::interpolate_all()),
                );

But the stutter was still present.

Possibly related links:

@idanarye
Copy link

Hypothesis: maybe it's the debug render who stutters?

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

No branches or pull requests

2 participants