CN112948041A - Information processing method and electronic equipment - Google Patents

Information processing method and electronic equipment Download PDF

Info

Publication number
CN112948041A
CN112948041A CN202110219645.4A CN202110219645A CN112948041A CN 112948041 A CN112948041 A CN 112948041A CN 202110219645 A CN202110219645 A CN 202110219645A CN 112948041 A CN112948041 A CN 112948041A
Authority
CN
China
Prior art keywords
frame
rate
refresh rate
time period
display screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110219645.4A
Other languages
Chinese (zh)
Inventor
杨丙乾
夏洪成
江顺德
张国彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202110219645.4A priority Critical patent/CN112948041A/en
Publication of CN112948041A publication Critical patent/CN112948041A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The application provides an information processing method, which comprises the following steps: if the display screen of the electronic equipment is at the first refresh rate, generating display content of an output interface of the current application program based on the first frame rate; monitoring frame loss in the process of generating the display content of the output interface of the current application program based on the first frame rate to obtain a first parameter value related to the frame loss; determining that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate based on the first parameter value and a first control strategy, so that the display content of the output interface of the current application program is continuously generated based on a second frame rate; the second frame rate is lower than the first frame rate; the first control strategy is used for representing that the display content of the output interface of the current application program displayed and output by the display screen has a pause phenomenon. Simultaneously, this application still provides an electronic equipment.

Description

