8009c636-e61f-43be-87c4-4f969b7eeee5
1 Like
Delta time is a parameter of heartbeat:
game:GetService("RunService").Heartbeat:connect(function(deltaTime)
To get the average framerate (closest to 1), do deltaTime * 60
or deltaTime * 70
.
Then, divide your blur amount by this number.
1 Like
As the previous reply suggested you just need to incorporate the implicit ‘deltaTime’ parameter into your calculation(s).
1 Like
Replace the heartbeat line with the one I provided. Now you have deltaTime
as a variable you can use in the local function.
Set the variable manually. You should use the numbers I provided.
Implement it when setting the blur size
local magnitude = (Camera.CFrame.lookVector - Last).Magnitude --Magnitude can NEVER be negative to begin with
Blur.Size = BlurAmount / (deltaTime * 60)
1 Like