Scripting | FPS Log

local CurrentFps, PastFps, PastPastFps 
function getFps()

return (1/game:GetService("RunService").RenderStepped:Wait())

end

repeat
PastPastFps = PastFps
PastFps = CurrentFps
CurrentFps = getFps()
task.wait(0.1)
if PastPastFps ~= nil then
print("Current: "..CurrentFps.." Past: "..PastFps.." PastPast: "..PastPastFps)
end
until false
1 Like