diff --git a/lua/fps/main.lua b/lua/fps/main.lua index e2fef89..31824d1 100644 --- a/lua/fps/main.lua +++ b/lua/fps/main.lua @@ -3,7 +3,8 @@ time = os.time() while true do if os.time() - time > 1 then print (fps) - break + fps = 0 + time = os.time() end fps = fps + 1