Information processing method and electronic device

By monitoring the frame drop situation during the process of generating the display content of the application output interface at different frame rates for electronic devices, and automatically switch the refresh rate of the display screen, the problems of cumbersome frame rate switching operations and poor user experience in the prior art are solved. A smoother user experience is achieved.

CN112948041BActive Publication Date: 2025-02-25LENOVO (BEIJING) LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110219645.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-26
Publication Date
2025-02-25
Estimated Expiration
2041-02-26

AI Technical Summary

Technical Problem

When existing electronic devices run applications that support higher frame rates, if they switch to lower frame rates, they are prone to frame loss and stuttering, and users need to manually switch frame rates, which is cumbersome and has poor user experience.

Method used

By monitoring the frame drop situation during the process of generating the display content of the application output interface at different frame rates for the electronic device, the refresh rate of the display is automatically switched to avoid lag.

Benefits of technology

It realizes that the frame rate is automatically adjusted without the need for manual operation of the user to avoid frame loss and lag, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112948041B_ABST
    Figure CN112948041B_ABST
Patent Text Reader

Abstract

The present application provides an information processing method, the method comprising: if the display screen of the electronic device is at a first refresh rate, generating the display content of the output interface of the current application based on the first frame rate; monitoring the frame loss in 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; based on the first parameter value and a first control strategy, determining that the refresh rate of the display screen switches from the first refresh rate to a second refresh rate, so that the display content of the output interface of the current application continues to be generated based on the second frame rate; the second frame rate is lower than the first frame rate; wherein the first control strategy is used to characterize that the display screen displays the display content of the output interface of the current application and there is a freeze phenomenon. At the same time, the present application also provides an electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to frame rate processing technology, and in particular to an information processing method and electronic device. Background Art

[0002] Existing electronic devices support frame rate refreshes of 60, 90, and 120fps, but some applications in certain scenarios support different frame rates, some support frame rate refreshes of 90 and 120fps, and some support frame rate refreshes of 60, 90, and 120fps. If an application that supports the higher 90 and 120fps runs at a lower 60fps, frame loss and stuttering will occur. For example, when a map application is scaling the interface, if the current running interface is at 90fps, serious frame loss will occur, and the user will also visually feel obvious screen stuttering. In the prior art, users are usually required to manually switch to select a suitable frame rate, which is not only cumbersome to operate, but also gives users a poor user experience. Therefore, providing a method that can automatically switch the frame rate is an issue that needs to be urgently addressed. Summary of the invention

[0003] In view of this, embodiments of the present application hope to provide an information processing method and an electronic device.

[0004] According to one aspect of the present application, there is provided an information processing method, the method comprising:

[0005] If the display screen of the electronic device is at a first refresh rate, generating display content of the output interface of the current application based on the first frame rate;

[0006] Monitoring frame loss in the process of generating 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;

[0007] Based on the first parameter value and the first control strategy, determining that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate, so that the display content of the output interface of the current application continues to be generated based on the second frame rate; the second frame rate is lower than the first frame rate;

[0008] The first control strategy is used to indicate that a freeze occurs in the display content of the output interface of the current application displayed on the display screen.

[0009] In the above scheme, the method further includes:

[0010] Monitoring frame loss during the process of generating 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;

[0011] Based on the second parameter value and the second control strategy, determine 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 to characterize that the display screen displays the output interface of the current application without any lag.

[0012] In the above solution, monitoring frame loss in the process of generating display content of the output interface of the current application based on the first frame rate to obtain a first parameter value related to the frame loss includes:

[0013] In the process of generating the display content of the output interface of the current application based on the first frame rate, calculating the duration of losing N frames in the first time period, where N is greater than or equal to 2; the duration of losing N frames represents the total duration from the start of losing the first frame to the end of losing N frames;

[0014] Determining, based on the first parameter value and the first control strategy, that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate includes:

[0015] If the duration of losing N 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 the second refresh rate; the first time threshold represents the time corresponding to when the display content of the output interface of the current application program freezes;

[0016] Alternatively, if the duration for losing N frames in the first time period is less than the first time threshold, the duration for losing N frames in the second time period is calculated; the second time period is equal to the first time period, and 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;

[0017] If the duration of losing N frames in the second time period is less than the first time threshold, it is determined that the refresh rate of the display screen is switched from the first refresh rate to the second refresh rate.

[0018] In the above solution, monitoring frame loss in the process of generating display content of the output interface of the current application based on the second frame rate to obtain a second parameter value related to the frame loss includes:

[0019] In the process of generating the display content of the output interface of the current application based on the second frame rate, the number of lost frames within a second time threshold is calculated; the second time threshold represents the time corresponding to when the display screen displays the display content of the output interface of the current application without a freeze phenomenon;

[0020] Based on the second parameter value and the second control strategy, determining that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate includes:

[0021] If the number of lost frames is less than a first frame number threshold, determining that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate;

[0022] The second time threshold and the first frame number threshold are both related to the number of times the refresh rate of the display screen is switched.

[0023] In the above solution, monitoring frame loss in the process of generating display content of the output interface of the current application based on the first frame rate to obtain a first parameter value related to the frame loss includes:

[0024] In the process of generating display content of the output interface of the current application based on the first frame rate, calculating the number of lost frames in the first time period;

[0025] Determining, based on the first parameter value and the first control strategy, that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate includes:

[0026] If the number of lost frames in the 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;

[0027] Alternatively, if the number of lost frames in the first time period reaches the frame number threshold, the number of lost frames in the second time period is calculated; the second time period is equal to the first time period in length, and the difference between the start value of the second time period and the start value of the first time period is M, and M is greater than or equal to 1;

[0028] If the number of lost frames in a second time period reaches the frame number threshold, it is determined that the refresh rate of the display screen is switched from the first refresh rate to the second refresh rate.

[0029] In the above solution, monitoring frame loss in the process of generating display content of the output interface of the current application based on the second frame rate to obtain a second parameter value related to the frame loss includes:

[0030] In the process of generating display content of the output interface of the current application based on the second frame rate, calculating the number of frames and the number of lost frames that meet the first frame rate requirement within a first time period;

[0031] Based on the second parameter value and the second control strategy, determining that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate includes:

[0032] If the number of frames satisfying the first frame rate requirement within the first time period reaches a first frame number threshold, and the number of lost frames is less than a second frame number threshold, determining that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate;

[0033] Alternatively, 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 lost frames is less than the second frame number threshold, the number of frames meeting the first frame rate requirement and the number of lost frames in the second time period are calculated;

[0034] If the number of frames that meet the first frame rate requirement within a second time period reaches a first frame number threshold, and the number of lost frames is less than a second frame number threshold, it is determined 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 length, and 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.

[0035] In the above solution, monitoring frame loss in the process of generating display content of the output interface of the current application based on the first frame rate to obtain a first parameter value related to the frame loss includes:

[0036] In the process of generating display content of the output interface of the current application based on the first frame rate, monitoring frame loss of each page layer in the current application 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;

[0037] Determining, based on the first parameter value and the first control strategy, that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate includes:

[0038] When it is determined that each 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 switch from the first refresh rate to the second refresh rate by using the first sub-strategy;

[0039] Alternatively, when 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, the refresh rate of the display screen is controlled to switch from the first refresh rate to the second refresh rate using the second sub-strategy;

[0040] Among them, the priority of the first sub-strategy is higher than the priority of the second sub-strategy.

[0041] In the above scheme, monitoring the frame loss of each page layer in the current application within the first time period to obtain the frame loss rate per second and the frame loss rate per N seconds of each page layer within the first time period includes:

