社区

The relationship between Android-Window and FPS

Ace搬砖中 2020-06-15
496个浏览 0个回帖

Often asked (this article is only for discussing the Android platform):

"How did the frame rate of the PerfDog test come from, What frame rate is tested?"

"How to measure the frame rate of Mini Game?"

"How to measure the frame rate of Mini Program?"

"How to measure the frame rate of traditional APP?"

"How to measure the frame rate of WEB?"

"How to measure the frame rate of Mobile Game?"

For these questions, it is really not easy to answer in one sentence, first need to figure out what the Android-Window is. Below I have a brief overview, You can also check on the Internet.

In general, the Android main window Activity and the corresponding View have a special View, such as SurfaceView. It will occupy a Surface by itself, do not share the Surface with the main window, Independent rendering is very efficient and supports OpenglES rendering. In other words, there may be two types of window FPS. One is Activety window frame rate and SurfaceView window frame rate.

Under what circumstances will there be the situation of both types of windows? In general, there are two types of applications, such as Mobile Games, Live APPs, Video APPs, and Mini Games. In special cases, multiple Activities and multiple SurfaceViews may appear, which causes great difficulty in calculating the frame rate and requires a certain strategy to obtain the frame rate.

For Mobile Games, Live APPs, Video APPs, and Mini Games and other types of applications, PerfDog acquires the FPS of SurfaceView by default. The other traditional APP or Web application obtains the Activity frame rate.

At the same time, PerfDog's high-level function supports users to choose the frame rate of the window type, especially for Mini Games, Mini Programs, etc., which can more accurately test the target window frame rate, as shown below (WeChat Mini Game - Dou dizhu):


For Mobile Games, Live APPs, Video APPs, and Mini Games, please choose SurfaceView.

回帖
0个回帖
  • 快来消灭零评论吧
取消评论
一周热议
简体中文 | English
取消
投稿
投稿须知:
1. 作者信息:PerfDog社区 ID
2. 原创信息:原创 OR 转载 (转载需附原地址)
3. 文章详细内容
请发送至 PerfDog@tencent.com 复制邮箱 已复制
我们将会在5个工作日内回复
我知道了