Lua: FPS example
This commit is contained in:
parent
53508e2ec6
commit
5fbb29f613
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user