[0042] In the process of generating display content of the output interface of the current application based on the first frame rate, monitoring the number of lost frames in each pulse signal of each page layer within the first time period;

[0043] Based on the number of frame losses of each page layer in each pulse signal, the frame loss rate per second of each page layer in the first time period is generated; and based on the frame loss rate per second of each page layer in the first time period, the frame loss rate per N seconds of each page layer in the first time period is generated.

[0044] In the above scheme, when it is determined that each 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 from the first refresh rate to the second refresh rate by using the first sub-strategy includes:

[0045] 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, when it is determined that frame loss 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, a first sub-strategy is used to control the refresh rate of the display screen to switch from the first refresh rate to the second refresh rate; wherein the first frame rate threshold is less 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;

[0046] Alternatively, 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, it is determined that frame loss occurs in each page layer, and 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, monitor the frame loss of each page layer in the current application 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, control the refresh rate of the display screen from the first refresh rate to the second refresh rate using the first sub-strategy; wherein the first time period is equal to the second time period in length, and 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.

[0047] In the above scheme, the priority of the first sub-strategy is higher than the priority of the second sub-strategy, including:

[0048] In the case where the refresh rate of the display screen is controlled to switch 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 less than the third frame rate threshold, and the frame loss rate per N seconds of each page layer at the second frame rate is less than the fourth frame rate threshold, the refresh rate of the display screen is controlled to switch from the second refresh rate to the first refresh rate, so that in the case where 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, the refresh rate of the display screen can be controlled to switch from the first refresh rate to the second refresh rate by the second sub-strategy;

[0049] 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.

[0050] In the above scheme, the scheme also includes:

[0051] In the case where the refresh rate of the display screen is controlled to switch from the first refresh rate to the second refresh rate by the second sub-strategy, if the frame loss rate per second of at least one page layer at the second frame rate is less than a 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 a sixth frame rate threshold, the refresh rate of the display screen is controlled to switch from the second refresh rate to the first refresh rate;

[0052] 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.

[0053] According to another aspect of the present application, there is provided an electronic device, including:

[0054] A generating unit, configured to generate display content of an output interface of a current application based on a first frame rate if a display screen of the electronic device is at a first refresh rate;

[0055] A monitoring unit, 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;

[0056] a determining unit, configured to determine, based on the first parameter value and the first control strategy, 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 the output interface of the current application program continues to be generated based on the second frame rate; the second frame rate is lower than the first frame rate;

[0057] The first control strategy is used to indicate that a freeze occurs in the display content of the output interface of the current application displayed on the display screen.

[0058] The present application provides an information processing method and electronic device, which monitors the frame loss of the electronic device in the process of generating the display content of the output interface of the current application based on the current frame rate, determines whether the display content of the output interface of the current application is stuck, and switches from the first frame rate to the second frame rate when it is determined that the display content of the current output interface is stuck at the current frame rate, so that the electronic device continues to generate the display content of the output interface of the current application based on the second frame rate; wherein the second frame rate is lower than the first frame rate. In this way, the refresh frequency of the display screen can be switched adaptively according to whether the display content of the current output interface is stuck, thereby improving the user experience, without causing visual stuck to the user, and without requiring the user to manually switch the frame rate and cause cumbersome operations. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 A schematic diagram of the process implementation of the processing method in this application;

[0060] Figure 2 The structure of the electronic device in this application is shown in FIG. Figure 1 ;

[0061] Figure 3 The structure of the electronic device in this application is shown in FIG. Figure 2 . DETAILED DESCRIPTION

[0062] The technical solution of the present application is further elaborated in detail below in conjunction with the accompanying drawings and specific embodiments of the specification.

[0063] Figure 1 This is a schematic diagram of the process implementation of the processing method in this application, such as Figure 1 As shown, including:

[0064] Step 101, if the display screen of the electronic device is at a first refresh rate, generating display content of the output interface of the current application based on the first frame rate;

[0065] In the present application, the electronic device may be a device with a display screen such as a computer, a television, a mobile phone, a watch, a bracelet, etc., and the electronic device may run multiple applications. When the electronic device runs at least one application, the display screen of the electronic device may generate display content of the output interface of the current application.

[0066] Specifically, the display screen of the electronic device can generate the display content of the output interface of the current application at different frame rates when it is at different refresh rates. In other words, the correspondence between various refresh rates of the display screen and each frame rate can also be stored in the database of the electronic device. When the display screen of the electronic device is at a first refresh rate, the electronic device can obtain the first frame rate corresponding to the first refresh rate based on the database, and generate the display content of the output interface of the current application at the first frame rate.

[0067] For example, the display screen of the electronic device is refreshed at 90H per second at the first refresh rate. Z The screen can be refreshed at a speed of , and when running the current application, the display content of the output interface of the current application can be generated at a speed of transmitting 90 frames per second.

[0068] Step 102, monitoring frame loss in the process of generating 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;

[0069] In the present application, the electronic device can also continuously or periodically monitor frame loss of the display content during the process of generating the display content of the output interface of the current application based on the first frame rate, and obtain a first parameter value related to the frame loss based on the monitoring result.

[0070] Here, the first parameter value related to frame loss can represent the length of time it takes for the display screen of the electronic device to lose N frames within a first time period when the display screen is generating display content of the output interface of the current application at a first frame rate, where N is greater than or equal to 2.

[0071] Specifically, in the process of generating the display content of the output interface of the current application based on the first frame rate, the electronic device can calculate the time taken by the display screen to lose N frames in the first time period, and use the time taken by the display screen to lose N frames in the first time period as the first parameter value. The time taken by the N frames to be lost can represent the total time from the loss of the first frame to the end of the loss of N frames, or can represent the total time from the transmission of the first frame to the end of the loss of N frames.

[0072] For example, the electronic device can calculate the time taken to lose 7 frames within 300 milliseconds when 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 the 10th millisecond during the display content of the output interface of the current application at a frame rate of 90, the electronic device can start timing from the 10th millisecond to calculate the time taken to lose 7 frames. If the display screen is monitored to lose 7 frames at the 50th millisecond, the electronic device can determine that the time taken to lose 7 frames within 300 milliseconds is 40 milliseconds (i.e., the total time from the loss of the first frame to the end of the loss of 7 frames). If the electronic device starts timing from the transmission of the first frame of the picture during the display content of the output interface of the current application at a frame rate of 90 to calculate the time taken to lose 7 frames, if the display screen is monitored to lose 7 frames at the 50th millisecond, it is determined that the time taken to lose 7 frames within 300 milliseconds is 50 milliseconds (i.e., the total time from the transmission of the first frame to the end of the loss of 7 frames). In this way, the present application obtains the duration of the display screen losing fixed frames in the first time period by monitoring the frame loss in the process of the electronic device generating the display content of the output interface of the current application based on the first frame rate. Based on the duration of the display screen losing fixed frames in the first time period, it can be determined whether the display content of the current output interface is stuck, thereby preparing for the subsequent refresh rate switching operation.

[0073] In the present application, the first parameter value related to frame loss can also represent the number of frames lost by the display screen of the electronic device within a first time period when the display screen of the electronic device generates display content of the output interface of the current application at a first frame rate.

[0074] Specifically, in the process of generating the display content of the output interface of the current application based on the first frame rate, the electronic device can also calculate the number of frame losses of the display screen in the first time period; and use the number of frame losses of the display screen in the first time period as the first parameter value.

[0075] For example, when the display screen of the electronic device generates the display content of the output interface of the current application at a 90 frame rate, the number of frame drops of the display screen within 300 milliseconds can be calculated, and the number of frame drops within 300 milliseconds (for example, 7 frames) can be used as the first parameter value. In this way, based on the number of frame drops of the display screen within a certain period of time, it can be determined whether the display content of the current output interface of the display screen is stuck, so as to prepare for the subsequent refresh rate switching operation.

