GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ymsheng/MNFrameRate: iOS测试FPS的工具

BranchesTags
Open more actions menu

Latest commit

 

History

24 Commits
24 Commits

Folders and files

NameName
Last commit message
Last commit date
FrameRate.xcodeproj
FrameRate.xcodeproj
 
 
FrameRate
FrameRate
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

MNFrameRate iOS测试FPS的工具 (支持iOS6及以上)

在iOS开发时,我们经常要注意屏幕渲染是否卡。通过检测每秒的丢桢数,计算得出FPS.

####### 1、把本工程中的MNFrameRate两个添加到自己的项目中 ####### 2、在AppDelegate.m文件引入头文件:#import "MNFrameRate.h" ####### 3、在 -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 的window初始化后,加入 [MNFrameRate sharedFrameRate].enabled = YES; //YES打开FPS,NO关闭FPS ####### 4、如果用mainStoryBoard,建议放到ViewController中的一个事件触发。如viewDidAppear ####### 5、Demo在iOS7的iphone4s上测试比iOS9的iphone5s渲染速度快。

CocoaPods安装

####### 1.在Podfile 中添加 pod 'MNFrameRate' ####### 2.执行 pod install 或 pod update ####### 3.在使用类中 #import "MNFrameRate.h"

了解CocoaPods

http://ymsheng.github.io/cocoapods.html

About

iOS测试FPS的工具

Resources

Readme
GPL-2.0 license
Activity

Stars

22 stars

Watchers

2 watching

Forks

7 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.