FPS测试的Andr​​oid应用程序应用程序、测试、FPS、oid

2023-09-05 07:07:44 作者:逍遥浪子

哪有一个Android应用程序开发人员测试的FPS(每秒帧数)为他们的应用程序?我说的是一般的应用程序,而不是游戏。

How can an android application developer test FPS (Frames per second) for their application? I'm talking about general application, not game.

它可以在模拟器或手机上。

It can be on emulator or phone.

我一直在寻找这一点,但还没有找到一种方法。这将是巨大的,如果有开发人员可以揭示这种光线。

I've been looking for this but have not found a way. It would be great, if any developer can shed light on this.

任何帮助将是AP preciated!

Any help would be appreciated!

推荐答案

至于提到由Guykun和kcoppock,如果你只使用视图控件或帆布你平时不看的FPS确定的视觉表现。

As mention by Guykun and kcoppock, if you are only using the View widgets or Canvas you normally don't look for FPS to determine visual performance.

由于你不提你在做什么比不是一个游戏,你可能要检讨如何的Andr​​oid确实绘图等。

As you don't mention what you are doing other than 'not a game' you may want to review how Android does drawing.

http://developer.android.com/guide/topics/显卡/ 2D-graphics.html

大多数性能问题来自做的东西在UI线程上。用严格的方式发现问题。

Most of the performance issues come from doing stuff on the UI thread. Use Strict Mode for finding problems.

的http://android-developers.blogspot.com/2010/12/new-gingerbread-api-strictmode.html

也可以使用这些工具来发现性能热点:

Also use the tools to find performance hot spots:

的http://developer.android.com/guide/developing/debugging/debugging-tracing.html

http://developer.android.com/guide/developing/调试/调试,ui.html

其他文章从性能方面在Android开发人员网站查看:

Other articles to review from the Android Developer website regarding performance:

http://developer.android.com/guide/practices/design/ responsiveness.html

http://developer.android.com/guide/practices/design/ performance.html

如果你想要的引擎盖下是怎么回事看到他们做了什么硬件加速渲染的谷歌IO会议详情

And if you want more details of what's going on under the hood see the Google IO session on what they did for Hardware Accelerated Rendering

http://www.youtube.com/watch?v=v9S5EO7CLjo

[发布谷歌IO 2012更新]

[Post Google IO 2012 Update]

有关果冻豆,谷歌已经完成对UI性能的额外工作。见谷歌IO 2012届:

For Jelly Bean, Google has done additional work on UI performance. See the Google IO 2012 session:

http://www.youtube.com/watch?v=Q8m9sHdyXnE