[0076] In the present application, the first parameter value related to frame loss can also characterize the frame loss rate per second and the frame loss rate per N seconds of each page layer in the current application within the first time period when the display screen of the electronic device generates the display content of the output interface of the current application at the first frame rate.

[0077] Specifically, the current application being executed by the electronic device may have multiple page layers. In the process of generating the display content of the output interface of the current application based on the first frame rate, the electronic device can also monitor the frame loss of each page layer in the current application within 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, where N is greater than or equal to 2; and then use 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.

[0078] For example, the current application has a total of 4 page layers. In the process of generating the display content of the output interface of the current application based on the first frame rate, the electronic device may have frame loss in all page layers, or only one page layer may have frame loss, or no frame loss in all pages. Therefore, the electronic device can define two standards for frame loss in page layers, wherein standard one can be: at least one page layer has frame loss in the update drawing of the screen, which includes two arrays (frame loss rate per second and frame loss rate per N seconds), and standard two can be: all page layers have frame loss in the update drawing of the screen, which includes two arrays (frame loss rate per second and frame loss rate per N seconds), and standard two has a higher priority than standard one.

[0079] Here, the priority of standard 2 is higher than that of standard 1, which specifically means: if the electronic device controls the display screen to switch from the first refresh rate to the second refresh rate when standard 2 is met, it is necessary to control the display screen to switch from the second refresh rate to the first refresh rate when the second standard is met before standard 1 can be enabled, and the display screen can be controlled to perform refresh rate switching when the electronic device meets standard 1. In this way, 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, it can be determined whether the display content of the current output interface is stuck, and 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 standards met by the current application are determined, which can improve the accuracy of judging the stuck phenomenon and the severity of the stuck phenomenon.

[0080] In the present application, when the electronic device monitors the frame loss of each page layer in the current application within the first time period to obtain the frame loss rate per second and the frame loss rate per N seconds of each page layer within the first time period, it can specifically monitor the number of frame losses in each pulse signal of each page layer within the first time period in the process of generating the display content of the output interface of the current application based on the first frame rate; generate the frame loss rate per second of each page layer in the first time period based on the number of frame losses of each page layer in each pulse signal; and generate the 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.

[0081] For example, in the process of generating the display content of the output interface of the current application based on the first frame rate, the number of frame losses in each page layer within 1 second and the number of frame losses in each 10 seconds are monitored. Specifically, the number of frame losses in the pulse signal transmitted by each page layer within 1 second is monitored. For example, taking a 90 frame rate as an example, each page layer has 90 frames of pictures within 1 second, which corresponds to 90 pulse signals. If it is detected that at least one page layer has 5 pulse signals with frame losses within 1 second, the frame loss rate per second of at least one page layer is determined to be 5, and the frame loss rate per second is counted as 5 in Standard 1. If at least one page layer still has frame losses in the next 1 second, and the number of frame losses (for example, 7) is greater than 5, the frame loss rate per second recorded in Standard 1 is updated to the current maximum value (for example, 7). In other words, as long as there is a page layer with frame losses in Standard 1, it is counted, and the current maximum frame loss rate is recorded. Then, when 10 seconds is reached, all frame loss rates within 1-10 seconds are counted, and the sum of the frame loss rates within 1-10 seconds is used as the frame loss rate of at least one page layer in every 10 seconds. In standard one, the frame loss rate in every 10 seconds is counted as 1.

[0082] Here, standard one and standard two can be performed synchronously. If the electronic device detects that all page layers have frame loss within 1 second, the frame loss rate per second is counted at standard one, and the frame loss rate per second of standard two is also counted (for example, if all page layers have frame loss within 1 second, the frame loss rate per second of standard two is counted as 1); if one page layer does not have frame loss within 1 second, the frame loss rate per second is counted accordingly at standard one, and the frame loss rate per second of standard two is also counted (for example, the frame loss rate per second of standard two is counted as 0). In this way, by synchronously counting standard one and standard two, the degree of judgment of the jamming phenomenon of the currently displayed page can be improved.

[0083] Step 103, based on the first parameter value and the first control strategy, determine that the refresh rate of the display screen is switched from the first refresh rate to the second refresh rate, so that the display content of the output interface of the current application continues to be generated based on the second frame rate; the second frame rate is lower than the first frame rate; wherein the first control strategy is used to characterize that the display screen displays a freeze phenomenon in outputting the display content of the output interface of the current application.

[0084] In the present application, if the first parameter value obtained by the electronic device represents the duration of time taken by the display screen of the electronic device to lose N frames within a first time period in the process of generating the display content of the output interface of the current application at a first frame rate, then when obtaining the first parameter value, the electronic device may also compare the first parameter value with a first time threshold preset in the electronic device to determine whether the duration of time taken by the display screen to lose N frames within the first time period is less than the first time threshold, and obtain a judgment result. If the judgment result represents that the duration of time taken by the display screen to lose N frames within the first time period is less than the first time threshold, it is determined that a freeze occurs in the display content of the output interface of the current application displayed on the display screen of the electronic device, and the display screen of the electronic device is controlled to switch from the first refresh rate to the second refresh rate according to the first control strategy, so that the electronic device continues to generate the display content of the output interface of the current application 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.

[0085] Here, the first time threshold represents the corresponding time (for example, called badTimeThreshold) set when the display content of the output interface of the current application is stuck. The first control strategy represents that when the display screen of the electronic device displays the display content of the output interface of the current application and there is a stuck phenomenon, the display screen of the electronic device is controlled to switch from the first refresh rate to the second refresh rate. In this way, by controlling the display screen of the electronic device to switch from the first refresh rate to the second refresh rate when there is a stuck phenomenon in the display content of the display screen, it can be ensured that the display content of the current application can be smoothly output.

[0086] In the present application, in order to improve the judgment result of the stuttering phenomenon, when the electronic device determines that the time taken for the display screen to lose N frames in the first time period is less than the first time threshold, the electronic device can also calculate the time taken for the display screen to lose N frames in the second time period; wherein the second time period is equal to the length of the first time period, and 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 time taken for the display screen of the electronic device to lose N frames in the second time period is also less than the first time threshold, it is determined that the display content of the output interface of the current application displayed by the display screen has a stuttering phenomenon, and the refresh rate of the display screen is controlled to switch from the first refresh rate to the second refresh rate.

[0087] For example, a first time threshold (badTimeThreshold) and a second time threshold (GoodTimeThreshold) are set in the electronic device, wherein the second time threshold (GoodTimeThreshold) may be 1s, and 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 of the electronic device runs at 90fps by default, the electronic device can calculate the time taken for the output interface to drop fixed frames (such as 7 frames) within a first time period (such as 5 seconds) in the process of generating the display content of the output interface of the current application based on 90fps. If the time taken is less than a first time threshold (badTimeThreshold), the refresh frequency of the display screen is not switched at this time, but monitoring is continued. If the time taken for the output interface to drop fixed frames (such as 7 frames) is less than the first time threshold for two or more consecutive time periods (for example, shifted by 150 milliseconds), it is considered that the output interface is not suitable for running at 90fps, and the display screen is controlled to switch from 90fps to 60fps.

[0088] Here, when monitoring whether the time taken by the output interface of the current application program to drop fixed frames (such as 7 frames) is less than the first time threshold in two or more consecutive time periods, it is not based on the first time period (such as 5 seconds) and monitored once every 5 seconds, but at a time interval of less than 5 seconds. The interval can be as small as possible (for example, it can be monitored once every 150 milliseconds of translation). Here, monitoring is performed with a 1-second interval as an example, such as monitoring once in the first time period (1-5 seconds), monitoring once in the second time period (2-6 seconds), and monitoring once in the third time period (3-7 seconds). If the monitoring results of several times all indicate that the time taken by the output interface of the current application program to drop fixed frames (such as 7 frames) is less than the first time threshold, it means that the current output interface is not suitable for running at 90fps, and the display screen is controlled to switch from 90fps to 60fps. In this way, repeated switching of the refresh frequency of the display screen can be avoided to improve the stability after the refresh frequency switching.

[0089] In another embodiment, if the first parameter value obtained by the electronic device represents the number of frames lost by the display screen of the electronic device in a first time period during the process of generating the display content of the output interface of the current application at a first frame rate. When obtaining the first parameter value, the electronic device can also compare the number of frames lost by the display screen in the first time period with a preset frame number threshold. If the comparison result represents that the number of frames lost by the display screen in the first time period reaches the frame number threshold, it is determined that the display screen displays the display content of the output interface of the current application and freezes, and the refresh rate of the display screen is controlled to switch from the first refresh rate to the second refresh rate according to the first control strategy. In this way, it can be ensured that the display content of the current application can be output smoothly.

[0090] In the present application, in order to improve the stability of the display screen after switching the refresh rate, when the number of frame drops 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 number of frame drops of the display screen in the second time period; wherein the second time period is equal to the length of the first time period, and 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 frame drops of the display screen in the second time period reaches the frame number threshold, it is determined that the display screen displays the output interface of the current application program and the display content is stuck, and then the refresh rate of the display screen is controlled to switch from the first refresh rate to the second refresh rate according to the first control strategy. In this way, the accuracy and stability of switching the refresh frequency of the display screen can be improved.

[0091] Here, the first control strategy represents that when the display screen displays the content of the output interface of the current application program and freezes, the refresh rate of the display screen is controlled to switch from the first refresh rate to the second refresh rate.

[0092] In the present application, if the first parameter value obtained by the electronic device represents the frame loss rate per second and the frame loss rate per N seconds of each page layer in the current application in the process of generating the display content of the output interface of the current application at the first frame rate, when the electronic device obtains the first parameter value, the electronic device can also determine whether each page layer has frame loss or 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 frame loss occurs in each page layer, the refresh rate of the display screen is controlled to switch from the first refresh rate to the second refresh rate by the first sub-strategy; if it is determined that at least one page layer has 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, the refresh rate of the display screen is controlled to switch from the first refresh rate to the second refresh rate by the second sub-strategy; wherein the priority of the first sub-strategy is higher than the priority of the second sub-strategy.

[0093] In the present application, the priority of the first sub-strategy is higher than the priority of the second sub-strategy means that: when each page layer of the electronic device has frame loss, and the frame loss rate is greater than the preset threshold, it means that the current system load is large. At this time, the electronic device can forcibly control the refresh rate of the display screen to switch from the first refresh rate to the second refresh rate. When the electronic device controls the refresh rate of the display screen to switch from the first refresh rate to the second refresh rate using the first sub-strategy, 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 it is detected that each page layer has frame loss, and the frame loss rate is less than the preset threshold, and the display screen is controlled to switch from the second refresh rate to the first refresh rate using the first sub-strategy, and then the second sub-strategy is activated, and when the electronic device detects that at least one page layer of the current application has frame loss, the display screen is controlled to switch from the first refresh rate to the second refresh rate using the second sub-strategy.

[0094] Specifically, when the refresh rate of the display screen is 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 less than the third frame rate threshold, and the frame loss rate per N seconds of each page layer at the second frame rate is less than the fourth frame rate threshold, the refresh rate of the display screen is controlled to switch from the second refresh rate to the first refresh rate, so that the electronic device can control the refresh rate of the display screen from the first refresh rate to the second refresh rate by the second sub-strategy when determining 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; wherein the third frame rate threshold is less 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 (such as based on 60fps). In this way, the switching speed of the refresh rate can be increased to reduce the system load, and the stability of the display screen after switching the refresh rate can be protected.

[0095] In the present application, the electronic device determines that frame loss 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. The electronic device can also compare the frame loss rate per second of each page layer in the first time period with the first frame rate threshold, and compare the frame loss rate per N seconds of each page layer in the first time period with the second frame rate threshold to 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, then it is determined that the display content of the current display screen is stuck. At this time, the refresh rate of the display screen can be controlled to switch from the first refresh rate to the second refresh rate using the first sub-strategy; wherein the first frame rate threshold is less than the second frame rate threshold, and the first frame rate threshold and the second frame rate threshold are both set based on the first frame rate (such as 90fps as a benchmark).

[0096] Here, in order to ensure the stability of the refresh rate switching, the electronic device determines that each 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 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. In this case, the frame loss of each page layer in the current application in the second time period (such as a 150 millisecond shift between the first time period) is further monitored 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, it is determined that the display interface of the current display screen has a freeze phenomenon, and the refresh rate of the display screen is controlled to switch from the first refresh rate to the second refresh rate using the first sub-strategy; wherein the first time period is equal to the second time period, and 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, and the first time period and the second time period are both 5 seconds long, but the first time period and the second time period are shifted at intervals of 1 second. In this way, the accuracy of the monitoring results can be improved by monitoring at smaller time intervals.

[0097] In the present application, when the electronic device controls the display screen to switch from a first refresh rate to a second refresh rate, the electronic device can also generate the display content of the output interface of the current application based on the second frame rate, and can also continue to monitor the frame loss of the electronic device in the process of generating the display content of the output interface of the current application based on the second frame rate, so as to obtain a second parameter value related to the frame loss; wherein the second parameter value can represent the number of frame losses of the display screen within a preset second time threshold in the process of the display screen of the electronic device generating the display content of the output interface of the current application based on the second frame rate, and the second time threshold can represent the corresponding time when the display screen displays the display content of the output interface of the current application without a freeze phenomenon; it can also represent the number of frames and the number of frame losses that meet the first frame rate requirement of the display screen within a first time period in the process of the display screen generating the display content of the output interface of the current application based on the second frame rate; it can also represent the frame loss rate per second and the frame loss rate per N seconds of at least one page layer or all page layers in the current application in the first time period in the process of the display screen generating the display content of the output interface of the current application based on the second frame rate. 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 strategy, the electronic device can continue to generate display content of the output interface of the current application based on the first frame rate.

[0098] Here, the second control strategy is used to indicate that the display screen of the electronic device displays the output interface of the current application program without any freeze.

[0099] Specifically, in the process of generating the display content of the output interface of the current application based on the second frame rate, the electronic device can also calculate the number of lost frames of the display screen within a second time threshold (GoodTimeThreshold); wherein the second time threshold represents the corresponding time preset when the display content of the output interface of the current application displayed on the display screen does not show any freeze phenomenon; if the number of lost frames of the display screen within the second time threshold is less than the first frame number threshold, it is determined that the display content of the output interface of the display screen does not show any freeze phenomenon, and at this time the refresh rate of the display screen can be controlled to switch from the second refresh rate to the first refresh rate according to the second control strategy.

[0100] Here, the second time threshold and the first frame number threshold are both related to the number of switching times of the refresh rate of the display screen.

[0101] For example, when the electronic device switches from the first refresh rate of 90fps to the second refresh rate of 60fps, if the number of frame drops of the display interface of the display screen does not exceed 7*(n+1) within the time of 2^n*GoodTimeThreshold (n=0,1,2,…), it will switch back to 90fps, where n is the time, and n increases with the number of times the display interface switches between 90fps / 60fps, and 2^n*GoodTimeThreshold will become longer. When n is 0, the square of n is 1, and 1 multiplied by the second time threshold GoodTimeThreshold (such as 1 second) is equal to 1 second, and as the number of switching increases, when n is 1, the square of n is 2, and 2 multiplied by the second time threshold GoodTimeThreshold (such as 1 second) is equal to 2 seconds, and so on.

[0102] The specific processing flow of this solution is as follows:

[0103] 1) Assume that the maximum frame rate supported by the display screen of the electronic device is 90fps, and the display interface of the display screen runs at 90fps by default;

[0104] 2) Calculate the time (e.g., 80 milliseconds) it takes for the display interface to drop fixed frames (e.g., 7 frames). If the time is less than the threshold badTimeThreshold (e.g., 300 milliseconds) and this happens in three consecutive time windows (the time windows are shifted by 150 ms), then the display interface is considered unsuitable for running at 90 fps and returns to 60 fps.

[0105] 3) After returning to 60fps, if the number of frame drops of the display interface does not exceed 7*(n+1) within 2^n*GoodTimeThreshold (n=0,1,2,…), it means that the number of frame drops of the current display content is small, then switch back to 90fps, and then loop through steps 2 to 3;

[0106] 4) When the refresh rate of the display interface of an application needs to be switched, reset it back to the default value of 90fps and repeat steps 1 to 3.

[0107] In the present application, in the process of generating the display content of the output interface of the current application based on the second frame rate, the electronic device can also calculate the number of frames and the number of lost frames that meet the first frame rate requirement in the first time period; if the number of frames that meet the first frame rate requirement in the first time period reaches the first frame number threshold, and the number of lost frames is less than the second frame number threshold, it is determined 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 that meet the first frame rate requirement in the first time period reaches the first frame number threshold, and the number of lost frames is less than the second frame number threshold, the number of frames and the number of lost frames that meet the first frame rate requirement in the second time period are calculated; if the number of frames that meet the first frame rate requirement in the second time period reaches the first frame number threshold, and the number of lost frames is less than the second frame number threshold, it is determined that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate; wherein the second time period is equal to the first time period, and 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 refers to 1-5 seconds, the second time period refers to 2-6 seconds, and so on. That is, the first time period and the second time period are shifted at a smaller time interval. In this way, the detection accuracy of the frame rate can be improved.

[0108] The specific processing flow of this solution is as follows:

[0109] 1) Assume that the maximum frame rate supported by the display screen of the electronic device is 90fps, and the display interface of the display screen runs at 90fps by default;

[0110] 2) Calculate the number of frame drops of the display within a certain time window (such as 300ms). If the number of frame drops exceeds a threshold (such as 7) and occurs in three consecutive windows (such as the window sliding with a translation of 150ms), it is considered that a freeze occurs, and the refresh rate of the display is controlled to switch from 90fps to 60fps.

[0111] 3) If after the display interface of the display screen is switched to 60fps, within a relatively long period of time (such as within 1s), the number of frames drawn within 11ms is 90% or more and there are few frame drops (such as less than 3 frames), and the conditions are met in 3 consecutive windows (such as the window sliding in 500ms), then it is considered that the display interface of the display screen can run at 90fps, and the refresh rate of the display screen is controlled to switch from 60fps to 90fps;

[0112] 4) When the refresh rate of the display interface of an application needs to be switched, reset it back to the default value of 90fps and repeat steps 1 to 3.

[0113] In the present 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 when the refresh rate of the display screen is controlled to switch from the first refresh rate to the second refresh rate by the second sub-strategy, the electronic device can also 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. When it is determined based on the monitoring results that not all page layers have a frame loss phenomenon, but only at least one page layer has a frame loss phenomenon at the second frame rate, the frame loss rate per second of the page layer where the frame loss occurs is compared with the fifth frame rate threshold, and the frame loss rate per N seconds of the page layer where the frame loss occurs is compared with the sixth frame rate threshold. 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, it is determined that the display interface of the current display screen no longer freezes, and the refresh rate of the display screen can be controlled to switch from the second refresh rate to the first refresh rate.

[0114] 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 (eg, based on 60 fps).

[0115] The specific processing flow of this solution is as follows:

[0116] 1) Assume that the maximum frame rate supported by the display screen of the electronic device is 90fps, and the display interface of the display screen runs at 90fps by default;

[0117] 2) Assuming that the current application has 4 page layers, if the frame loss rate of at least one page layer per second in Standard 1 is greater than a certain frame rate threshold, it is considered that the running interface of the current display screen runs well at 90fps; if the frame loss rate of at least one page layer per second in Standard 1 is greater than a certain frame rate threshold (such as 15 frames) and the frame loss rate of at least one page layer every N seconds is greater than a certain frame rate threshold (such as 90 frames), it is considered that the running interface of the current display screen has a slight freeze. At this time, you can continue to observe (such as 10 seconds) and if the above situation still occurs, the current running interface of the control display screen is switched from 90Hz to 60Hz.

[0118] The frame rate thresholds here are all set based on 90fps. For example, the display can transmit 90 frames in 1 second, of which the time to transmit 1 frame is about 11 milliseconds, and setting 15 frames is 165 milliseconds.

[0119] 3) After the current running interface is switched from 90Hz to 60Hz, if the frame loss rate per second in standard one drops to a certain range (such as less than 5 frame loss rate per second), and the frame loss rate per N (such as every 10 seconds) in standard one is less than 30, it is considered that the stuttering phenomenon no longer occurs. At this time, the current running interface of the control display is switched from 60Hz to 90Hz.

[0120] 4) When the frame loss rate per second in standard 2 is greater than a certain threshold (such as 10 frames), and the frame loss rate per second in standard 2 meets the above conditions within 3 consecutive seconds, it is considered that the current system load is high, and the electronic device will force the refresh rate of the display screen to switch back from the default 90fps to 60fps, and ignore steps 2-3 until the frame loss rate per second in standard 2 drops below a certain threshold (such as 3 frames), and the frame loss rate per N seconds (such as 10 seconds) in standard 2 drops to a threshold (such as 20), then control the refresh rate of the display screen to switch from 60fps to 90fps. After the refresh rate of the display screen is switched from 60fps to 90fps according to the parameters in standard 2, check the parameters in standard 1, and repeat steps 2-3.

[0121] 5) When the refresh rate of the display interface of an application needs to be switched, reset it back to the default value of 90fps and repeat steps 1 to 4.

[0122] Here, in Standard 1, if at least one page layer has frame loss in different pulse signals within the same second, the number is counted according to the number of frame losses. For example, there are 4 layers in total, among which layer 1 loses 1 frame, layer 2 loses 1 frame, and layer 3 and layer 4 have no frame loss within the same second, then the number is 1 at the frame loss rate per second of Standard 1; if layer 1 loses 1 frame, layer 2 loses 3 frames, and layer 3 and layer 4 have no frame loss within the same second, then the number is 3 at the frame loss rate per second of Standard 1 (the maximum value of frame loss). Then, when the time condition of every N seconds is met, the sum of the number of frame losses per second in Standard 1 is used as the number of frame losses per N seconds in Standard 1.

[0123] In Standard 2, if at least one page layer has no frame loss in different pulse signals within the same second, the count is 0. For example, if layer 1 loses 1 frame, layer 2 does not lose frames, layer 3 loses frames, and layer 4 also loses frames, then it is recorded as 0 in Standard 2. If all page layers have frame loss in different pulse signals within the same second, the count is 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, then it is recorded as 1 in Standard 2. If all page layers have frame loss 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, then it is recorded as 3 in Standard 2 (the maximum value of frame loss). Then, when the time condition of every N seconds is met, the sum of the number of frame losses per second in Standard 2 is used as the number of frame losses per N seconds in Standard 2.

