简体   繁体   中英

How do i check my app's frame rate?

我想找出我的iOS应用程序的帧速率,我想知道如何检查?

Try to profile your app with Instruments and use the Core Animation instrument. IIRC it should give frame rate.

Try to use SpriteKit's SKView!

SKView *skView = [[SKView alloc] init];
skView.frame = CGRectMake(240, 525, 60, 15);
skView.showsFPS = YES;
[self.view addSubview:skView];

You can count your created frames after each rendering steps and take the runtime between them. So you can write them to your app if you like to show the frame rate during the runtime.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM