practice/lua/fps/main.lua

12 lines
138 B
Lua
Raw Normal View History

2017-09-25 05:18:21 -07:00
fps = 0
time = os.time()
while true do
if os.time() - time > 1 then
print (fps)
2017-09-27 19:12:13 -07:00
fps = 0
time = os.time()
2017-09-25 05:18:21 -07:00
end
fps = fps + 1
end