Skip to content

DamonHu/DDKitFPS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DDKitFPS

FPS is a definition in the field of imagery, which refers to the number of frames transmitted per second, in general, refers to the number of frames of animation or video. FPS is a measure of the amount of information used to save and display dynamic videos. The more frames per second, the smoother the displayed action will be. In general, the minimum required to avoid jerky movements is 30.

This tool is used to test the frame rate on the iOS platform

Integration

1、 You can use cocoapods integration

pod 'DDKitFPS'

2、 Use files

If you don’t want to use cocoapods integration, you can drag the contents of the pod folder in the root directory to the project.

Use

//Create an object
let fps = DDKitFPS()

//If you need to display in the ZXKit toolset, you need to register, otherwise you don’t need to register
fps.registZXKitPlugin()

//start test
fps.start { (fps) in
  print(fps)
}

//end test
fps.stop()

License

The project is based on the MIT License