Information processing method and electronic equipment
Technical Field
The present disclosure relates to frame rate processing technologies, and in particular, to an information processing method and an electronic device.
Background
The existing electronic device supports frame rate refresh of 60, 90, and 120fps, but in some scenarios, the frame rate supported by some applications is different, some support frame rate refresh of 90 and 120fps, and some support frame rate refresh of 60, 90, and 120 fps. If an application supporting the higher 90, 120fps runs at the lower 60fps, a frame loss and stuck phenomenon will occur. For example, when the map application performs interface zooming, if the currently running interface is at 90fps, the frame loss is serious, and the user visually feels a remarkable picture pause phenomenon. However, in the prior art, a user is usually required to manually switch to select a proper frame rate, so that the operation is complicated, and poor use experience is provided for the user, and therefore, the problem that the method capable of automatically switching the frame rate of the picture is urgently needed to be solved at present is provided.
Disclosure of Invention
In view of the above, embodiments of the present application are intended to provide an information processing method and an electronic device.
According to an aspect of the present application, there is provided an information processing method, the method including:
if the display screen of the electronic equipment is at the first refresh rate, generating display content of an output interface of the current application program based on the first frame rate;
monitoring frame loss in the process of generating the display content of the output interface of the current application program based on the first frame rate to obtain a first parameter value related to the frame loss;
determining that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate based on the first parameter value and a first control strategy, so that the display content of the output interface of the current application program is continuously generated based on a second frame rate; the second frame rate is lower than the first frame rate;
the first control strategy is used for representing that the display content of the output interface of the current application program displayed and output by the display screen has a pause phenomenon.
In the above scheme, the method further comprises:
monitoring frame loss in the process of generating the display content of the output interface of the current application program based on the second frame rate to obtain a second parameter value related to the frame loss;
determining that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate based on the second parameter value and a second control strategy; the second control strategy is used for representing that the display content of the output interface of the current application program displayed and output by the display screen does not have a pause phenomenon.
In the above scheme, monitoring the frame loss in the process of generating the display content of the output interface of the current application program based on the first frame rate to obtain a first parameter value related to the frame loss includes:
in the process of generating the display content of the output interface of the current application program based on the first frame rate, calculating the used time length of losing N frames in a first time period, wherein N is more than or equal to 2; the used time length of the lost N frames represents the total time length from the beginning of the first frame loss to the end of the N frame loss;
determining that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate based on the first parameter value and a first control strategy, comprising:
if the used duration of N lost frames in the first time period is less than a first time threshold, determining that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate; the first time threshold represents the corresponding time when the display content of the output interface of the current application program has a pause phenomenon;
or if the used time length of losing N frames in the first time period is less than the first time threshold, calculating the used time length of losing N frames in the second time period; the second time period is equal to the first time period in duration, the difference between the starting value of the second time period and the starting value of the first time period is M, and M is greater than or equal to 1;
and if the used time length of losing N frames in the second time period is less than the first time threshold, determining that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate.
In the above scheme, monitoring frame loss during the process of generating the display content of the output interface of the current application program based on the second frame rate to obtain a second parameter value related to the frame loss includes:
calculating the number of lost frames within a second time threshold in the process of generating the display content of the output interface of the current application program based on the second frame rate; the second time threshold represents the corresponding time when the display screen displays and outputs the display content of the output interface of the current application program and the pause phenomenon does not occur;
determining that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate based on the second parameter value and a second control policy, comprising:
if the number of lost frames is smaller than a first frame number threshold value, determining that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate;
wherein the second time threshold and the first frame number threshold are both related to the number of times of switching of the refresh rate of the display screen.
In the above scheme, monitoring the frame loss in the process of generating the display content of the output interface of the current application program based on the first frame rate to obtain a first parameter value related to the frame loss includes:
calculating the number of lost frames in a first time period in the process of generating the display content of the output interface of the current application program based on the first frame rate;
determining that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate based on the first parameter value and a first control strategy, comprising:
if the number of lost frames in a first time period reaches a frame number threshold, determining that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate;
or, if the frame loss number in the first time period reaches the frame number threshold, calculating the frame loss number in the second time period; the second time period is equal to the first time period in duration, the difference between the starting value of the second time period and the starting value of the first time period is M, and M is greater than or equal to 1;
and if the number of lost frames in a second time period reaches the frame number threshold, determining that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate.
In the above scheme, monitoring frame loss during the process of generating the display content of the output interface of the current application program based on the second frame rate to obtain a second parameter value related to the frame loss includes:
in the process of generating the display content of the output interface of the current application program based on the second frame rate, calculating the number of frames and the number of frame losses meeting the requirement of the first frame rate in a first time period;
determining that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate based on the second parameter value and a second control policy, comprising:
if the number of frames meeting the first frame rate requirement in a first time period reaches a first frame number threshold value and the number of dropped frames is smaller than a second frame number threshold value, determining that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate;
or, if the number of frames meeting the first frame rate requirement in the first time period reaches a first frame number threshold and the number of dropped frames is less than a second frame number threshold, calculating the number of frames meeting the first frame rate requirement and the number of dropped frames in the second time period;
if the number of frames meeting the first frame rate requirement in a second time period reaches a first frame number threshold value and the number of frame loss is smaller than a second frame number threshold value, determining that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate; the second time period is equal to the first time period in duration, the difference between the starting value of the second time period and the starting value of the first time period is M, and M is greater than or equal to 1.
In the above scheme, monitoring the frame loss in the process of generating the display content of the output interface of the current application program based on the first frame rate to obtain a first parameter value related to the frame loss includes:
in the process of generating the display content of the output interface of the current application program based on the first frame rate, monitoring the frame loss of each page layer in the current application program in a first time period to obtain the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period, wherein N is more than or equal to 2;
determining that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate based on the first parameter value and a first control strategy, comprising:
under the condition that the frame loss phenomenon of each page layer is determined to occur based on the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period, the refresh rate of the display screen is controlled to be switched from the first refresh rate to the second refresh rate by a first sub-strategy;
or under the condition that the frame loss phenomenon of at least one page layer is determined based on the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period, controlling the refresh rate of the display screen to be switched from the first refresh rate to a second refresh rate by a second sub-strategy;
wherein the first sub-policy has a higher priority than the second sub-policy.
In the above scheme, the monitoring frame loss of each page layer in the current application program in a first time period to obtain a frame loss per second and a frame loss per N seconds of each page layer in the first time period includes:
monitoring the frame loss number of each page layer in each pulse signal in the first time period in the process of generating the display content of the output interface of the current application program based on the first frame rate;
generating a frame loss rate per second of each page layer in the first time period based on the frame loss number of each page layer in each pulse signal; and generating a frame loss rate per N seconds of each page layer in the first time period based on the frame loss rate per second of each page layer in the first time period.
In the foregoing solution, when it is determined that a frame loss phenomenon occurs in each page layer based on the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period, controlling the refresh rate of the display screen to be switched from the first refresh rate to the second refresh rate by using a first sub-policy includes:
under the condition that frame loss occurs to each page layer based on the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period, if the frame loss rate per second of each page layer in the first time period is larger than a first frame rate threshold value and the frame loss rate per N seconds of each page layer in the first time period is larger than a second frame rate threshold value, controlling the refresh rate of the display screen to be switched from the first refresh rate to a second refresh rate by a first sub-strategy; the first frame rate threshold is smaller than the second frame rate threshold, and the first frame rate threshold and the second frame rate threshold are both set according to the first frame rate;
or, determining that a frame loss phenomenon occurs to each page layer based on the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period, and monitoring the frame loss of each page layer in the current application program in the second time period under the condition that the frame loss rate per second of each page layer in the first time period is greater than a first frame rate threshold and the frame loss rate per N seconds of each page layer in the first time period is greater than a second frame rate threshold, so as to obtain the frame loss rate per second and the frame loss rate per N seconds of each page layer in the second time period, wherein N is greater than or equal to 2; if the frame loss rate per second of each page layer in the second time period is larger than the first frame rate threshold value, and the frame loss rate per N seconds of each page layer in the second time period is larger than the second frame rate threshold value, controlling the refresh rate of the display screen to be switched from the first refresh rate to a second refresh rate by a first sub-strategy; the time lengths of the first time period and the second time period are equal, the difference between the starting value of the first time period and the starting value of the second time period is M, and M is greater than or equal to 1.
In the foregoing solution, the priority of the first sub-policy is higher than the priority of the second sub-policy, including:
under the condition that the refresh rate of the display screen is controlled to be switched from the first refresh rate to the second refresh rate by the first sub-strategy, if the frame loss rate per second of each page layer at the second frame rate is smaller than a third frame rate threshold and the frame loss rate per N seconds of each page layer at the second frame rate is smaller than a fourth frame rate threshold, the refresh rate of the display screen is controlled to be switched from the second refresh rate to the first refresh rate, so that under the condition that the frame loss phenomenon of at least one page layer is determined to occur based on the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period, the refresh rate of the display screen can be controlled to be switched from the first refresh rate to the second refresh rate by the second sub-strategy;
and the third frame rate threshold is smaller than the fourth frame rate threshold, and the third frame rate threshold and the fourth frame rate threshold are both set according to the second frame rate.
In the above scheme, the scheme further includes:
under the condition that the refresh rate of the display screen is controlled to be switched from the first refresh rate to the second refresh rate by the second sub-strategy, if the frame per second loss rate of at least one page layer at the second frame rate is smaller than a fifth frame rate threshold and the frame per N seconds loss rate of at least one page layer at the second frame rate is smaller than a sixth frame rate threshold, controlling the refresh rate of the display screen to be switched from the second refresh rate to the first refresh rate;
wherein the fifth frame rate threshold is smaller than the sixth frame rate threshold, and both the fifth frame rate threshold and the sixth frame rate threshold are set according to the second frame rate.
According to another aspect of the present application, there is provided an electronic device including:
the generating unit is used for generating the display content of the output interface of the current application program based on the first frame rate if the display screen of the electronic equipment is at the first refresh rate;
the monitoring unit is used for monitoring frame loss in the process of generating the display content of the output interface of the current application program based on the first frame rate to obtain a first parameter value related to the frame loss;
the determining unit is used for determining that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate based on the first parameter value and a first control strategy, so that the display content of the output interface of the current application program is continuously generated based on a second frame rate; the second frame rate is lower than the first frame rate;
the first control strategy is used for representing that the display content of the output interface of the current application program displayed and output by the display screen has a pause phenomenon.
According to the information processing method and the electronic device, frame loss of the electronic device in the process of generating the display content of the output interface of the current application program based on the current frame rate is monitored, whether the display content of the output interface of the current application program is blocked or not is judged, and when the display content of the current output interface is determined to be blocked or not at the current frame rate, the display content is switched from the first frame rate to the second frame rate, so that the electronic device continues to generate the display content of the output interface of the current application program based on the second frame rate; wherein the second frame rate is lower than the first frame rate. Therefore, whether the display content of the current output interface is blocked or not can be judged, the refreshing frequency of the display screen is switched in a self-adaptive mode, the use experience of a user can be improved, the blocking phenomenon cannot be caused visually to the user, and the complicated operation caused by manual frame rate switching of the user is not needed.
Drawings
FIG. 1 is a schematic view of a flow chart of a processing method in the present application;
FIG. 2 is a first schematic structural component diagram of an electronic device according to the present application;
fig. 3 is a structural schematic diagram of an electronic device in the present application.
Detailed Description
The technical solution of the present application is further described in detail with reference to the drawings and specific embodiments of the specification.
Fig. 1 is a schematic view of a flow implementation of a processing method in the present application, as shown in fig. 1, including:
step 101, if a display screen of the electronic equipment is at a first refresh rate, generating display content of an output interface of a current application program based on a first frame rate;
in this application, the electronic device may be a computer, a television, a mobile phone, a watch, a bracelet, or the like having a display screen, and the electronic device may run a variety of applications. When the electronic equipment runs at least one application program, the display screen of the electronic equipment can generate the display content of the output interface of the current application program.
Specifically, the display screen of the electronic device can generate the display content of the output interface of the current application program at different frame rates under the condition of different refresh rates. In other words, the database of the electronic device may further store corresponding relationships between various refresh rates and various frame rates of the display screen, and when the display screen of the electronic device is at a first refresh rate, the electronic device may obtain, based on the database, a first frame rate corresponding to the first refresh rate, and generate the display content of the output interface of the current application program at the first frame rate.
For example, the display screen of the electronic device is at 90H per second at a first refresh rateZAnd the display content of the output interface of the current application program can be generated at the speed of transmitting 90 frames of pictures per second when the current application program is operated.
102, monitoring frame loss in the process of generating the display content of the output interface of the current application program based on the first frame rate, and obtaining a first parameter value related to the frame loss;
in the application, the electronic device may further monitor frame loss of the display content uninterruptedly or periodically in a process of generating the display content of the output interface of the current application program based on the first frame rate, and obtain the first parameter value related to the frame loss according to a monitoring result.
Here, the first parameter value related to frame dropping may represent a duration of a display screen of the electronic device that loses N frames within a first time period in generating display content of an output interface of a current application program at a first frame rate, where N is greater than or equal to 2.
Specifically, in the process that the electronic device generates the display content of the output interface of the current application program based on the first frame rate, the time length of the display screen losing N frames in the first time period may be calculated, and the time length of the display screen losing N frames in the first time period may be used as the first parameter value. The duration of the lost N frames may represent the total duration from the beginning of the first frame loss to the end of the lost N frames, or may represent the total duration from the beginning of the first frame transmission to the end of the lost N frames.
For example, the electronic device may calculate a duration of time for losing 7 frames within 300 milliseconds in generating the display content of the output interface of the current application at a frame rate of 90. If the electronic device monitors that the display screen loses 1 frame at 10 milliseconds during the process of generating the display content of the output interface of the current application program at the frame rate of 90, the electronic device may start to time from 10 milliseconds to calculate the time duration for losing 7 frames, and if the electronic device monitors that the display screen loses 7 frames at 50 milliseconds in total, the electronic device may determine that the time duration for losing 7 frames of the display screen within 300 milliseconds is 40 milliseconds (i.e., the total time duration from the beginning of losing the first frame to the end of losing 7 frames). If the electronic device starts to count the time from the transmission of the first frame picture in the process of generating the display content of the output interface of the current application program at the frame rate of 90 so as to calculate the time used for losing 7 frames, and if the display screen is monitored to lose 7 frames in the 50 th millisecond, the time used for losing 7 frames in 300 milliseconds by the electronic device is determined to be 50 milliseconds (namely the total time from the transmission of the first frame to the end of the losing 7 frames). Therefore, the method and the device can obtain the used time length of the display screen for losing the fixed frame in the first time period by monitoring the frame loss in the process that the electronic device generates the display content of the output interface of the current application program based on the first frame rate, and can judge whether the display content of the current output interface is blocked or not based on the used time length of the display screen for losing the fixed frame in the first time period, so that preparation is made for subsequent refresh rate switching operation.
In this application, the first parameter value related to frame loss may further characterize a frame loss number of a display screen of the electronic device in a first time period in a process of generating display content of an output interface of a current application program at a first frame rate.
Specifically, the electronic device may further calculate a number of lost frames of the display screen in a first time period in a process of generating display content of an output interface of a current application program based on the first frame rate; and taking the frame loss number of the display screen in the first time period as the first parameter value.
For example, in the process of generating the display content of the output interface of the current application program at the frame rate of 90, the display screen of the electronic device may calculate the number of lost frames of the display screen within 300 milliseconds, and use the number of lost frames (for example, 7 frames) within 300 milliseconds as the first parameter value. Therefore, whether the display content of the current output interface of the display screen has a pause phenomenon or not can be judged based on the frame loss number of the display screen within a certain time, and preparation is made for subsequent refresh rate switching operation.
In the application, the first parameter value related to frame dropping can also represent the frame dropping rate per second and the frame dropping rate per N seconds of each page layer in the current application program in the process that the display screen of the electronic device generates the display content of the output interface of the current application program at the first frame rate.
Specifically, the electronic device may have multiple page layers in a current application program being executed, and in the process of generating display content of an output interface of the current application program by the electronic device based on the first frame rate, the electronic device may also monitor frame loss of each page layer in the current application program within a first time period to obtain a frame loss rate per second and a frame loss rate per N seconds of each page layer within the first time period, where N is greater than or equal to 2; and then taking the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period as the first parameter value.
For example, the current application has 4 page layers, and in the process of generating the display content of the output interface of the current application by the electronic device based on the first frame rate, all the page layers may be dropped, only one page layer may be dropped, and all the pages may not be dropped. Therefore, the electronic device may define two criteria for frame loss of the page layer, where one criterion may be: at least one page layer has frame loss in the updated drawing of the picture, and the frame loss comprises two arrays (frame loss rate per second and frame loss rate per N seconds), and the standard two can be: all the page layers have frame loss in the updating and drawing of the picture, the frame loss comprises two arrays (frame loss rate per second and frame loss rate per N seconds), and the priority of standard two is higher than that of standard one.
Here, the priority of criterion two over criterion one may specifically mean: if the electronic device controls the display screen to switch from the first refresh rate to the second refresh rate under the condition that the second criterion is met, the first criterion can be started after the display screen is controlled to switch from the second refresh rate to the first refresh rate under the condition that the second criterion is met, and the display screen can be controlled to execute the refresh rate switching under the condition that the electronic device meets the first criterion. Therefore, whether the display content of the current output interface has the stuck phenomenon or not can be judged by monitoring the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period, and the standard met by the current application program is determined based on the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period, so that the judgment accuracy and the stuck severity of the stuck phenomenon can be improved.
In the application, when the electronic device monitors frame loss of each page layer in the current application program in a first time period to obtain a frame loss rate per second and a frame loss rate per N seconds of each page layer in the first time period, the electronic device may specifically monitor the frame loss number of each page layer in each pulse signal in the first time period in a process of generating display content of an output interface of the current application program based on the first frame rate; generating a frame loss rate per second of each page layer in a first time period based on the frame loss number of each page layer in each pulse signal; and generating a frame loss rate per N seconds of each page layer in a first time period based on the frame loss rate per second of each page layer in the first time period.
For example, in the process of generating the display content of the output interface of the current application program based on the first frame rate, the number of lost frames of each page layer in every 1 second and the number of lost frames in every 10 seconds are monitored, specifically, the number of lost frames in the pulse signal transmitted by each page layer in 1 second is monitored, for example, taking 90 frame rates as an example, if each page layer has 90 frames in 1 second, 90 pulse signals are correspondingly provided, if it is monitored that at least one page layer has 5 lost frames in 1 second, it is determined that the frame loss rate per second of at least one page layer is 5, and the frame loss rate per second is 5 in the first standard. If at least one page layer has frame loss in the next 1 second and the frame loss number (such as 7) is greater than 5, the frame loss rate per second recorded in the first updating standard 5 is the currently maximum value (such as 7). That is, in standard one, only one page layer has frame loss, the number is counted, and the current maximum frame loss rate is recorded. Then when 10 seconds arrive, counting all frame loss rates within 1-10 seconds, taking the sum of the frame loss rates within 1-10 seconds as the frame loss rate of at least one page layer in every 10 seconds, and recording the number of the frame loss rate in every 10 seconds as 1 in the first standard.
Here, the first standard and the second standard may be performed synchronously, and if the electronic device monitors that all the page layers have frame loss phenomenon within 1 second, the frame loss rate per second is counted at the first standard, and the frame loss rate per second of the second standard is counted at the second standard (for example, if all the page layers have frame loss within 1 second, the frame loss rate per second of the second standard is counted as 1); if there is one page layer without frame loss within 1 second, then the frame loss rate per second is counted correspondingly at the frame loss rate per second of standard one, and the frame loss rate per second of standard two is counted (for example, the count is 0 at the frame loss rate per second of standard two). Therefore, the judgment degree of the pause phenomenon of the current display page can be improved through the synchronous counting of the first standard and the second standard.
103, determining that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate based on the first parameter value and a first control strategy, so that the display content of the output interface of the current application program is continuously generated based on a second frame rate; the second frame rate is lower than the first frame rate; the first control strategy is used for representing that the display content of the output interface of the current application program displayed and output by the display screen has a pause phenomenon.
In this application, if the first parameter value obtained by the electronic device represents the duration of N frames lost by the display screen in the first time period when the display screen of the electronic device generates the display content of the output interface of the current application program at the first frame rate, the electronic device may further compare the first parameter value with a first time threshold preset in the electronic device when obtaining the first parameter value to determine whether the duration of N frames lost by the display screen in the first time period is less than the first time threshold, and obtain a determination result, if the determination result represents that the duration of N frames lost by the display screen in the first time period is less than the first time threshold, it is determined that the display content of the output interface of the current application program displayed by the display screen of the electronic device is jammed, and the display screen of the electronic device is controlled to be switched from the first refresh rate to the second rate according to a first control policy, enabling the electronic equipment to continue to generate display content of an output interface of the current application program based on the second frame rate; wherein the second refresh rate is lower than the first refresh rate, and the second frame rate is lower than the first frame rate.
Here, the first time threshold represents a corresponding time (for example, referred to as badTimeThreshold) set when a stuck phenomenon occurs with respect to display contents of an output interface of the current application program. The first control strategy represents that the display screen of the electronic equipment is controlled to be switched from a first refresh rate to a second refresh rate under the condition that the display content of the output interface of the current application program is displayed and output by the display screen of the electronic equipment is in a stuck phenomenon. Therefore, under the condition that the display content of the display screen is blocked, the display screen of the electronic equipment is controlled to be switched from the first refresh rate to the second refresh rate, and the display content of the current application program can be smoothly output.
In this application, in order to improve a determination result of the stuck phenomenon, when the electronic device determines that a duration of losing N frames of the display screen in a first time period is less than a first time threshold, the electronic device may further calculate a duration of losing N frames of the display screen in a second time period; the second time period is equal to the first time period in duration, the difference between the starting value of the second time period and the starting value of the first time period is M, and M is greater than or equal to 1; and if the duration of N frames lost by the display screen of the electronic equipment in the second time period is also smaller than the first time threshold, determining that the display content of the output interface of the current application program displayed and output by the display screen has a pause phenomenon, and controlling the refresh rate of the display screen to be switched from the first refresh rate to the second refresh rate.
For example, a first time threshold (badTimeThreshold) and a second time threshold (GoodTimeThreshold) are provided in the electronic device, wherein the second time threshold (GoodTimeThreshold) may be 1s, the first time threshold (badTimeThreshold) may be 300ms, that is, the second time threshold (GoodTimeThreshold) is greater than the first time threshold (badTimeThreshold). Assuming that the maximum frame rate supported by the display screen of the electronic device is 90fps, when the output interface of the current application program of the electronic device is operated at 90fps by default, the electronic device may calculate, in the process of generating the display content of the output interface of the current application program based on 90fps, a time taken by the output interface to lose a fixed frame (e.g., 7 frames) within a first time period (e.g., 5 seconds), if the time taken is less than a first time threshold (badTimeThreshold), at this time, the refresh frequency of the display screen is not switched, but monitoring is continued, and if the time taken by the output interface to lose the fixed frame (e.g., 7 frames) within 2 or more consecutive time periods (e.g., according to 150 millisecond translation) is monitored to be less than the first time threshold, the output interface is considered to be unsuitable for operating at 90fps, the display screen is controlled to be switched from 90fps to 60 fps.
Here, when monitoring whether the duration of the fixed frame (e.g. 7 frames) lost by the output interface of the current application program in 2 or more consecutive time periods is less than the first time threshold, instead of monitoring every 5 seconds based on the first time period (e.g. 5 seconds), monitoring is performed at a time interval of less than 5 seconds, which may be as small as possible (e.g. monitoring may be performed at a time interval of 150 milliseconds), here, monitoring is performed at 1 second intervals, for example, monitoring is performed at the first time period (1 st to 5 seconds), monitoring is performed at the second time period (2 nd to 6 th seconds), monitoring is performed at the third time period (3 rd to 7 th seconds), if the several monitoring results indicate that the duration of the fixed frame (e.g. 7 frames) lost by the output interface of the current application program is less than the first time threshold, and if the current output interface is not suitable for operating at 90fps, the display screen is controlled to be switched to operate from 90fps to 60 fps. Therefore, the refresh frequency of the display screen can be prevented from being switched repeatedly, and the stability after the refresh frequency is switched can be improved.
In another embodiment, if the first parameter value obtained by the electronic device characterizes the number of lost frames of the display screen of the electronic device in the process of generating the display content of the output interface of the current application program at the first frame rate, the display screen is in the first time period. When the electronic device obtains the first parameter value, the number of lost frames of the display screen in the first time period can be compared with a preset frame number threshold, if the comparison result represents that the number of lost frames of the display screen in the first time period reaches the frame number threshold, it is determined that a stuck phenomenon occurs in display content of an output interface of the display screen, which displays and outputs a current application program, and the refresh rate of the display screen is controlled to be switched from the first refresh rate to the second refresh rate according to a first control strategy. Therefore, the display content of the current application program can be ensured to be smoothly output.
In the application, in order to improve the stability of the display screen after the refresh rate is switched, when the frame loss number of the display screen in the first time period reaches the frame number threshold, the electronic device may not switch the refresh frequency of the display screen first, but continue to calculate the frame loss number of the display screen in the second time period; the second time period is equal to the first time period in duration, the difference between the starting value of the second time period and the starting value of the first time period is M, and M is greater than or equal to 1; and if the frame loss number of the display screen in the second time period reaches the frame number threshold, determining that the display content of the output interface of the current application program displayed and output by the display screen has a pause phenomenon, and controlling the refresh rate of the display screen to be switched from the first refresh rate to the second refresh rate according to a first control strategy. Therefore, the accuracy and the stability of the refresh frequency of the switching display screen can be improved.
Here, the first control strategy represents that when a display content of an output interface of the current application program is displayed and output on the display screen and a pause phenomenon occurs, the refresh rate of the display screen is controlled to be switched from the first refresh rate to the second refresh rate.
In this application, if the first parameter value obtained by the electronic device characterizes that the electronic device is generating the display content of the output interface of the current application program at the first frame rate, the frame loss rate per second and the frame loss rate per N seconds of each page layer in the current application program within the first time period. When the electronic device obtains the first parameter value, it may further determine whether each page layer has frame loss or a part of the page layers have frame loss based on the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period. If the frame loss phenomenon occurs in each page layer, controlling the refresh rate of the display screen to be switched from the first refresh rate to the second refresh rate by using a first sub-strategy; if it is determined that at least one page layer has a frame loss phenomenon based on the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period, controlling the refresh rate of the display screen to be switched from the first refresh rate to the second refresh rate by using a second sub-strategy; wherein the first sub-policy has a higher priority than the second sub-policy.
In this application, the priority of the first sub-policy is higher than the priority of the second sub-policy, which means that: when each page layer of the electronic device has a frame loss phenomenon, and the frame loss rate is greater than a preset threshold value, it indicates that the load of the current system is large, and at this time, the electronic device can forcibly control the refresh rate of the display screen to be switched from the first refresh rate to the second refresh rate. When the electronic device controls the refresh rate of the display screen to be switched from the first refresh rate to the second refresh rate by the first sub-policy, the electronic device will continue to monitor the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period until each page layer is monitored to have a frame loss and the frame loss rate is smaller than a preset threshold, the second sub-policy will not be started until the display screen is controlled to be switched from the second refresh rate to the first refresh rate by the first sub-policy, and when the electronic device monitors that at least one page layer of the current application program has a frame loss, the display screen is controlled to be switched from the first refresh rate to the second refresh rate by the second sub-policy.
Specifically, under the condition that the refresh rate of the display screen is controlled to be switched from the first refresh rate to the second refresh rate by the first sub-strategy, if the frame loss rate per second of each page layer at the second frame rate is smaller than the third frame rate threshold and the frame loss rate per N seconds of each page layer at the second frame rate is smaller than the fourth frame rate threshold, the refresh rate of the display screen is controlled to be switched from the second refresh rate to the first refresh rate, so that the electronic device can control the refresh rate of the display screen to be switched from the first refresh rate to the second refresh rate by the second sub-strategy under the condition that the frame loss phenomenon of at least one page layer is determined based on the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period; wherein the third frame rate threshold is smaller than the fourth frame rate threshold, and both the third frame rate threshold and the fourth frame rate threshold are set according to the second frame rate (for example, based on 60 fps). Therefore, the switching speed of the refresh rate can be improved to reduce the system load, and the stability of the display screen after the refresh rate is switched can be protected.
In the application, the electronic device determines that a frame loss phenomenon occurs in each page layer based on a frame loss rate per second and a frame loss rate per N seconds of each page layer in a first time period, and may further compare the frame loss rate per second of each page layer in the first time period with a first frame rate threshold, compare the frame loss rate per N seconds of each page layer in the first time period with a second frame rate threshold, and obtain a comparison result, if the comparison result indicates that the frame loss rate per second of each page layer in the first time period is greater than the first frame rate threshold, and the frame loss rate per N seconds of each page layer in the first time period is greater than the second frame rate threshold, determine that a display content of the current display screen exhibits a stuck phenomenon, and at this time, may control the refresh rate of the display screen to switch from the first refresh rate to the second refresh rate with a first sub-policy; the first frame rate threshold is smaller than the second frame rate threshold, and both the first frame rate threshold and the second frame rate threshold are set according to the first frame rate (for example, 90fps is used as a reference).
Here, in order to ensure the stability of the refresh rate switching, the electronic device determines that a frame loss phenomenon occurs in each page layer based on the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period, and when the frame loss rate per second of each page layer in the first time period is greater than the first frame rate threshold and the frame loss rate per N seconds of each page layer in the first time period is greater than the second frame rate threshold, may further continue to monitor the frame loss of each page layer in the current application program in the second time period (e.g., shifted by 150 milliseconds from the first time period) to obtain the frame loss rate per second and the frame loss rate per N seconds of each page layer in the second time period, where N is greater than or equal to 2; if the frame loss rate of each page layer in the second time period is larger than the first frame rate threshold value, and the frame loss rate of each page layer in every N seconds in the second time period is larger than the second frame rate threshold value, determining that the display interface of the current display screen has a pause phenomenon, and controlling the refresh rate of the display screen to be switched from the first refresh rate to the second refresh rate by using a first sub-strategy; the time lengths of the first time period and the second time period are equal, the difference between the starting value of the first time period and the starting value of the second time period is M, and M is greater than or equal to 1. For example, the first time period is 1-5 seconds, the second time period is 2-6 seconds, the duration of the first time period and the duration of the second time period are both 5 seconds, but the first time period and the second time period are shifted at 1 second intervals. Therefore, the accuracy of the monitoring result can be improved by monitoring at a smaller time interval.
In the application, under the condition that the electronic device controls the display screen to be switched from the first refresh rate to the second refresh rate, the electronic device may further generate the display content of the output interface of the current application program based on the second frame rate, and may further continue to monitor frame loss of the electronic device in the process of generating the display content of the output interface of the current application program based on the second frame rate, so as to obtain a second parameter value related to the frame loss; the second parameter value may represent a number of lost frames of the display screen within a preset second time threshold in a process that the display screen of the electronic device generates display content of an output interface of a current application program based on a second frame rate, where the second time threshold may represent a corresponding time when the display screen displays the display content of the output interface of the current application program without a stuck phenomenon; the method can also be characterized in that the display screen meets the frame number and frame loss number required by the first frame rate in a first time period in the process of generating the display content of the output interface of the current application program based on the second frame rate; and in the process that the display screen generates the display content of the output interface of the current application program based on the second frame rate, the frame loss rate per second and the frame loss rate per N seconds of at least one or all the page layers in the current application program in the first time period can be further characterized. When the electronic device determines that the refresh rate of the display screen of the electronic device is switched from the second refresh rate to the first refresh rate based on the second parameter value and the second control policy, the electronic device may continue to generate the display content of the output interface of the current application program based on the first frame rate.
Here, the second control strategy is used for representing that the display content of the output interface of the display screen of the electronic equipment for displaying and outputting the current application program does not have the pause phenomenon.
Specifically, the electronic device may further calculate a number of lost frames of the display screen within a second time threshold (GoodTimeThreshold) in the process of generating the display content of the output interface of the current application program based on the second frame rate; the second time threshold represents corresponding time preset when the display content of the output interface for displaying and outputting the current application program on the display screen does not have the pause phenomenon; and if the frame loss number of the display screen in the second time threshold is smaller than the first frame number threshold, determining that the display content of the output interface of the display screen does not have a pause phenomenon, and controlling the refresh rate of the display screen to be switched from the second refresh rate to the first refresh rate according to a second control strategy.
Here, the second time threshold and the first frame number threshold are both related to the number of times of switching of the refresh rate of the display screen.
For example, when the electronic device switches from the first refresh rate 90fps to the second refresh rate 60fps, if the number of dropped frames in the display interface of the display screen does not exceed 7 (n +1) within the time of 2^ n ^ GoodTimeThreshold (n ^ 0,1,2, …), the electronic device switches back to 90fps, where n is the time and increases with the number of times of switching the display interface 90fps/60fps, and 2^ n ^ GoodTimeshold will become longer. When n is 0, the power of 2 of n is 1, 1 times the second time threshold GoodTimeThreshold (e.g., 1 second), equals 1 second, and as the number of handovers increases, n is 1, the power of 2 of n is 2, 2 times the second time threshold GoodTimeThreshold (e.g., 1 second), equals 2 seconds, and so on.
The processing flow of the scheme is as follows:
1) the maximum frame rate supported by a display screen of the electronic equipment is assumed to be 90fps, and a display interface of the display screen is operated at 90fps by default;
2) calculating the time (e.g. 80 ms) for the display interface to lose a fixed frame (e.g. 7 frames), and if the time is less than a threshold value badTimeThreshold (e.g. 300ms) and this occurs within 3 consecutive time windows (the time windows are shifted by 150 ms), then the display interface is considered to be unsuitable for operating at 90fps, and then the operation is returned to 60 fps;
3) after returning to the operation of 60fps, if the number of frames lost in the display interface within the time of 2^ n × GoodTimeThreshold (n ═ 0,1,2, …) does not exceed 7 × n +1, which indicates that the number of frames lost in the current display content is less, then returning to 90fps, and then circularly executing the steps 2-3;
4) and resetting the default value to 90fps when the refresh rate of the display interface of the application program needs to be switched, and repeatedly executing the steps 1-3.
In the application, the electronic device can also calculate the number of frames and the number of dropped frames meeting the requirement of the first frame rate in the first time period in the process of generating the display content of the output interface of the current application program based on the second frame rate; if the number of frames meeting the first frame rate requirement in the first time period reaches a first frame number threshold value and the number of dropped frames is smaller than a second frame number threshold value, determining that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate; or, if the number of frames meeting the first frame rate requirement in the first time period reaches a first frame number threshold and the number of dropped frames is less than a second frame number threshold, calculating the number of frames meeting the first frame rate requirement and the number of dropped frames in the second time period; if the number of frames meeting the first frame rate requirement in the second time period reaches a first frame number threshold value and the number of dropped frames is smaller than a second frame number threshold value, determining that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate; the duration of the second time period is equal to that of the first time period, the difference between the starting value of the second time period and the starting value of the first time period is M, and M is greater than or equal to 1. For example, the first time period may be 1-5 seconds, the second time period may be 2-6 seconds, and so on. That is, the first time period and the second time period are shifted by a smaller time interval therebetween. Thus, the detection accuracy of the frame rate can be improved.
The processing flow of the scheme is as follows:
1) the maximum frame rate supported by a display screen of the electronic equipment is assumed to be 90fps, and a display interface of the display screen is operated at 90fps by default;
2) calculating the number of lost frames of the display screen in a certain time window (such as 300ms), if the number of lost frames exceeds a threshold value (such as set to 7), and if the situation occurs in 3 continuous windows (such as window sliding and translation of 150 ms), determining that a stuck phenomenon occurs, and controlling the refresh rate of the display screen to be switched from 90fps to 60 fps;
3) if the frame number of one frame drawn within 11ms is 90% or more and the frame loss is very small (e.g. less than 3 frames) in a longer period of time (e.g. within 1 s) after the display interface of the display screen is switched to 60fps, and the conditions are met in 3 continuous windows (e.g. window sliding is translated in 500 ms), the display interface of the display screen is considered to be capable of operating at 90fps, and the refresh rate of the display screen is controlled to be switched from 60fps to 90 fps;
4) and when the refresh rate of the display interface of the application program needs to be switched, resetting the refresh rate to the default value of 90fps, and repeating the steps 1-3.
In the application, the electronic device determines that at least one page layer has a frame loss phenomenon based on the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period, and the electronic device can further continue to monitor the frame loss rate per second and the frame loss rate per N seconds of each page layer at the second frame rate under the condition that the refresh rate of the display screen is controlled to be switched from the first refresh rate to the second refresh rate by the second sub-policy. And if the comparison result indicates that the frame loss rate per second of at least one page layer at the second frame rate is less than the fifth frame rate threshold and the frame loss rate per N seconds of at least one page layer at the second frame rate is less than the sixth frame rate threshold, determining that the display interface of the current display screen is not blocked any more, and controlling the refresh rate of the display screen to be switched from the second refresh rate to the first refresh rate.
The fifth frame rate threshold is smaller than the sixth frame rate threshold, and the fifth frame rate threshold and the sixth frame rate threshold are both set according to the second frame rate (for example, based on 60 fps).
The processing flow of the scheme is as follows:
1) the maximum frame rate supported by a display screen of the electronic equipment is assumed to be 90fps, and a display interface of the display screen is operated at 90fps by default;
2) assuming that the current application program has 4 page layers, if the frame loss rate per second of at least one page layer in the first standard is greater than a certain frame rate threshold, the current running interface of the display screen is considered to run well at 90fps, if the frame loss rate per second of at least one page layer in the first standard is greater than a certain frame rate threshold (such as 15 frames) and the frame loss rate per N seconds of at least one page layer is greater than a certain frame rate threshold (such as 90 frames), the running interface of the current display screen is considered to be slightly stuck, and at the moment, the situation still occurs after continuous observation (such as 10 seconds), the current running interface of the display screen is controlled to be switched from 90Hz to 60 Hz.
The frame rate threshold is set based on 90fps, for example, the display screen can transmit 90 frames of pictures within 1 second, wherein the time for transmitting 1 frame of pictures is about 11 milliseconds, and the setting of 15 frames is 165 milliseconds.
3) After the current operation interface is switched from 90Hz to 60Hz, if the frame loss rate per second in the first standard is reduced to a certain range (for example, the frame loss rate per second is less than 5), and the frame loss rate per N (for example, every 10 seconds) in the first standard is less than 30, the karton phenomenon is considered to be no longer present, and at the moment, the current operation interface of the display screen is controlled to be switched from 60Hz to 90 Hz.
4) When the frame loss rate per second in the second standard is greater than a certain threshold (for example, 10 frames), and the frame loss rates per second in the second standard meet the above conditions within 3s continuously, the current system load is considered to be higher, the electronic device will force the refresh rate of the display screen to be switched back from the default 90fps to 60fps, and ignore the step 2-3, until each few frame loss rates in the second standard fall below the certain threshold (for example, 3 frames), and after each N seconds (for example, 10 seconds) of the second standard fall below the threshold (for example, 20), the refresh rate of the display screen is controlled to be switched from 60fps to 90fps, and after the refresh rate of the display screen is switched from 60fps to 90fps according to the parameters in the second standard, the parameter situation in the first standard is looked at, that is, the step 2-3 is repeated.
5) And resetting the default value to 90fps when the refresh rate of the display interface of the application program needs to be switched, and repeating the steps 1-4.
Here, in the first criterion, if at least one page layer has lost frames in different pulse signals within the same second, counting is performed according to the number of lost frames, for example, 4 layers are provided, wherein, in the same second, 1 frame is lost in the layer 1, 1 frame is lost in the layer 2, and no frame is lost in the layer 3 or the layer 4, the counting is 1 at the frame loss rate per second of the first criterion; if layer 1 loses 1 frame, layer 2 loses 3 frames, and both layer 3 and layer 4 have no frame loss in the same second, the number is counted as 3 (the maximum value of the frame loss is counted) at the frame loss rate per second of standard one. And then when the time condition of every N seconds is met, taking the sum of the number of lost frames per second in the criterion one as the number of lost frames per N seconds in the criterion one.
In the second standard, if at least one page layer has no frame loss in different pulse signals within the same second, the number is recorded as 0. For example, if layer 1 loses 1 frame, layer 2 does not lose frames, layer 3 has lost frames, and layer 4 also has lost frames, it is marked as 0 in standard two. If all the page layers have frame loss in different pulse signals within the same second, the number is recorded as 1. For example, if layer 1 loses 1 frame, layer 2 loses 1 frame, layer 3 loses 1 frame, and layer 4 also loses 1 frame, it is recorded as 1 in standard two, and if all page layers have lost frames in different pulse signals within the same second, and layer 1 loses 1 frame, layer 2 loses 3 frames, layer 3 loses 1 frame, and layer 4 loses 2 frames, it is recorded as 3 in standard two (maximum value of lost frame is recorded). Then, when the time condition of every N seconds is satisfied, the sum of the number of lost frames per second in the criterion two is taken as the number of lost frames per N seconds in the criterion two.
In the application, according to the second satisfied criterion, in the process of controlling the refresh rate of the display screen to be switched from 90fps to 60fps by using the first sub-policy, only the number of frame loss frames in each second is considered, and the frame loss rate of each N (for example, 10) seconds can not be considered, so that switching can be realized as soon as possible, and the switching efficiency of the refresh rate of the display screen can be accelerated.
However, according to the second criterion, in the process of controlling the refresh rate of the display screen to switch from 60fps to 90fps by using the first sub-strategy, not only the frame loss rate per second but also the frame loss rate per N seconds (for example, 10 seconds) need to be considered, which is to ensure the stability and accuracy of the refresh rate of the display screen after switching.
According to the method and the device, frame loss in the process of generating the display content of the output interface of the current application program at the current frame rate is generated by monitoring the display screen, and when the display content of the current output interface is determined to be blocked, the refreshing frequency of the display screen is switched according to the blocking condition in a self-adaptive mode, so that the blocking phenomenon caused by the display screen to the user in vision can be reduced, and the complicated operation caused by manual frame rate switching of the user is not needed.
Fig. 2 is a schematic structural diagram of an electronic device in the present application, as shown in the figure, including:
the generating unit 201 is configured to generate display content of an output interface of a current application program based on a first frame rate if a display screen of the electronic device is at a first refresh rate;
a monitoring unit 202, configured to monitor frame loss in the process of generating display content of an output interface of a current application based on the first frame rate, and obtain a first parameter value related to the frame loss;
a determining unit 203, configured to determine, based on the first parameter value and a first control policy, that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate, so that display content of an output interface of a current application program is continuously generated based on a second frame rate; the second frame rate is lower than the first frame rate;
the first control strategy is used for representing that the display content of the output interface of the current application program displayed and output by the display screen has a pause phenomenon.
In a preferred embodiment, the monitoring unit 202 is further configured to monitor frame loss in the process of generating the display content of the output interface of the current application based on the second frame rate, and obtain a second parameter value related to the frame loss; and triggers the determining unit 203 when a second parameter value related to the frame loss is obtained.
A determining unit 203, configured to determine, based on the second parameter value and a second control policy, that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate; the second control strategy is used for representing that the display content of the output interface of the current application program displayed and output by the display screen does not have a pause phenomenon.
In a preferred embodiment, the monitoring unit 202 specifically calculates a duration of N frames lost in the first time period in the process of generating the display content of the output interface of the current application program based on the first frame rate, and takes the duration of N frames lost in the first time period as the first parameter value. Wherein N is greater than or equal to 2; the duration used for dropping N frames characterizes the total duration from the beginning of the first frame being dropped to the end of the N frames being dropped. Alternatively, the elapsed time for the lost N frames represents the total time from the beginning of the transmission of the first frame to the end of the lost N frames. If the used time length of losing N frames in the first time period is less than a first time threshold, triggering a determining unit 203 to determine that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate; the first time threshold represents the corresponding time when the display content of the output interface of the current application program has a pause phenomenon; or, if the duration of losing N frames in the first time period is less than the first time threshold, the monitoring unit 202 calculates the duration of losing N frames in the second time period; the second time period is equal to the first time period in duration, the difference between the starting value of the second time period and the starting value of the first time period is M, and M is greater than or equal to 1; if the used time length of losing N frames in the second time period is less than the first time threshold, the determining unit 203 is triggered to determine that the refresh rate of the display screen is switched from the first refresh rate to the second refresh rate.
In a preferred embodiment, the monitoring unit 202 is specifically configured to calculate a number of lost frames within a second time threshold in a process of generating display content of an output interface of a current application program based on the second frame rate; and the second time threshold represents the corresponding time when the display screen displays and outputs the display content of the output interface of the current application program without the pause phenomenon. If the number of lost frames is smaller than a first frame number threshold, the monitoring unit 202 triggers the determining unit 203 to determine that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate; wherein the second time threshold and the first frame number threshold are both related to the number of times of switching of the refresh rate of the display screen.
In a preferred embodiment, the monitoring unit 202 is further specifically configured to calculate a number of lost frames in a first time period in a process of generating display content of an output interface of a current application program based on the first frame rate; if the number of lost frames in the first time period reaches the frame number threshold, the monitoring unit 202 triggers the determining unit 203 to determine that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate;
or, if the number of lost frames in the first time period reaches the frame number threshold, the monitoring unit 202 may further calculate the number of lost frames in the second time period; the second time period is equal to the first time period in duration, the difference between the starting value of the second time period and the starting value of the first time period is M, and M is greater than or equal to 1; if the number of lost frames in the second time period reaches the frame number threshold, the monitoring unit 202 triggers the determination unit 203 to determine that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate.
In a preferred embodiment, the monitoring unit 202 is further specifically configured to calculate the number of frames and the number of dropped frames meeting the first frame rate requirement in a first time period in a process of generating display content of an output interface of a current application program based on the second frame rate; if the number of frames meeting the first frame rate requirement in a first time period reaches a first frame number threshold and the number of dropped frames is less than a second frame number threshold, the monitoring unit 202 triggers the determining unit 201 to determine that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate;
or, if the number of frames meeting the first frame rate requirement in the first time period reaches a first frame number threshold and the number of dropped frames is less than the second frame number threshold, the monitoring unit 202 calculates the number of frames meeting the first frame rate requirement and the number of dropped frames in the second time period; if the number of frames meeting the first frame rate requirement in a second time period reaches a first frame number threshold and the number of dropped frames is less than a second frame number threshold, the monitoring unit 202 triggers the determining unit 201 to determine that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate; the second time period is equal to the first time period in duration, the difference between the starting value of the second time period and the starting value of the first time period is M, and M is greater than or equal to 1.
In a preferred embodiment, the monitoring unit 202 is further specifically configured to monitor frame loss of each page layer in the current application program in a first time period in a process of generating display content of an output interface of the current application program based on the first frame rate, so as to obtain a frame loss rate per second and a frame loss rate per N seconds of each page layer in the first time period, where N is greater than or equal to 2. Under the condition that the frame loss phenomenon of each page layer is determined to occur based on the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period, the refresh rate of the display screen is controlled to be switched from the first refresh rate to the second refresh rate by a first sub-strategy; or under the condition that the frame loss phenomenon of at least one page layer is determined based on the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period, controlling the refresh rate of the display screen to be switched from the first refresh rate to a second refresh rate by a second sub-strategy; wherein the first sub-policy has a higher priority than the second sub-policy.
In a preferred embodiment, the monitoring unit 202 is further specifically configured to monitor the number of dropped frames in each pulse signal of each page layer in the first time period in a process of generating display content of an output interface of a current application program based on the first frame rate; triggering the generating unit 201 when the frame loss number of each page layer in each pulse signal in the first time period is monitored, and generating the frame loss rate per second of each page layer in the first time period by the generating unit 201 based on the frame loss number of each page layer in each pulse signal; and generating a frame loss rate per N seconds of each page layer in the first time period based on the frame loss rate per second of each page layer in the first time period.
In a preferred embodiment, the monitoring unit 202 is specifically configured to, when the refresh rate of the display screen is controlled to be switched from the first refresh rate to the second refresh rate by the first sub-policy, if the frame loss rate per second of each page layer at the second frame rate is less than a third frame rate threshold and the frame loss rate per N seconds of each page layer at the second frame rate is less than a fourth frame rate threshold, control the refresh rate of the display screen to be switched from the second refresh rate to the first refresh rate by the first sub-policy, so that when it is determined that a frame loss phenomenon occurs in at least one page layer based on the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period, the refresh rate of the display screen can be controlled to be switched from the first refresh rate to the second refresh rate by the second sub-policy; and the third frame rate threshold is smaller than the fourth frame rate threshold, and the third frame rate threshold and the fourth frame rate threshold are both set according to the second frame rate.
In a preferred embodiment, the determining unit 203 is specifically configured to, based on the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period, determine that a frame loss phenomenon occurs in each page layer, if the frame loss rate per second of each page layer in the first time period is greater than a first frame rate threshold and the frame loss rate per N seconds of each page layer in the first time period is greater than a second frame rate threshold, trigger the controlling unit 204 to control the refresh rate of the display screen to be switched from the first refresh rate to a second refresh rate by using a first sub-policy; the first frame rate threshold is smaller than the second frame rate threshold, and the first frame rate threshold and the second frame rate threshold are both set according to the first frame rate; or, the determining unit 203 determines that a frame loss phenomenon occurs in each page layer based on the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period, and when the frame loss rate per second of each page layer in the first time period is greater than a first frame rate threshold and the frame loss rate per N seconds of each page layer in the first time period is greater than a second frame rate threshold, the triggering and monitoring unit 201 monitors frame loss of each page layer in the current application program in the second time period to obtain the frame loss rate per second and the frame loss rate per N seconds of each page layer in the second time period, where N is greater than or equal to 2; if the frame loss rate per second of each page layer in the second time period is greater than the first frame rate threshold, and the frame loss rate per N seconds of each page layer in the second time period is greater than the second frame rate threshold, triggering the control unit 204 to control the refresh rate of the display screen to switch from the first refresh rate to a second refresh rate with a first sub-policy; the time lengths of the first time period and the second time period are equal, the difference between the starting value of the first time period and the starting value of the second time period is M, and M is greater than or equal to 1.
It should be noted that: in the electronic device provided in the above embodiment, when performing information processing, only the division of each program module is exemplified, and in practical applications, the processing distribution may be completed by different program modules according to needs, that is, the internal structure of the device may be divided into different program modules to complete all or part of the processing described above. In addition, the electronic device provided by the above embodiment and the information processing method embodiment provided by the above embodiment belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment and are not described herein again.
An embodiment of the present application further provides another electronic device, including: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is configured to execute, when running the computer program: if the display screen of the electronic equipment is at the first refresh rate, generating display content of an output interface of the current application program based on the first frame rate;
monitoring frame loss in the process of generating the display content of the output interface of the current application program based on the first frame rate to obtain a first parameter value related to the frame loss;
determining that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate based on the first parameter value and a first control strategy, so that the display content of the output interface of the current application program is continuously generated based on a second frame rate; the second frame rate is lower than the first frame rate;
the first control strategy is used for representing that the display content of the output interface of the current application program displayed and output by the display screen has a pause phenomenon.
The processor is further configured to, when executing the computer program, perform: monitoring frame loss in the process of generating the display content of the output interface of the current application program based on the second frame rate to obtain a second parameter value related to the frame loss;
determining that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate based on the second parameter value and a second control strategy; the second control strategy is used for representing that the display content of the output interface of the current application program displayed and output by the display screen does not have a pause phenomenon.
The processor is further configured to, when executing the computer program, perform: in the process of generating the display content of the output interface of the current application program based on the first frame rate, calculating the used time length of losing N frames in a first time period, wherein N is more than or equal to 2; the used time length of the lost N frames represents the total time length from the beginning of the first frame loss to the end of the N frame loss; if the used duration of N lost frames in the first time period is less than a first time threshold, determining that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate; the first time threshold represents the corresponding time when the display content of the output interface of the current application program has a pause phenomenon;
or if the used time length of losing N frames in the first time period is less than the first time threshold, calculating the used time length of losing N frames in the second time period; the second time period is equal to the first time period in duration, the difference between the starting value of the second time period and the starting value of the first time period is M, and M is greater than or equal to 1;
and if the used time length of losing N frames in the second time period is less than the first time threshold, determining that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate.
The processor is further configured to, when executing the computer program, perform: calculating the number of lost frames within a second time threshold in the process of generating the display content of the output interface of the current application program based on the second frame rate; the second time threshold represents the corresponding time when the display screen displays and outputs the display content of the output interface of the current application program and the pause phenomenon does not occur; if the number of lost frames is smaller than a first frame number threshold value, determining that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate;
wherein the second time threshold and the first frame number threshold are both related to the number of times of switching of the refresh rate of the display screen.
The processor is further configured to, when executing the computer program, perform: calculating the number of lost frames in a first time period in the process of generating the display content of the output interface of the current application program based on the first frame rate; if the number of lost frames in a first time period reaches a frame number threshold, determining that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate;
or, if the frame loss number in the first time period reaches the frame number threshold, calculating the frame loss number in the second time period; the second time period is equal to the first time period in duration, the difference between the starting value of the second time period and the starting value of the first time period is M, and M is greater than or equal to 1;
and if the number of lost frames in a second time period reaches the frame number threshold, determining that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate.
The processor is further configured to, when executing the computer program, perform: in the process of generating the display content of the output interface of the current application program based on the second frame rate, calculating the number of frames and the number of frame losses meeting the requirement of the first frame rate in a first time period; if the number of frames meeting the first frame rate requirement in a first time period reaches a first frame number threshold value and the number of dropped frames is smaller than a second frame number threshold value, determining that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate;
or, if the number of frames meeting the first frame rate requirement in the first time period reaches a first frame number threshold and the number of dropped frames is less than a second frame number threshold, calculating the number of frames meeting the first frame rate requirement and the number of dropped frames in the second time period;
if the number of frames meeting the first frame rate requirement in a second time period reaches a first frame number threshold value and the number of frame loss is smaller than a second frame number threshold value, determining that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate; the second time period is equal to the first time period in duration, the difference between the starting value of the second time period and the starting value of the first time period is M, and M is greater than or equal to 1.
The processor is further configured to, when executing the computer program, perform: in the process of generating the display content of the output interface of the current application program based on the first frame rate, monitoring the frame loss of each page layer in the current application program in a first time period to obtain the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period, wherein N is more than or equal to 2; under the condition that the frame loss phenomenon of each page layer is determined to occur based on the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period, the refresh rate of the display screen is controlled to be switched from the first refresh rate to the second refresh rate by a first sub-strategy;
or under the condition that the frame loss phenomenon of at least one page layer is determined based on the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period, controlling the refresh rate of the display screen to be switched from the first refresh rate to a second refresh rate by a second sub-strategy;
wherein the first sub-policy has a higher priority than the second sub-policy.
The processor is further configured to, when executing the computer program, perform: monitoring the frame loss number of each page layer in each pulse signal in the first time period in the process of generating the display content of the output interface of the current application program based on the first frame rate; generating a frame loss rate per second of each page layer in the first time period based on the frame loss number of each page layer in each pulse signal; and generating a frame loss rate per N seconds of each page layer in the first time period based on the frame loss rate per second of each page layer in the first time period.
The processor is further configured to, when executing the computer program, perform: under the condition that frame loss occurs to each page layer based on the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period, if the frame loss rate per second of each page layer in the first time period is larger than a first frame rate threshold value and the frame loss rate per N seconds of each page layer in the first time period is larger than a second frame rate threshold value, controlling the refresh rate of the display screen to be switched from the first refresh rate to a second refresh rate by a first sub-strategy; the first frame rate threshold is smaller than the second frame rate threshold, and the first frame rate threshold and the second frame rate threshold are both set according to the first frame rate;
or, determining that a frame loss phenomenon occurs to each page layer based on the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period, and monitoring the frame loss of each page layer in the current application program in the second time period under the condition that the frame loss rate per second of each page layer in the first time period is greater than a first frame rate threshold and the frame loss rate per N seconds of each page layer in the first time period is greater than a second frame rate threshold, so as to obtain the frame loss rate per second and the frame loss rate per N seconds of each page layer in the second time period, wherein N is greater than or equal to 2; if the frame loss rate per second of each page layer in the second time period is larger than the first frame rate threshold value, and the frame loss rate per N seconds of each page layer in the second time period is larger than the second frame rate threshold value, controlling the refresh rate of the display screen to be switched from the first refresh rate to a second refresh rate by a first sub-strategy; the time lengths of the first time period and the second time period are equal, the difference between the starting value of the first time period and the starting value of the second time period is M, and M is greater than or equal to 1.
Fig. 3 is a schematic structural component diagram of an electronic device 300 in the present application, where the electronic device 300 may be a television, a mobile phone, a computer, a digital broadcast terminal, an information transceiver, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or another terminal with a display screen. The electronic device 300 shown in fig. 3 includes: at least one processor 301, memory 302, at least one network interface 304, and a user interface 303. The various components in electronic device 300 are coupled together by a bus system 305. It will be appreciated that the bus system 305 is used to enable communications among the components connected. The bus system 305 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 305 in fig. 3.
The user interface 303 may include, among other things, a display, a keyboard, a mouse, a trackball, a click wheel, a key, a button, a touch pad, or a touch screen.
It will be appreciated that the memory 302 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 302 described in embodiments herein is intended to comprise, without being limited to, these and any other suitable types of memory.
The memory 302 in the embodiments of the present application is used to store various types of data to support the operation of the electronic device 300. Examples of such data include: any computer programs for operating on the electronic device 300, such as an operating system 3021 and application programs 3022; contact data; telephone book data; a message; a picture; audio, etc. Operating system 3021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and for processing hardware-based tasks. The application programs 3022 may contain various application programs such as a map, a Media Player (Media Player), a Browser (Browser), etc. for implementing various application services. A program for implementing the method according to the embodiment of the present application may be included in the application program 3022.
The method disclosed in the embodiment of the present application may be applied to the processor 301, or implemented by the processor 301. The processor 301 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 301. The Processor 301 may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor 301 may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 302, and the processor 301 reads the information in the memory 302 and performs the steps of the aforementioned methods in conjunction with its hardware.
In an exemplary embodiment, the electronic Device 300 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the aforementioned methods.
In an exemplary embodiment, the present application further provides a computer readable storage medium, such as a memory 302, comprising a computer program, which is executable by a processor 301 of an electronic device 300 to perform the steps of the foregoing method. The computer readable storage medium can be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM; or may be a variety of devices including one or any combination of the above memories, such as a mobile phone, computer, tablet device, personal digital assistant, etc.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, performs: if the display screen of the electronic equipment is at the first refresh rate, generating display content of an output interface of the current application program based on the first frame rate;
monitoring frame loss in the process of generating the display content of the output interface of the current application program based on the first frame rate to obtain a first parameter value related to the frame loss;
determining that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate based on the first parameter value and a first control strategy, so that the display content of the output interface of the current application program is continuously generated based on a second frame rate; the second frame rate is lower than the first frame rate;
the first control strategy is used for representing that the display content of the output interface of the current application program displayed and output by the display screen has a pause phenomenon.
The computer program, when executed by the processor, further performs: monitoring frame loss in the process of generating the display content of the output interface of the current application program based on the second frame rate to obtain a second parameter value related to the frame loss;
determining that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate based on the second parameter value and a second control strategy; the second control strategy is used for representing that the display content of the output interface of the current application program displayed and output by the display screen does not have a pause phenomenon.
The computer program, when executed by the processor, further performs: in the process of generating the display content of the output interface of the current application program based on the first frame rate, calculating the used time length of losing N frames in a first time period, wherein N is more than or equal to 2; the used time length of the lost N frames represents the total time length from the beginning of the first frame loss to the end of the N frame loss; if the used duration of N lost frames in the first time period is less than a first time threshold, determining that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate; the first time threshold represents the corresponding time when the display content of the output interface of the current application program has a pause phenomenon;
or if the used time length of losing N frames in the first time period is less than the first time threshold, calculating the used time length of losing N frames in the second time period; the second time period is equal to the first time period in duration, the difference between the starting value of the second time period and the starting value of the first time period is M, and M is greater than or equal to 1;
and if the used time length of losing N frames in the second time period is less than the first time threshold, determining that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate.
The computer program, when executed by the processor, further performs: calculating the number of lost frames within a second time threshold in the process of generating the display content of the output interface of the current application program based on the second frame rate; the second time threshold represents the corresponding time when the display screen displays and outputs the display content of the output interface of the current application program and the pause phenomenon does not occur; if the number of lost frames is smaller than a first frame number threshold value, determining that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate;
wherein the second time threshold and the first frame number threshold are both related to the number of times of switching of the refresh rate of the display screen.
The computer program, when executed by the processor, further performs: calculating the number of lost frames in a first time period in the process of generating the display content of the output interface of the current application program based on the first frame rate; if the number of lost frames in a first time period reaches a frame number threshold, determining that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate;
or, if the frame loss number in the first time period reaches the frame number threshold, calculating the frame loss number in the second time period; the second time period is equal to the first time period in duration, the difference between the starting value of the second time period and the starting value of the first time period is M, and M is greater than or equal to 1;
and if the number of lost frames in a second time period reaches the frame number threshold, determining that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate.
The computer program, when executed by the processor, further performs: in the process of generating the display content of the output interface of the current application program based on the second frame rate, calculating the number of frames and the number of frame losses meeting the requirement of the first frame rate in a first time period; if the number of frames meeting the first frame rate requirement in a first time period reaches a first frame number threshold value and the number of dropped frames is smaller than a second frame number threshold value, determining that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate;
or, if the number of frames meeting the first frame rate requirement in the first time period reaches a first frame number threshold and the number of dropped frames is less than a second frame number threshold, calculating the number of frames meeting the first frame rate requirement and the number of dropped frames in the second time period;
if the number of frames meeting the first frame rate requirement in a second time period reaches a first frame number threshold value and the number of frame loss is smaller than a second frame number threshold value, determining that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate; the second time period is equal to the first time period in duration, the difference between the starting value of the second time period and the starting value of the first time period is M, and M is greater than or equal to 1.
The computer program, when executed by the processor, further performs: in the process of generating the display content of the output interface of the current application program based on the first frame rate, monitoring the frame loss of each page layer in the current application program in a first time period to obtain the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period, wherein N is more than or equal to 2; under the condition that the frame loss phenomenon of each page layer is determined to occur based on the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period, the refresh rate of the display screen is controlled to be switched from the first refresh rate to the second refresh rate by a first sub-strategy;
or under the condition that the frame loss phenomenon of at least one page layer is determined based on the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period, controlling the refresh rate of the display screen to be switched from the first refresh rate to a second refresh rate by a second sub-strategy;
wherein the first sub-policy has a higher priority than the second sub-policy.
The computer program, when executed by the processor, further performs: monitoring the frame loss number of each page layer in each pulse signal in the first time period in the process of generating the display content of the output interface of the current application program based on the first frame rate; generating a frame loss rate per second of each page layer in the first time period based on the frame loss number of each page layer in each pulse signal; and generating a frame loss rate per N seconds of each page layer in the first time period based on the frame loss rate per second of each page layer in the first time period.
The computer program, when executed by the processor, further performs: under the condition that frame loss occurs to each page layer based on the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period, if the frame loss rate per second of each page layer in the first time period is larger than a first frame rate threshold value and the frame loss rate per N seconds of each page layer in the first time period is larger than a second frame rate threshold value, controlling the refresh rate of the display screen to be switched from the first refresh rate to a second refresh rate by a first sub-strategy; the first frame rate threshold is smaller than the second frame rate threshold, and the first frame rate threshold and the second frame rate threshold are both set according to the first frame rate;
or, determining that a frame loss phenomenon occurs to each page layer based on the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period, and monitoring the frame loss of each page layer in the current application program in the second time period under the condition that the frame loss rate per second of each page layer in the first time period is greater than a first frame rate threshold and the frame loss rate per N seconds of each page layer in the first time period is greater than a second frame rate threshold, so as to obtain the frame loss rate per second and the frame loss rate per N seconds of each page layer in the second time period, wherein N is greater than or equal to 2; if the frame loss rate per second of each page layer in the second time period is larger than the first frame rate threshold value, and the frame loss rate per N seconds of each page layer in the second time period is larger than the second frame rate threshold value, controlling the refresh rate of the display screen to be switched from the first refresh rate to a second refresh rate by a first sub-strategy; the time lengths of the first time period and the second time period are equal, the difference between the starting value of the first time period and the starting value of the second time period is M, and M is greater than or equal to 1.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments.
Features disclosed in several of the product embodiments provided in the present application may be combined in any combination to yield new product embodiments without conflict.
The features disclosed in the several method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. An information processing method, the method comprising:
if the display screen of the electronic equipment is at the first refresh rate, generating display content of an output interface of the current application program based on the first frame rate;
monitoring frame loss in the process of generating the display content of the output interface of the current application program based on the first frame rate to obtain a first parameter value related to the frame loss;
determining that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate based on the first parameter value and a first control strategy, so that the display content of the output interface of the current application program is continuously generated based on a second frame rate; the second frame rate is lower than the first frame rate;
the first control strategy is used for representing that the display content of the output interface of the current application program displayed and output by the display screen has a pause phenomenon.
2. The method of claim 1, further comprising:
monitoring frame loss in the process of generating the display content of the output interface of the current application program based on the second frame rate to obtain a second parameter value related to the frame loss;
determining that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate based on the second parameter value and a second control strategy; the second control strategy is used for representing that the display content of the output interface of the current application program displayed and output by the display screen does not have a pause phenomenon.
3. The method of claim 2, monitoring for frame loss during the process of generating the display content of the output interface of the current application based on the first frame rate, and obtaining a first parameter value related to the frame loss, comprising:
in the process of generating the display content of the output interface of the current application program based on the first frame rate, calculating the used time length of losing N frames in a first time period, wherein N is more than or equal to 2; the used time length of the lost N frames represents the total time length from the beginning of the first frame loss to the end of the N frame loss;
determining that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate based on the first parameter value and a first control strategy, comprising:
if the used duration of N lost frames in the first time period is less than a first time threshold, determining that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate; the first time threshold represents the corresponding time when the display content of the output interface of the current application program has a pause phenomenon;
or if the used time length of losing N frames in the first time period is less than the first time threshold, calculating the used time length of losing N frames in the second time period; the second time period is equal to the first time period in duration, the difference between the starting value of the second time period and the starting value of the first time period is M, and M is greater than or equal to 1;
and if the used time length of losing N frames in the second time period is less than the first time threshold, determining that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate.
4. The method of claim 3, monitoring for frame loss during the process of generating the display content of the output interface of the current application based on the second frame rate, and obtaining a second parameter value related to the frame loss, comprising:
calculating the number of lost frames within a second time threshold in the process of generating the display content of the output interface of the current application program based on the second frame rate; the second time threshold represents the corresponding time when the display screen displays and outputs the display content of the output interface of the current application program and the pause phenomenon does not occur;
determining that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate based on the second parameter value and a second control policy, comprising:
if the number of lost frames is smaller than a first frame number threshold value, determining that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate;
wherein the second time threshold and the first frame number threshold are both related to the number of times of switching of the refresh rate of the display screen.
5. The method of claim 2, monitoring for frame loss during the process of generating the display content of the output interface of the current application based on the first frame rate, and obtaining a first parameter value related to the frame loss, comprising:
calculating the number of lost frames in a first time period in the process of generating the display content of the output interface of the current application program based on the first frame rate;
determining that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate based on the first parameter value and a first control strategy, comprising:
if the number of lost frames in a first time period reaches a frame number threshold, determining that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate;
or, if the frame loss number in the first time period reaches the frame number threshold, calculating the frame loss number in the second time period; the second time period is equal to the first time period in duration, the difference between the starting value of the second time period and the starting value of the first time period is M, and M is greater than or equal to 1;
and if the number of lost frames in a second time period reaches the frame number threshold, determining that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate.
6. The method of claim 5, monitoring for frame loss during the process of generating the display content of the output interface of the current application based on the second frame rate, and obtaining a second parameter value related to the frame loss, comprising:
in the process of generating the display content of the output interface of the current application program based on the second frame rate, calculating the number of frames and the number of frame losses meeting the requirement of the first frame rate in a first time period;
determining that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate based on the second parameter value and a second control policy, comprising:
if the number of frames meeting the first frame rate requirement in a first time period reaches a first frame number threshold value and the number of dropped frames is smaller than a second frame number threshold value, determining that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate;
or, if the number of frames meeting the first frame rate requirement in the first time period reaches a first frame number threshold and the number of dropped frames is less than a second frame number threshold, calculating the number of frames meeting the first frame rate requirement and the number of dropped frames in the second time period;
if the number of frames meeting the first frame rate requirement in a second time period reaches a first frame number threshold value and the number of frame loss is smaller than a second frame number threshold value, determining that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate; the second time period is equal to the first time period in duration, the difference between the starting value of the second time period and the starting value of the first time period is M, and M is greater than or equal to 1.
7. The method of claim 2, monitoring for frame loss during the process of generating the display content of the output interface of the current application based on the first frame rate, and obtaining a first parameter value related to the frame loss, comprising:
in the process of generating the display content of the output interface of the current application program based on the first frame rate, monitoring the frame loss of each page layer in the current application program in a first time period to obtain the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period, wherein N is more than or equal to 2;
determining that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate based on the first parameter value and a first control strategy, comprising:
under the condition that the frame loss phenomenon of each page layer is determined to occur based on the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period, the refresh rate of the display screen is controlled to be switched from the first refresh rate to the second refresh rate by a first sub-strategy;
or under the condition that the frame loss phenomenon of at least one page layer is determined based on the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period, controlling the refresh rate of the display screen to be switched from the first refresh rate to a second refresh rate by a second sub-strategy;
wherein the first sub-policy has a higher priority than the second sub-policy.
8. The method of claim 7, wherein monitoring for frame loss of each page layer in the current application for a first time period to obtain a frame loss per second and a frame loss per N seconds for each page layer for the first time period comprises:
monitoring the frame loss number of each page layer in each pulse signal in the first time period in the process of generating the display content of the output interface of the current application program based on the first frame rate;
generating a frame loss rate per second of each page layer in the first time period based on the frame loss number of each page layer in each pulse signal; and generating a frame loss rate per N seconds of each page layer in the first time period based on the frame loss rate per second of each page layer in the first time period.
9. The method of claim 7, the first sub-policy having a higher priority than the second sub-policy, comprising:
under the condition that the refresh rate of the display screen is controlled to be switched from the first refresh rate to the second refresh rate by the first sub-strategy, if the frame loss rate per second of each page layer at the second frame rate is smaller than a third frame rate threshold and the frame loss rate per N seconds of each page layer at the second frame rate is smaller than a fourth frame rate threshold, the refresh rate of the display screen is controlled to be switched from the second refresh rate to the first refresh rate by the first sub-strategy, so that under the condition that the frame loss phenomenon of at least one page layer is determined based on the frame loss rate per second and the frame loss rate per N seconds of each page layer in the first time period, the refresh rate of the display screen can be controlled to be switched from the first refresh rate to the second refresh rate by the second sub-strategy;
and the third frame rate threshold is smaller than the fourth frame rate threshold, and the third frame rate threshold and the fourth frame rate threshold are both set according to the second frame rate.
10. An electronic device, comprising:
the generating unit is used for generating the display content of the output interface of the current application program based on the first frame rate if the display screen of the electronic equipment is at the first refresh rate;
the monitoring unit is used for monitoring frame loss in the process of generating the display content of the output interface of the current application program based on the first frame rate to obtain a first parameter value related to the frame loss;
the determining unit is used for determining that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate based on the first parameter value and a first control strategy, so that the display content of the output interface of the current application program is continuously generated based on a second frame rate; the second frame rate is lower than the first frame rate;
the first control strategy is used for representing that the display content of the output interface of the current application program displayed and output by the display screen has a pause phenomenon.
CN202110219645.4A 2021-02-26 2021-02-26 Information processing method and electronic equipment Pending CN112948041A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110219645.4A CN112948041A (en) 2021-02-26 2021-02-26 Information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110219645.4A CN112948041A (en) 2021-02-26 2021-02-26 Information processing method and electronic equipment

