Skip to content

andyRon/ARFPSStatus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ARFPSStatus

ARFPSStatus 是Swift的版本的用来显示FPS状态在iOS状态栏的简单库,FPS(Frame Per Second)是一秒钟渲染多少帧的意思。一般FPS小于60人眼就会感觉不连贯、卡顿。FPS的值最佳为60左右。

使用

application(_:willFinishLaunchingWithOptions:)方法中添加:

ARFPSStatus.shared.open()

ARFPSStatus.shared.openWithHandler { (fpsValue) in
     print("fpsValue \(fpsValue)")
}

不需要时,关闭:

ARFPSStatus.shared.close()

About

Show FPS Status on StatusBar in Swift

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors