An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

![](logo.jpg)

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

![](fps.jpg)