简体   繁体   English

如何查看我的应用程序的帧速率?

[英]How do i check my app's frame rate?

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

Try to profile your app with Instruments and use the Core Animation instrument. 尝试使用Instruments配置您的应用程序并使用Core Animation工具。 IIRC it should give frame rate. IIRC应该给出帧率。

Try to use SpriteKit's SKView! 尝试使用SpriteKit的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. 因此,如果您希望在运行时显示帧速率,可以将它们写入应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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