[0124] In the present application, according to the satisfied criterion 2, in the process of controlling the refresh rate of the display screen from 90fps to 60fps with the first sub-strategy, only the number of frame losses per second is considered, and the frame loss rate every N (such as 10) seconds may not be considered. This is to achieve the switching as quickly as possible to speed up the switching efficiency of the refresh rate of the display screen.

[0125] However, according to the second criterion that is met, when the refresh rate of the display screen is switched from 60fps to 90fps using the first sub-strategy, both the frame loss rate per second and the frame loss rate per N seconds (such as 10 seconds) must be considered. This is to ensure the stability and accuracy of the refresh rate of the display screen after switching.

[0126] The present application monitors frame loss in the process of the display screen generating the display content of the output interface of the current application at the current frame rate. When it is determined that the display content of the current output interface is stuck, the refresh rate of the display screen is adaptively switched according to the stuck situation, thereby reducing the visual stuck phenomenon of the display screen to the user, and eliminating the need for the user to manually switch the frame rate and the tedious operation caused by the tedious operation.

[0127] Figure 2 The structure of the electronic device in this application is shown in FIG. Figure 1 , as shown in the figure, including:

[0128] A generating unit 201, configured to generate display content of an output interface of a current application based on a first frame rate if a display screen of the electronic device is at a first refresh rate;

[0129] A monitoring unit 202 is used to monitor frame loss in the process of generating display content of the output interface of the current application based on the first frame rate, and obtain a first parameter value related to the frame loss;

[0130] A determining unit 203 is configured to determine, based on the first parameter value and the first control strategy, 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 the output interface of the current application program continues to be generated based on the second frame rate; the second frame rate is lower than the first frame rate;

[0131] The first control strategy is used to indicate that a freeze occurs in the display content of the output interface of the current application displayed on the display screen.

[0132] In a preferred embodiment, the monitoring unit 202 is also used 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, obtain a second parameter value related to the frame loss; and trigger the determination unit 203 when the second parameter value related to the frame loss is obtained.

[0133] The determination unit 203 is also used to determine whether 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 the second control strategy; the second control strategy is used to characterize that the display screen displays the output interface of the current application without any lag.

[0134] In a preferred embodiment, the monitoring unit 202 specifically calculates the duration of N frames lost in the first time period during the process of generating the display content of the output interface of the current application based on the first frame rate, and uses 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 of N frames lost represents the total duration from the loss of the first frame to the end of N frames lost. Alternatively, the duration of N frames lost represents the total duration from the transmission of the first frame to the end of N frames lost. If the duration of N frames lost in the first time period is less than the first time threshold, the determination 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; the first time threshold represents the time corresponding to the freeze phenomenon of the display content of the output interface of the current application; or, if the duration of N frames lost in the first time period is less than the first time threshold, the monitoring unit 202 calculates the duration of N frames lost in the second time period; the second time period is equal to the length of the first time period, and 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 duration of N frames lost in the second time period is less than the first time threshold, the determination 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.

[0135] In a preferred solution, the monitoring unit 202 is specifically used to calculate 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 based on the second frame rate; the second time threshold represents the time corresponding to when the display screen displays the display content of the output interface of the current application without freezing. If the number of lost frames is less than the first 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 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 the refresh rate of the display screen is switched.

[0136] In a preferred embodiment, the monitoring unit 202 is further configured to calculate the number of lost frames in a first time period during the process of generating display content of an output interface of the current application based on the first frame rate; if the number of lost frames in the first time period reaches a 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 the second refresh rate;

[0137] Alternatively, if the number of frame losses in the first time period reaches a frame number threshold, the monitoring unit 202 may further calculate the number of frame losses in a second time period; the second time period is equal to the first time period in length, and the difference between the starting value of the second time period and the starting value of the first time period is M, where M is greater than or equal to 1; if the number of frame losses 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 the second refresh rate.

[0138] In a preferred embodiment, the monitoring unit 202 is further configured to calculate the number of frames and the number of lost frames that meet the first frame rate requirement within a first time period during the process of generating the display content of the output interface of the current application based on the second frame rate; if the number of frames that meet the first frame rate requirement within the first time period reaches a first frame number threshold, and the number of lost 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;

[0139] Alternatively, if the number of frames that meet the first frame rate requirement in the first time period reaches a first frame number threshold, and the number of lost frames is less than the second frame number threshold, the monitoring unit 202 calculates the number of frames and the number of lost frames that meet the first frame rate requirement in the second time period; if the number of frames that meet the first frame rate requirement in the second time period reaches a first frame number threshold, and the number of lost frames is less than the second frame number threshold, the monitoring unit 202 triggers the determination 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 length, and 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.

[0140] In a preferred embodiment, the monitoring unit 202 is further used to monitor the frame loss of each page layer in the current application within a first time period in the process of generating the display content of the output interface of the current application based on the first frame rate, so as 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, where N is greater than or equal to 2. When it is determined that each 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, the refresh rate of the display screen is controlled to switch from the first refresh rate to the second refresh rate by the first sub-strategy; or, when 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, the refresh rate of the display screen is controlled to switch from the first refresh rate to the second refresh rate by the second sub-strategy; wherein the priority of the first sub-strategy is higher than the priority of the second sub-strategy.

[0141] In a preferred embodiment, the monitoring unit 202 is further specifically used to monitor the number of frame losses in each pulse signal of each page layer within the first time period in the process of generating the display content of the output interface of the current application based on the first frame rate; and when the number of frame losses in each pulse signal of each page layer within the first time period is monitored, trigger the generation unit 201, and the generation unit 201 generates the frame loss rate per second of each page layer within the first time period based on the number of frame losses of each page layer in each pulse signal; and based on the frame loss rate per second of each page layer within the first time period, generate the frame loss rate per N seconds of each page layer within the first time period.

[0142] In a preferred embodiment, the monitoring unit 202 is specifically used to control the refresh rate of the display screen from the second refresh rate to the first refresh rate by the first sub-strategy, if the frame loss rate per second of each page layer at the second frame rate is less than the third frame rate threshold, and the frame loss rate per N seconds of each page layer at the second frame rate is less than the fourth frame rate threshold, so that when 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, the refresh rate of the display screen can be controlled by the second sub-strategy to switch from the first refresh rate to the second refresh rate; wherein the third frame rate threshold is less 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.

[0143] In a preferred embodiment, the determination unit 203 is specifically used to determine that, 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, when frame loss 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, triggering the control unit 204 to control the refresh rate of the display screen from the first refresh rate to the second refresh rate with a first sub-strategy; wherein the first frame rate threshold is less 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 determination unit 203 determines that frame loss 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 each page layer in the first time period When the frame loss rate per second 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 first time period is greater than the second frame rate threshold, the monitoring unit 201 is triggered to monitor the frame loss of each page layer in the current application 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, the control unit 204 is triggered to control the refresh rate of the display screen from the first refresh rate to the second refresh rate with a first sub-strategy; wherein the first time period is equal to the second time period in length, and 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.

[0144] It should be noted that: when the electronic device provided in the above embodiment performs information processing, only the division of the above program modules is used as an example. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the electronic device provided in the above embodiment and the information processing method embodiment provided above belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0145] The present application also provides another electronic device, which includes: a processor and a memory for storing a computer program that can be run on the processor.

[0146] Wherein, when the processor is used to run the computer program, the processor executes: if the display screen of the electronic device is at a first refresh rate, generating display content of the output interface of the current application based on the first frame rate;

