getFPS.lua 359 B

12345678910111213141516171819
  1. return {
  2. summary = 'Get the current frames per second.',
  3. description = [[
  4. Returns the current frames per second, averaged over the last 90 frames.
  5. ]],
  6. arguments = {},
  7. returns = {
  8. fps = {
  9. type = 'number',
  10. description = 'The current FPS.'
  11. }
  12. },
  13. variants = {
  14. {
  15. arguments = {},
  16. returns = { 'fps' }
  17. }
  18. }
  19. }