bonsairobo / smooth-bevy-cameras

Bevy camera controllers with buttery, exponential smoothing.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Movement/Turning speed affected by frame rate

laundmo opened this issue · comments

commented

Movement/Turning (at least using the FPS camera) is heavily dependent on Framerate:

Pay attention to the FPS counter in the video, and how it correlates with the camera movement and movement speed.

2022-09-19.21-57-01.mp4

(video from an example of testing large particle systems, which is why the angle is so weird as to not kill the video compression by looking at 500K particles.)

Makes sense. I don't think there is any use of delta time in the controller code. Probably easy to fix.

Fixed by ca1e628

commented

sorry, i'm only now getting back to this: after this commit all speeds are a lot slower, and now a lower frame rate causes faster movement.

I think it struggles with really high framerates because of the way smoothing works - its also framerate dependent.

@laundmo speed slowdown is expected because the units of speed/sensitivity have changed

Input should not be framerate dependent anymore, can you provide a specific example?