[0147] Monitoring frame loss in the process of generating 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;

[0148] Based on the first parameter value and the first control strategy, determining that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate, so that the display content of the output interface of the current application continues to be generated based on the second frame rate; the second frame rate is lower than the first frame rate;

[0149] The first control strategy is used to indicate that a freeze occurs in the display content of the output interface of the current application displayed on the display screen.

[0150] The processor is further configured to, when running the computer program, perform: monitoring frame loss in the process of generating 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;

[0151] Based on the second parameter value and the second control strategy, determine 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 to characterize that the display screen displays the output interface of the current application without any lag.

[0152] The processor is also used to execute, when running the computer program: in the process of generating the display content of the output interface of the current application based on the first frame rate, calculating the time taken for losing N frames in a first time period, where N is greater than or equal to 2; the time taken for losing N frames represents the total time from the loss of the first frame to the end of losing N frames; if the time taken for losing N 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 the second refresh rate; the first time threshold represents the time corresponding to when the display content of the output interface of the current application appears to be stuck;

[0153] Alternatively, if the duration for losing N frames in the first time period is less than the first time threshold, the duration for losing N frames in the second time period is calculated; the second time period is equal to the first time period, and the difference between the start value of the second time period and the start value of the first time period is M, and M is greater than or equal to 1;

[0154] If the duration of losing N frames in the second time period is less than the first time threshold, it is determined that the refresh rate of the display screen is switched from the first refresh rate to the second refresh rate.

[0155] The processor is further configured to execute, when running the computer program: in the process of generating the display content of the output interface of the current application based on the second frame rate, calculating the number of lost frames within a second time threshold; the second time threshold represents the time corresponding to when the display screen displays the display content of the output interface of the current application without a freeze phenomenon; if the number of lost frames is less than the first frame number threshold, determining that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate;

[0156] The second time threshold and the first frame number threshold are both related to the number of times the refresh rate of the display screen is switched.

[0157] The processor is further configured to execute, when running the computer program, the following steps: in a process of generating display content of an output interface of a current application based on the first frame rate, calculating the number of lost frames in a first time period; if the number of lost frames in the 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;

[0158] Alternatively, if the number of lost frames in the first time period reaches the frame number threshold, the number of lost frames in the second time period is calculated; the second time period is equal to the first time period in length, and the difference between the start value of the second time period and the start value of the first time period is M, and M is greater than or equal to 1;

[0159] If the number of lost frames in a second time period reaches the frame number threshold, it is determined that the refresh rate of the display screen is switched from the first refresh rate to the second refresh rate.

[0160] The processor is further configured to execute, when running the computer program: in a process of generating display content of an output interface of a current application based on the second frame rate, calculating the number of frames and the number of lost frames that meet the first frame rate requirement within a first time period; if the number of frames that meet the first frame rate requirement within the first time period reaches a first frame number threshold, and the number of lost frames is less than a second frame number threshold, determining that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate;

[0161] Alternatively, 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 lost frames is less than the second frame number threshold, the number of frames meeting the first frame rate requirement and the number of lost frames in the second time period are calculated;

[0162] If the number of frames that meet the first frame rate requirement within a second time period reaches a first frame number threshold, and the number of lost frames is less than a second frame number threshold, it is determined 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 length, and 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.

[0163] The processor is further configured to execute, when running the computer program: in a process of generating display content of an output interface of the current application based on the first frame rate, monitoring frame loss of each page layer in the current application 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 in a case where it is determined based on the frame loss rate per second and the frame loss rate per N seconds of each page layer within the first time period that frame loss occurs in each page layer, controlling the refresh rate of the display screen to switch from the first refresh rate to the second refresh rate using a first sub-strategy;

[0164] Alternatively, when 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, the refresh rate of the display screen is controlled to switch from the first refresh rate to the second refresh rate using the second sub-strategy;

[0165] The priority of the first sub-strategy is higher than the priority of the second sub-strategy.

[0166] The processor is also used to execute the following when running the computer program: in the process of generating the display content of the output interface of the current application based on the first frame rate, monitoring the number of frame losses in each pulse signal of each page layer in the first time period; generating the frame loss rate per second of each page layer in the first time period based on the number of frame losses of each page layer in each pulse signal; and generating the frame loss rate every 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.

[0167] The processor is further configured to execute, when running the computer program: 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, when it is determined that frame loss 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, controlling the refresh rate of the display screen to switch from the first refresh rate to the second refresh rate by using a first sub-strategy; wherein the first frame rate threshold is less 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;

[0168] Alternatively, 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, it is determined that frame loss occurs in each page layer, and 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, monitor the frame loss of each page layer in the current application 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, control the refresh rate of the display screen from the first refresh rate to the second refresh rate using the first sub-strategy; wherein the first time period is equal to the second time period in length, and 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.

[0169] Figure 3 This is a schematic diagram of the structure of the electronic device in this application. Figure 2 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 other terminal with a display screen. Figure 3 The electronic device 300 shown includes: at least one processor 301, a memory 302, at least one network interface 304 and a user interface 303. The various components in the electronic device 300 are coupled together via a bus system 305. It is understood that the bus system 305 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 305 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 305 is not shown in FIG. Figure 3 Various buses are labeled as bus system 305 .

[0170] The user interface 303 may include a display, a keyboard, a mouse, a trackball, a click wheel, keys, buttons, a touch pad or a touch screen.

[0171] It can be understood that the memory 302 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can 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, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example 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), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The memory 302 described in the embodiments of the present application is intended to include but is not limited to these and any other suitable types of memories.

[0172] The memory 302 in the embodiment of the present application is used to store various types of data to support the operation of the electronic device 300. Examples of these data include: any computer program for operating on the electronic device 300, such as an operating system 3021 and an application 3022; contact data; phone book data; messages; pictures; audio, etc. Among them, the operating system 3021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 3022 may include various applications, such as maps, media players (Media Player), browsers (Browser), etc., for implementing various application services. The program that implements the method of the embodiment of the present application may be included in the application 3022.

[0173] The method disclosed in the above embodiment of the present application can be applied to the processor 301, or implemented by the processor 301. The processor 301 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 301 or the instruction in the form of software. The above processor 301 may be a general processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 301 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the memory 302, and the processor 301 reads the information in the memory 302 and completes the steps of the above method in combination with its hardware.

[0174] In an exemplary embodiment, the electronic device 300 can be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD), field programmable gate array (FPGA), general processor, controller, microcontroller (MCU), microprocessor, or other electronic components to execute the aforementioned method.

[0175] In an exemplary embodiment, the present application also provides a computer-readable storage medium, such as a memory 302 including a computer program, and the computer program can be executed by a processor 301 of an electronic device 300 to complete the steps of the aforementioned method. The computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM; or it can be various devices including one or any combination of the above memories, such as a mobile phone, a computer, a tablet device, a personal digital assistant, etc.

[0176] A computer-readable storage medium stores a computer program, which, when executed by a processor, performs: if a display screen of an electronic device is at a first refresh rate, generating display content of an output interface of a current application based on a first frame rate;

[0177] Monitoring frame loss in the process of generating 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;

[0178] Based on the first parameter value and the first control strategy, determining that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate, so that the display content of the output interface of the current application continues to be generated based on the second frame rate; the second frame rate is lower than the first frame rate;

[0179] The first control strategy is used to indicate that a freeze occurs in the display content of the output interface of the current application displayed on the display screen.

[0180] When the computer program is executed by the processor, the computer program further executes: monitoring frame loss in the process of generating 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;

[0181] Based on the second parameter value and the second control strategy, determine 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 to characterize that the display screen displays the output interface of the current application without any lag.

[0182] When the computer program is executed by the processor, the computer program further executes: in the process of generating the display content of the output interface of the current application based on the first frame rate, calculating the time taken for losing N frames in a first time period, where N is greater than or equal to 2; the time taken for losing N frames represents the total time from the loss of the first frame to the end of losing N frames; if the time taken for losing N 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 the second refresh rate; the first time threshold represents the time corresponding to when the display content of the output interface of the current application appears to be stuck;

[0183] Alternatively, if the duration for losing N frames in the first time period is less than the first time threshold, the duration for losing N frames in the second time period is calculated; the second time period is equal to the first time period, and the difference between the start value of the second time period and the start value of the first time period is M, and M is greater than or equal to 1;

[0184] If the duration of losing N frames in the second time period is less than the first time threshold, it is determined that the refresh rate of the display screen is switched from the first refresh rate to the second refresh rate.

[0185] When the computer program is executed by the processor, the computer program further executes: in the process of generating the display content of the output interface of the current application based on the second frame rate, calculating the number of lost frames within a second time threshold; the second time threshold represents the time corresponding to when the display screen displays the display content of the output interface of the current application without a freeze phenomenon; if the number of lost frames is less than the first frame number threshold, determining that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate;

[0186] The second time threshold and the first frame number threshold are both related to the number of times the refresh rate of the display screen is switched.

[0187] When the computer program is executed by the processor, the computer program further performs: in the process of generating display content of the output interface of the current application based on the first frame rate, calculating the number of lost frames in a first time period; if the number of lost frames in the 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 the second refresh rate;

[0188] Alternatively, if the number of lost frames in the first time period reaches the frame number threshold, the number of lost frames in the second time period is calculated; the second time period is equal to the first time period in length, and the difference between the start value of the second time period and the start value of the first time period is M, and M is greater than or equal to 1;

[0189] If the number of lost frames in a second time period reaches the frame number threshold, it is determined that the refresh rate of the display screen is switched from the first refresh rate to the second refresh rate.

[0190] When the computer program is executed by the processor, the computer program further executes: in the process of generating display content of the output interface of the current application based on the second frame rate, calculating the number of frames and the number of lost frames that meet the first frame rate requirement in a first time period; if the number of frames that meet the first frame rate requirement in the first time period reaches a first frame number threshold, and the number of lost frames is less than a second frame number threshold, determining that the refresh rate of the display screen is switched from the second refresh rate to the first refresh rate;

[0191] Alternatively, 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 lost frames is less than the second frame number threshold, the number of frames meeting the first frame rate requirement and the number of lost frames in the second time period are calculated;

[0192] If the number of frames that meet the first frame rate requirement within a second time period reaches a first frame number threshold, and the number of lost frames is less than a second frame number threshold, it is determined 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 length, and 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.

[0193] When the computer program is executed by the processor, the computer program further executes: in the process of generating display content of the output interface of the current application based on the first frame rate, monitoring the frame loss of each page layer in the current application within 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, where N is greater than or equal to 2; and in the case where it 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 that frame loss occurs in each page layer, controlling the refresh rate of the display screen to switch from the first refresh rate to the second refresh rate using the first sub-strategy;

[0194] Alternatively, when 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, the refresh rate of the display screen is controlled to switch from the first refresh rate to the second refresh rate using the second sub-strategy;

[0195] The priority of the first sub-strategy is higher than the priority of the second sub-strategy.

[0196] When the computer program is executed by the processor, it also performs the following steps: in the process of generating the display content of the output interface of the current application based on the first frame rate, monitoring the number of frame losses in each pulse signal of each page layer in the first time period; generating the frame loss rate per second of each page layer in the first time period based on the number of frame losses of each page layer in each pulse signal; and generating the 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.

[0197] When the computer program is executed by the processor, the computer program further executes: 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, when it is determined that each page layer has a frame loss phenomenon, 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, controlling the refresh rate of the display screen to switch from the first refresh rate to the second refresh rate by using a first sub-strategy; wherein the first frame rate threshold is less 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;

[0198] Alternatively, 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, it is determined that frame loss occurs in each page layer, and 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, monitor the frame loss of each page layer in the current application 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, control the refresh rate of the display screen from the first refresh rate to the second refresh rate using the first sub-strategy; wherein the first time period is equal to the second time period in length, and 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.

[0199] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0200] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0201] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0202] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0203] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0204] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. An information processing method, the method comprising: If the display screen of the electronic device is at a first refresh rate, generating display content of the output interface of the current application based on the first frame rate; Monitoring frame loss in the process of generating 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, including: in the process of generating the display content of the output interface of the current application based on the first frame rate, monitoring frame loss of each page layer in the current application within a first time period, 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; Based on the first parameter value and the first control strategy, determining that the refresh rate of the display screen is switched from the first refresh rate to the second refresh rate, so that the display content of the output interface of the current application continues to be generated based on the second frame rate; the second frame rate is lower than the first frame rate; including at least one of the following: When it is determined that each 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 switch from the first refresh rate to the second refresh rate by using the first sub-strategy; Alternatively, when it is determined that frame loss occurs in some page layers 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 by the second sub-strategy to switch from the first refresh rate to the second refresh rate.

2. The method according to claim 1, further comprising: Monitoring frame loss during the process of generating 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; Based on the second parameter value and the second control strategy, determining 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 to indicate that the display screen displays the output interface of the current application without any freeze.

3. The method according to claim 1, wherein monitoring the frame loss of each page layer in the current application 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 comprises: In the process of generating display content of the output interface of the current application based on the first frame rate, monitoring the number of lost frames in each pulse signal of each page layer within the first time period; Generate a frame loss rate per second of each page layer in the first time period based on the number of frame loss of each page layer in each pulse signal; And based on the frame loss rate per second of each page layer in the first time period, the frame loss rate per N seconds of each page layer in the first time period is generated.

4. The method according to claim 1, wherein the priority of the first sub-strategy is higher than the priority of the second sub-strategy, comprising: In the case where the refresh rate of the display screen is controlled to switch 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 less than the third frame rate threshold, and the frame loss rate per N seconds of each page layer at the second frame rate is less than the fourth frame rate threshold, the refresh rate of the display screen is controlled to switch from the second refresh rate to the first refresh rate by the first sub-strategy, so that in the case where 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, the refresh rate of the display screen can be controlled to switch from the first refresh rate to the second refresh rate by the second sub-strategy; 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.

5. An electronic device comprising: A generating unit, configured to generate display content of an output interface of a current application based on a first frame rate if a display screen of the electronic device is at a first refresh rate; A monitoring unit, configured to monitor frame loss in the process of generating display content of the output interface of the current application based on the first frame rate, and obtain a first parameter value related to the frame loss, including: in the process of generating the display content of the output interface of the current application based on the first frame rate, monitoring the frame loss of each page layer in the current application within a first time period, 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; A determination unit, configured to determine, based on the first parameter value and the first control strategy, that the refresh rate of the display screen is switched from the first refresh rate to a second refresh rate, so that the display content of the output interface of the current application program continues to be generated based on the second frame rate; the second frame rate is lower than the first frame rate; including at least one of the following: When it is determined that each 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 switch from the first refresh rate to the second refresh rate by using the first sub-strategy; Alternatively, when it is determined that frame loss occurs in some page layers 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 by the second sub-strategy to switch from the first refresh rate to the second refresh rate.

Citation Information

Patent Citations

  • Data processing method and apparatus, and mobile terminal

    CN109376053A

  • Jamming processing method and device, terminal and storage medium

    CN110647366A