Publications (1)

Publication Number Publication Date
CN112948041A true CN112948041A (en) 2021-06-11

Family

ID=76246627

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110219645.4A Pending CN112948041A (en) 2021-02-26 2021-02-26 Information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN112948041A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113572917A (en) * 2021-09-27 2021-10-29 北京天图万境科技有限公司 Electronic clapper board and clapper control system
CN113936622A (en) * 2021-09-30 2022-01-14 联想(北京)有限公司 Processing method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130265294A1 (en) * 2012-04-05 2013-10-10 Apple Inc. Decreasing power consumption in display devices
CN107544842A (en) * 2017-08-25 2018-01-05 广东欧珀移动通信有限公司 Applied program processing method and device, computer equipment, storage medium
CN109104638A (en) * 2018-08-03 2018-12-28 Oppo广东移动通信有限公司 Frame per second optimization method, device, terminal and storage medium
CN109343997A (en) * 2018-10-31 2019-02-15 Oppo广东移动通信有限公司 Caton detection method, device, terminal and storage medium
CN109376053A (en) * 2018-09-20 2019-02-22 Oppo广东移动通信有限公司 Data processing method, device and mobile terminal
CN110175062A (en) * 2019-05-20 2019-08-27 努比亚技术有限公司 A kind of screen-refresh frame per second method, mobile terminal and the storage medium of mobile terminal
CN110647366A (en) * 2019-09-19 2020-01-03 Oppo广东移动通信有限公司 Method, device, terminal and storage medium for processing card pause

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130265294A1 (en) * 2012-04-05 2013-10-10 Apple Inc. Decreasing power consumption in display devices
CN107544842A (en) * 2017-08-25 2018-01-05 广东欧珀移动通信有限公司 Applied program processing method and device, computer equipment, storage medium
CN109104638A (en) * 2018-08-03 2018-12-28 Oppo广东移动通信有限公司 Frame per second optimization method, device, terminal and storage medium
CN109376053A (en) * 2018-09-20 2019-02-22 Oppo广东移动通信有限公司 Data processing method, device and mobile terminal
CN109343997A (en) * 2018-10-31 2019-02-15 Oppo广东移动通信有限公司 Caton detection method, device, terminal and storage medium
CN110175062A (en) * 2019-05-20 2019-08-27 努比亚技术有限公司 A kind of screen-refresh frame per second method, mobile terminal and the storage medium of mobile terminal
CN110647366A (en) * 2019-09-19 2020-01-03 Oppo广东移动通信有限公司 Method, device, terminal and storage medium for processing card pause

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113572917A (en) * 2021-09-27 2021-10-29 北京天图万境科技有限公司 Electronic clapper board and clapper control system
CN113572917B (en) * 2021-09-27 2021-12-31 北京天图万境科技有限公司 Electronic clapper board and clapper control system
CN113936622A (en) * 2021-09-30 2022-01-14 联想(北京)有限公司 Processing method and device

