High framerate causes swimming physics to enter hyperdrive

Uncapping framerate above 60 causes the swimming physics to become increasingly sensitive, resulting in an unplayable experience in many cases. This bug is most apparent when setting the humanoid state, but still occurs in terrain water to a far lesser extent.

Repro steps:

  1. Create a baseplate.
  2. Set framerate cap to 240.
  3. Run the provided code in command bar.
  4. Hold W and Spacebar.
local humanoid = game:GetService("Players").LocalPlayer.Character.Humanoid
humanoid:SetStateEnabled(Enum.HumanoidStateType.Running, false)
humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, false)
humanoid:SetStateEnabled(Enum.HumanoidStateType.Freefall, false)
humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp, false)
humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, false)
humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown, false)

humanoid:ChangeState(Enum.HumanoidStateType.Swimming)
8 Likes

Hi, thanks for reporting this! The physics team is looking into why this is happening, we should have an update soon.

2 Likes

How soon is “soon” ? I can still reproduce the bug on my end…

We’ve determined the source of the bug, we’re currently working on a fix.

The issue seems to be fixed now. I can’t reproduce it anymore.

1 Like

That’s odd, the issue is definitely not fixed for me. Are you sure you were actively at 240 fps? I am using the latest available version of Studio.

1 Like

Okay, so I have tried it now and was able to reproduce it somehow again…

It’s not fixed @eronaught :slightly_frowning_face:

Gotcha, thanks for the update!

When can we expect this issue to be fixed? I’ve just tested it now and it’s still occuring unfortunately…

Sorry to bump… But I believe my current issue may be somewhat related to this problem.
Framerate appears to affect the upward speed of swimming? - Help and Feedback / Scripting Support - Developer Forum | Roblox

1 Like