I would’ve put this in Bug Reports but I’m not sure whether it is a bug or not.
But recently, while testing my ball game I noticed on occasion that the ball would lag to the point where it’s almost unplayable, however this only occurs sometimes. I tried on a different place and the same issue occurs.
Here’s a video:
Notice how it stutters (it’s not a part of the video)
I update the VectorForce in a :BindToRenderStep, I tried switching it for Heartbeat, same issue occurred.
So that’s why I’m considering that maybe VectorForce is broken?
This issue never occurred before, the place in the video is a brand-new place without any of the extra additions I made in the main place.
Are you putting the forces on the ball on the Server or client? Keep in mind that all roblox physics when the network ownership is set to a network owner (i.e player) replicates to the server so you should NOT enact any physics on the server but instead on the client.
I found out that Raycasting every RenderStep causes lag, which is confusing because it never happened before, but I reduced the effect by only Raycasting every 0.05 seconds.