--[[runservice.RenderStepped:Connect(function(dt : number)
	local frame = 1/dt
	local ratio = frame/64
	print(ratio)
end)]]


runservice.RenderStepped:Connect(function(dt : number)
	if not bool then
		bool = true
		local ct = os.clock()
		local frame = 1/dt
		local ratio = frame/64
		task.wa(0.1 * ratio)
		avgerror = (0.1 - (avgerror + (os.clock() - ct)))/2
		bool = false
	end
end)

task.spawn(function()
	while task.wait(1) do
		print("Average error is "..tostring(avgerror * 100).."%")
	end
end)
