https://github.com/andyron/arfpsstatus
Show FPS Status on StatusBar in Swift
https://github.com/andyron/arfpsstatus
fps ios swift
Last synced: 7 months ago
JSON representation
Show FPS Status on StatusBar in Swift
- Host: GitHub
- URL: https://github.com/andyron/arfpsstatus
- Owner: andyRon
- License: mit
- Created: 2017-09-28T14:28:09.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-01T23:31:03.000Z (over 8 years ago)
- Last Synced: 2024-03-14T18:17:31.580Z (about 2 years ago)
- Topics: fps, ios, swift
- Language: Swift
- Size: 147 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

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()
```
