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

Changing camera position and rotation causing vibration/stuttering #293

Open
kajumito opened this issue Oct 27, 2021 · 5 comments
Open

Changing camera position and rotation causing vibration/stuttering #293

kajumito opened this issue Oct 27, 2021 · 5 comments

Comments

@kajumito
Copy link

When changing camera position, and rotation same time I'm getting weird vibration / stuttering in objects around.

This started happening after I updated packages. I did some debugging, and found out that updating use-cannon from v0.5.4 -> v0.5.5 causes this issue or atleast made it more visible. Also after this update velocity to useSphere changes, and movement is lot slower.

Smoother with old packages (first part of the video): https://codesandbox.io/s/minecraft-old-packages-forked-fv5wm
Stuttering with updated packages (latter part of the video): https://codesandbox.io/s/minecraft-new-packages-b5efn

Screen.Recording.2021-10-26.at.20.48.02.mov

After some testing I saw that there is small stuttering on older packages aswell, but it's lot harder to spot.

@bjornstar
Copy link
Member

v0.5 is very old, any chance you could try a modern version?

@kajumito
Copy link
Author

kajumito commented Oct 27, 2021

It's happening on all versions v0.5.5 onwards.. It was just the point where change happened that causes this bug. I just wanted to point out the specific version where this bug originates from based on my debugging.

@kajumito
Copy link
Author

So I guess this specific PR #160, not sure tho!

@bjornstar
Copy link
Member

It's not noticeable to me while using a trackpad on either a high-spec or a low-spec laptop. It's possible that if I were using a mouse it might feel worse.

Another possibility is the highlighting causing some hiccups, is it better without that?

@kajumito
Copy link
Author

kajumito commented Nov 8, 2021

Hmm, it's even worse with trackpad for me.. Bug is not specific to this scene. Hard to say why it's not visible for you :S

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