Guest User

Show FPS

a guest
Jan 21st, 2013
91
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Snippet to show FPS on Start-up
  2. #==============================================================================
  3. module FPS_Snippet ; $fps_showing = false # do not change this
  4. #==============================================================================
  5.  
  6. Use_Snippet = true
  7.  
  8. end
  9.  
  10. #==============================================================================
  11. class Scene_Title < Scene_Base
  12. #==============================================================================
  13.  
  14. if FPS_Snippet::Use_Snippet
  15.  
  16. alias _FPS_A_GO_GO_START start
  17. def start
  18. _FPS_A_GO_GO_START
  19. _FPS_A_GO_GO_TRIGGER if $fps_showing == false
  20. end
  21.  
  22. def _FPS_A_GO_GO_TRIGGER
  23. $fps_showing = true ; a = 'user32.dll' ; b = 'keybd_event'
  24. Win32API.new(a, b, ['i', 'i', 'l', 'l'], '').call(0x71,0,0,0)
  25. end
  26.  
  27. end
  28.  
  29. end
  30. #===============================================================================#
  31. # http://dekitarpg.wordpress.com/ #
  32. #===============================================================================#
RAW Paste Data