RenderStepped returns fps somewhat, can I use it to display fps? like this.
game:GetService("RunService").RenderStepped:Connect(function(FPS)
print("Your FPS: "..FPS)
end)
RenderStepped returns fps somewhat, can I use it to display fps? like this.
game:GetService("RunService").RenderStepped:Connect(function(FPS)
print("Your FPS: "..FPS)
end)
It returns the frametime, which is the period. To convert period to frequency (framerate), you take the reciprocal of it.
game:GetService("RunService").RenderStepped:Connect(function(dt)
print("Your FPS: "..(1/dt))
end)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.