practice/lua/fps/main.lua
2017-09-27 19:12:13 -07:00

12 lines
138 B
Lua

fps = 0
time = os.time()
while true do
if os.time() - time > 1 then
print (fps)
fps = 0
time = os.time()
end
fps = fps + 1
end