简体   繁体   English

如何在Android设备中获取游戏的fps值

[英]how to get fps value of games in android devices

Recently,i studied to how to record fps value of games in android devices.Finally,i found three ways to get the value. 最近,我研究了如何在android设备中记录游戏的fps值。最后,我找到了三种获取值的方法。

  • adb shell dumpsys SurfaceFlinger --latency SurfaceView 亚行shell dumpsys SurfaceFlinger --latency SurfaceView
  • adb shell dumpsys gfxinfo 亚行shell dumpsys gfxinfo
  • adb shell service call SurfaceFlinger 1013 亚行外壳服务调用SurfaceFlinger 1013

When i compared with the value reorder with game engine,i found that value calculated by the third way was close ,the others were unstable(that means these values are almost unchanged).With the third way,the device needed to be root.Anyone can tell me about the difference between the three ways comprehensive? 当我与使用游戏引擎进行的价值重新排序进行比较时,我发现通过第三种方法计算出的值是接近的,其他值是不稳定的(这意味着这些值几乎不变)。通过第三种方法,该设备需要是root。能告诉我三种综合方式之间的区别吗?

I tried a few ways to get to most closely value and this lib help me with that: https://github.com/friendlyrobotnyc/TinyDancer 我尝试了几种方法来获得最接近的价值,而这个lib帮助我: https : //github.com/friendlyrobotnyc/TinyDancer

edit: TinyDancer gives you a dynamic icon with current fps value 编辑:TinyDancer为您提供一个具有当前fps值的动态图标

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

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