local fps = 0 local x = 0 function get_fps_init(e) end function get_fps_main(e) x = x + 1 if GetTimer(e) >= 1000 then fps = x x = 0 StartTimer(e) end Text(1,1,3,fps) end