This website requires JavaScript.
Explore
Help
Sign In
logenkain
/
practice
Watch
1
Star
0
Fork
0
You've already forked practice
Code
Issues
Pull Requests
Releases
Wiki
Activity
practice
/
lua
/
fps
/
main.lua
12 lines
138 B
Lua
Raw
Normal View
History
Unescape
Escape
lua:fps
2017-09-25 05:18:21 -07:00
fps
=
0
time
=
os.time
(
)
while
true
do
if
os.time
(
)
-
time
>
1
then
print
(
fps
)
Lua: FPS example
2017-09-27 19:12:13 -07:00
fps
=
0
time
=
os.time
(
)
lua:fps
2017-09-25 05:18:21 -07:00
end
fps
=
fps
+
1
end
Reference in New Issue
Copy Permalink