I have tried two methods to get android fps: 1. dumpsys SurfaceFlinger --latency ... 2. dumpsys gfxinfo ... Both of them were worked on a normal app view,but when it comes to a game view,I got nothing. I know GameBench can catch fps on game view,but how it works?
Asked
Active
Viewed 695 times
0
-
1Possible duplicate this? https://stackoverflow.com/questions/5672503/android-how-to-find-the-frame-rate-of-a-device – vishwarajanand Aug 21 '17 at 03:03
-
Thanks, but this is not what I want , in the command 'dumpsys display' , the fps is device standard fps, it is a constant,what I need is the real time value... – Crystal Chen Aug 23 '17 at 09:21
-
I see that an external API provides this info: https://github.com/friendlyrobotnyc/TinyDancer. Not sure, if the same is provided by android. Never needed to query real time value. Reference: https://stackoverflow.com/a/34989267/3991696 – vishwarajanand Aug 23 '17 at 10:38
-
If you got apk source code you can use TinyDancer, but I don't have the apk source code....so ...I am sorry to tell you it is no use for me..sad.. – Crystal Chen Aug 24 '17 at 03:51