Sway Super Low On High FPS

I am having an issue where if the game is running at a framerate higher than 60FPS the ViewModel sway becomes super low and almost unnoticeable.

I have tried many solutions but all of those solutions broke the sway completely. I know that the issue relates to delta time in some sort of way.

Notes:

  • I am using the FE gun kit spring
  • I am using Mouse Delta to set spring’s target
local SwingSpring = Spring.spring.new(Vector2.new())
SwingSpring.s = Settings.SwingSpeed
SwingSpring.d = Settings.SwingDamper

--RenderStepped--
SwingSpring.t = Vector2.new(math.clamp(MouseDelta.x/Settings.SwingDeltaDamper.X, -Settings.SwingLimit.X, Settings.SwingLimit.X), math.clamp(MouseDelta.Y/Settings.SwingDeltaDamper.Y, -Settings.SwingLimit.Y, Settings.SwingLimit.Y))
SwingCF = CFrame.Angles(SwingSpring.p.Y,SwingSpring.p.X,SwingSpring.p.X / 3.25)

RenderStepped passes deltaTime as an argument.
You can use this value to increase the sway power for shorter frames.

Yes, I know this obviously but I am asking for help with how I would handle implementation. I am not asking for a super simple 2 sentence response.

Which version of the spring module are you using? I have a similar system and I don’t encounter this issue.

1 Like

I am using the same spring module as FE gun kit (Note: I use an FPS unlocker)

Yeah, I’m using that one as well, but a Vector3 instead of Vector2. Are you using any lerp after using the spring?

1 Like

No if you look at the code I am not using lerp.