Similar Documents

Publication Publication Date Title
CN112948041A (en) Information processing method and electronic equipment
US9336754B2 (en) Methods and apparatuses for controlling display refresh rate
CN108399222A (en) A kind of page furbishing method and device
JP2017536783A (en) Video special effect processing method, apparatus, terminal device, program, and recording medium
EP4092508A1 (en) Temperature control method, temperature control apparatus, and storage medium
CN110611829A (en) Video preloading method and device, electronic equipment and storage medium
JP6518387B2 (en) Method and device for triggering interactive application
CN113923499B (en) Display control method, device, equipment and storage medium
CN113766324A (en) Video playing control method and device, computer equipment and storage medium
CN110267088B (en) Video playing control method and device, electronic equipment and storage medium
CN106648540B (en) Music switching method and device
CN106547502A (en) A kind of display packing of information content and corresponding terminal unit
CN115469816A (en) Read-write switching method, device and equipment of memory and storage medium
CN116233554A (en) Video playing method, device, electronic equipment and storage medium
CN115695699A (en) Display frame rate adjusting method and device, terminal and storage medium
CN115460458A (en) Video frame loss method and device
CN114302180A (en) Video single-frame playing method, device, server, system and storage medium
CN110225391B (en) Video playing control method and device, electronic equipment and storage medium
CN111767136A (en) Process management method, terminal and device with storage function
CN110968523A (en) Memory defragmentation method and device
CN113038333B (en) Bluetooth headset control method and device, electronic equipment and readable storage medium
EP4262216A1 (en) Encoding method, electronic device, communication system, storage medium, and program product
EP4064717A1 (en) Method and device for audio and video synchronization
CN114125479B (en) Information processing method, apparatus, electronic device and storage medium
CN111294656B (en) Method and device for adjusting video playing and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination