I am a rookie to the android framework native development so I was wondering if it is possibile to calculate the frame rate periodically like every two second in android native?
If it is possible, how should I do that? I was think that I may need to create a timer in a new thread somewhere, like surfaceflinger? Everytime the timer is called, it will count how many present fences are signaled, and then I can calculate the frame rate?