Screen refresh frame rate control method, device and storage medium

By dynamically adjusting the refresh frame rate of the display, combining user operations and picture frame rate, the problems of terminal power consumption and interface response fluency are solved, and efficient interface interaction is achieved under low power consumption.

CN112445315BActive Publication Date: 2024-11-05BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910803943.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-08-28
Publication Date
2024-11-05
Estimated Expiration
2040-04-29

AI Technical Summary

Technical Problem

While ensuring the display effect, it is difficult to effectively reduce terminal power consumption, especially when the refresh frame rate of the display screen is at the lowest, the smoothness of the interface interaction of the user's operation response is affected.

Method used

By obtaining the maximum refresh frame rate corresponding to the display scene of the terminal, set the refresh frame rate of the display screen to the second target frame rate that is not higher than the maximum refresh frame rate. When a user operation is received, the refresh frame rate is switched to the maximum refresh rate. Frame rate, combining real-time acquisition of picture frame rate and monitoring touch events, dynamically adjusting the refresh frame rate to ensure the smoothness of interface interaction.

Benefits of technology

While controlling the power consumption of the display screen, it ensures the response effect of interface interaction, improving the terminal's user operation response speed and interface fluency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112445315B_ABST
    Figure CN112445315B_ABST
Patent Text Reader

Abstract

The present disclosure discloses a method for controlling a screen refresh frame rate, which belongs to the field of terminal display technology. The method is executed by a terminal including a display screen, and the method for controlling the screen refresh frame rate includes: obtaining a maximum refresh frame rate corresponding to a display scene of the terminal as a first target frame rate, setting the refresh frame rate of the display screen to a second target frame rate not higher than the first target frame rate, and when the terminal receives a user operation on the display interface, setting the refresh frame rate of the display screen to the first target frame rate, so that the terminal can control the refresh frame rate of the display screen to be not higher than the maximum refresh frame rate of the display scene, thereby reducing the power consumption of the display screen, and at the same time, switching the refresh frame rate of the display screen to the maximum refresh frame rate of the current display scene when receiving the user operation, thereby ensuring the smoothness of the interaction, thereby controlling the power consumption of the display screen while ensuring the responsiveness of the interface interaction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of terminal display technology, and in particular to a method, device and storage medium for controlling a screen refresh frame rate. Background Art

[0002] With the continuous development of display technology, high frame rate has become the development trend of display technology, but it also puts higher requirements on display effect and terminal power consumption.

[0003] In order to reduce terminal power consumption while ensuring display effects, in related technologies, the terminal sets a minimum frame rate for the refresh frame rate of the display screen. When the image in the terminal is not refreshed for a long time, the refresh frame rate of the display screen is switched to the minimum frame rate.

[0004] In the above-mentioned related technologies, when the refresh frame rate of the display screen is at the lowest frame rate, if the terminal detects a user operation, it will respond to the user operation at the lowest refresh frame rate, affecting the smoothness of the interface interaction. Summary of the invention

[0005] The present disclosure provides a method, device and storage medium for controlling screen refresh frame rate. The technical solution is as follows:

[0006] According to a first aspect of an embodiment of the present disclosure, a method for controlling a screen refresh frame rate is provided. The method is performed by a terminal including a display screen, and the method includes:

[0007] Acquire a first target frame rate, where the first target frame rate is a maximum refresh frame rate corresponding to a display scene of the terminal; the display scene is a scene divided according to a type of a display interface in the display screen;

[0008] When no user operation on the display interface is received, setting the refresh frame rate of the display screen to a second target frame rate, wherein the second target frame rate is not higher than the first target frame rate;

[0009] When a user operation on the display interface is received, the refresh frame rate of the display screen is set to the first target frame rate.

[0010] Optionally, the display screen is a touch display screen; and before the refresh frame rate of the display screen is set to the first target frame rate when a user operation on the display interface is received, the method further includes:

[0011] Monitoring a touch event, where the touch event is an event generated when the terminal detects a touch operation on the display screen;

[0012] When the touch event is monitored, it is determined that a user operation on the display interface is received.

[0013] Optionally, setting the refresh frame rate of the display screen to the first target frame rate includes:

[0014] When the user operation corresponding to the touch event is a valid operation, setting the refresh frame rate of the display screen to the first target frame rate;

[0015] The effective operation refers to an operation that triggers effective updating of the content in the display interface.

[0016] Optionally, the monitoring of touch events includes:

[0017] When the second target frame rate is lower than the first target frame rate, the touch event is monitored.

[0018] Optionally, before setting the refresh frame rate of the display screen to the second target frame rate, the method further includes:

[0019] Acquire the frame rate of the display interface in real time, where the frame rate is the frequency at which the frame of the display interface changes;

[0020] The second target frame rate is determined according to the picture frame rate acquired in real time.

[0021] Optionally, determining the second target frame rate according to the picture frame rate acquired in real time includes:

[0022] The value of the picture frame rate is determined as the value of the second target frame rate.

[0023] Optionally, the real-time acquisition of the frame rate of the display interface includes:

[0024] Obtain the refresh time of the n frames most recently displayed in the display interface, where n is an integer greater than or equal to 2;

[0025] Obtaining a total refresh duration of the n picture frames according to the refresh time of the n picture frames;

[0026] The frame rate of the display interface is obtained according to the total refresh time of the n frames.

[0027] Optionally, obtaining the total refresh duration of the n picture frames according to the refresh time of the n picture frames includes:

[0028] When the time interval between any two adjacent picture frames in the n picture frames is not higher than the interval threshold, the total refresh time of the n picture frames is obtained according to the refresh time of the n picture frames.

[0029] Optionally, obtaining the first target frame rate includes:

[0030] Receiving a refresh frame rate control instruction sent by a cloud server, wherein the refresh frame rate control instruction is an instruction sent by the cloud server when the display scene of the terminal is monitored to change;

[0031] The first target frame rate indicated by the refresh frame rate control instruction is obtained.

[0032] According to a second aspect of an embodiment of the present disclosure, a device for controlling a screen refresh frame rate is provided, wherein the device is applied to a terminal including a display screen, and the terminal includes:

[0033] A first acquisition module, used to acquire a first target frame rate, where the first target frame rate is a maximum refresh frame rate corresponding to a display scene of the terminal; the display scene is a scene divided according to a type of a display interface in the display screen;

[0034] A first setting module, configured to set the refresh frame rate of the display screen to a second target frame rate when no user operation on the display interface is received, wherein the second target frame rate is not higher than the first target frame rate;

[0035] The second setting module is configured to set the refresh frame rate of the display screen to the first target frame rate when receiving a user operation on the display interface.

[0036] Optionally, the display screen is a touch display screen; and the device further includes:

[0037] a monitoring module, configured to monitor a touch event before the second setting module sets the refresh frame rate of the display screen to the first target frame rate, wherein the touch event is an event generated when the terminal detects a touch operation on the display screen;

[0038] The first determining module is configured to determine that a user operation on the display interface is received when the touch event is monitored.

[0039] Optionally, the second setting module is used to:

[0040] When the user operation corresponding to the touch event is a valid operation, setting the refresh frame rate of the display screen to the first target frame rate;

[0041] The effective operation refers to an operation that triggers effective updating of the content in the display interface.

[0042] Optionally, the monitoring module is used to:

[0043] When the second target frame rate is lower than the first target frame rate, the touch event is monitored.

[0044] Optionally, the device further comprises:

[0045] A second acquisition module is used to acquire the picture frame rate of the display interface in real time before the first setting module sets the refresh frame rate of the display screen to the second target frame rate, wherein the picture frame rate is the frequency at which the picture frames in the display interface change;

[0046] The second determination module is used to determine the second target frame rate according to the picture frame rate acquired in real time.

[0047] Optionally, the second determination module is used to determine the value of the picture frame rate as the value of the second target frame rate.

[0048] Optionally, the second acquisition module includes:

[0049] A first acquisition submodule is used to acquire the refresh time of the n frames of images most recently displayed in the display interface, where n is an integer greater than or equal to 2;

[0050] A second acquisition submodule, used for acquiring the total refresh duration of the n picture frames according to the refresh time of the n picture frames;

[0051] The third acquisition submodule is used to acquire the picture frame rate of the display interface according to the total refresh time of the n picture frames.

[0052] Optionally, the second acquisition submodule is used to:

[0053] When the time interval between any two adjacent picture frames in the n picture frames is not higher than the interval threshold, the total refresh time of the n picture frames is obtained according to the refresh time of the n picture frames.

[0054] Optionally, the first acquisition module includes:

[0055] An instruction receiving submodule, used to receive a refresh frame rate control instruction sent by a cloud server, wherein the refresh frame rate control instruction is an instruction sent by the cloud server when the display scene of the terminal is monitored to change;

[0056] The fourth acquisition submodule is used to acquire the first target frame rate indicated by the refresh frame rate control instruction.

[0057] According to a third aspect of an embodiment of the present disclosure, a device for controlling a screen refresh frame rate is provided, the device being used in a terminal including a display screen, the device comprising:

[0058] processor;

[0059] a memory for storing executable instructions for the processor;

[0060] Wherein, the processor is configured to:

[0061] Acquire a first target frame rate, where the first target frame rate is a maximum refresh frame rate corresponding to a display scene of the terminal; the display scene is a scene divided according to a type of a display interface in the display screen;

[0062] When no user operation on the display interface is received, setting the refresh frame rate of the display screen to a second target frame rate, wherein the second target frame rate is not higher than the first target frame rate;

[0063] When a user operation on the display interface is received, the refresh frame rate of the display screen is set to the first target frame rate.

[0064] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, wherein the storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the screen refresh frame rate control method described in the above-mentioned first aspect or any optional scheme of the first aspect.

[0065] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0066] By acquiring the maximum refresh frame rate corresponding to the display scene of the terminal as the first target frame rate, the refresh frame rate of the display screen is set to a second target frame rate not higher than the first target frame rate; when the terminal receives a user operation on the display interface, the refresh frame rate of the display screen is set to the first target frame rate, so that the terminal can control the refresh frame rate of the display screen to be no higher than the maximum refresh frame rate of the display scene, thereby reducing the power consumption of the display screen; at the same time, when receiving the user operation, the refresh frame rate of the display screen is switched to the maximum refresh frame rate of the current display scene, thereby ensuring the smoothness of the interaction, thereby controlling the power consumption of the display screen while ensuring the responsiveness of the interface interaction.

[0067] It is to be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0069] Figure 1 is a schematic diagram of the structure of a terminal according to an exemplary embodiment;

[0070] Figure 2 is a flow chart of a method for controlling a screen refresh frame rate according to an exemplary embodiment;

[0071] Figure 3 is a flow chart of a method for controlling a screen refresh frame rate according to another exemplary embodiment;

[0072] Figure 4 is a flow chart of a method for controlling a screen refresh frame rate according to another exemplary embodiment;

[0073] Figure 5 is a block diagram of a device for controlling a screen refresh frame rate according to an exemplary embodiment;

[0074] Figure 6 The diagram is a schematic structural diagram of a computer device according to an exemplary embodiment. DETAILED DESCRIPTION

[0075] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0076] It should be understood that the "several" mentioned in this article refers to one or more, and "multiple" refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0077] The present disclosure provides a method for controlling a screen refresh frame rate. The method for controlling a screen refresh frame rate is executed by a terminal including a display screen. By refreshing the screen refresh frame rate in real time, the power consumption of the display screen is controlled while ensuring the response effect of the interface interaction. Next, the method for controlling a screen refresh frame rate involved in an embodiment of the present disclosure will be described in detail in conjunction with the accompanying drawings.

[0078] First, some terms involved in the present disclosure are explained.

[0079] 1) Terminal

[0080] In the embodiments of the present disclosure, the terminal may be a computing device with a display screen. For example, the terminal may be a mobile terminal such as a smart phone, a tablet computer, an e-book reader, or a smart wearable device such as a smart watch, or a personal computer such as an all-in-one computer or a laptop computer.

[0081] For example, please refer to Figure 1 , which shows a schematic diagram of the structure of a terminal provided by an exemplary embodiment of the present disclosure. Figure 1 As shown, the terminal includes a mainboard 110 , an external output / input device 120 , a memory 130 , an external interface 140 , a touch control system 150 and a power supply 160 .

[0082] The mainboard 110 integrates processing elements such as a processor and a controller.

[0083] The external input / output device 120 may include a display component (such as a display screen), a sound playback component (such as a speaker), a sound collection component (such as a microphone), and various buttons.

[0084] The memory 130 stores program codes and data.

[0085] The external interface 140 may include an earphone interface, a charging interface, a data interface, and the like.

[0086] The touch control system 150 may be integrated into a display component or a button of the external input / output device 120 . The touch control system 150 is used to detect a touch control operation performed by a user on the display component or the button.

[0087] The power supply 160 is used to supply power to other components in the terminal.

[0088] In the embodiment of the present application, the processor in the mainboard 110 can generate interface content by executing or calling the program code and data stored in the memory, and display the generated interface content through the external output / input device 120. In the process of displaying the interface content, the capacitive touch system 150 can detect the touch operation performed when the user interacts with the interface, and the external output / input device 120 can also detect the key or other operations performed when the user interacts with the interface, such as gesture operation, voice operation, etc.

[0089] 2) Display refresh rate

[0090] In the disclosed embodiments, the refresh frame rate of the display screen refers to the physical refresh speed of the display screen, which refers to the number of times the electron beam repeatedly scans the image on the screen, and is mainly determined by the display screen itself. The higher the refresh frame rate of the display screen, the better the stability of the image displayed by the display screen; for liquid crystal displays or LED displays, the refresh frame rate of the display screen can be understood as the number of times the screen image is refreshed per second.

[0091] The refresh frame rate of the screen is usually divided into vertical refresh frame rate and horizontal refresh frame rate. Generally speaking, the refresh frame rate refers to the vertical refresh frequency, which indicates how many times the screen image is redrawn per second, that is, how many times the screen is refreshed per second. The higher the refresh frequency, the more stable and clear the image display is, and the less damage to the eyes. The lower the refresh frequency, the more severe the image flicker and jitter.

[0092] 3) Frame rate

[0093] In the embodiments of the present disclosure, the frame rate refers to the frequency at which a bitmap image in frames appears continuously on a display or screen, and generally refers to the speed at which the screen changes when an application is running on a terminal. The frame rate at which an application runs on a terminal is determined by both the display scene of the terminal and the performance of the terminal. The performance of the terminal mainly depends on the performance of the graphics processor (GPU). The stronger the GPU's rendering and drawing capabilities for the content to be displayed on the display, the smoother and more realistic the screen. The worse the GPU's rendering and drawing capabilities for the content to be displayed on the display, the more severe the screen freezes.

[0094] 4) Display refresh rate and picture frame rate

[0095] The refresh frame rate of the display screen determines the maximum frame rate of the picture that the user can see. For example, if the maximum refresh frame rate of the display screen is 30 frames per second, then even if the picture frame rate reaches 200 frames per second, the display screen can only "grab" 30 frames per second for display, and the final picture that the user can see is only 30 frames per second. It can be said that the refresh frame rate of the display screen corresponds to the refresh frame rate of the picture that the user can see.

[0096] 5) Application entry (UIApplication)

[0097] The UIApplication object is a symbol of an application. Each application has its own UIApplication object, which is automatically created by the terminal system. It can perform some application-level operations, such as setting application information reminders, setting the visibility of the network indicator, or setting the application's status bar, etc., to jump between applications.

[0098] Figure 2 is a flowchart of a method for controlling a screen refresh frame rate according to an exemplary embodiment. The method for controlling a screen refresh frame rate is executed by a terminal including a display screen. For example, the terminal may be as follows Figure 1 The terminal shown. Figure 2 As shown, the method for refreshing the screen frame rate includes:

[0099] Step 210, obtaining a first target frame rate, where the first target frame rate is a maximum refresh frame rate corresponding to a display scene of the terminal; a display scene is a scene divided according to a type of a display interface in a display screen.

[0100] Optionally, the display scene may be a user interface (UI) interaction scene, a video playback scene, a reading scene, and the like.

[0101] Step 220: Set the refresh frame rate of the display screen to a second target frame rate, where the second target frame rate is not higher than the first target frame rate.

[0102] In this embodiment, when no user operation on the display interface is received, the terminal can set the refresh frame rate of the display screen to a second target frame rate, and the second target frame rate is equal to the first target frame rate, or the second target frame rate is less than the first target frame rate.

[0103] Step 230: When a user operation on the display interface is received, the refresh frame rate of the display screen is set to a first target frame rate.

[0104] Optionally, the user operation may be an interaction between the user and the display interface through touching the display screen, or through key operation, or through voice operation, or through induction between gestures and the display interface, or through facial recognition or facial movements and the display interface, etc.

[0105] Optionally, the display screen is a touch display screen; when a user operation on the display interface is received, before setting the refresh frame rate of the display screen to the first target frame rate, the method further includes:

[0106] Monitor touch events, which are events generated when the terminal detects a touch operation on the display screen;

[0107] When a touch event is monitored, it is determined that a user operation on the display interface is received.

[0108] Optionally, setting the refresh frame rate of the display screen to a first target frame rate includes:

[0109] When the user operation corresponding to the touch event is a valid operation, setting the refresh frame rate of the display screen to a first target frame rate;

[0110] The effective operation refers to an operation that triggers the updating of the content in the display interface.

[0111] Optionally, the touch event monitoring includes:

[0112] When the second target frame rate is lower than the first target frame rate, a touch event is monitored.

[0113] Optionally, before setting the refresh frame rate of the display screen to the second target frame rate, the method further includes:

[0114] Obtain the frame rate of the display interface in real time. The frame rate is the frequency at which the frame of the display interface changes.

[0115] The second target frame rate is determined according to the picture frame rate acquired in real time.

[0116] Optionally, determining the second target frame rate according to the frame rate of the picture acquired in real time includes:

[0117] The value of the picture frame rate is determined as the value of the second target frame rate.

[0118] Optionally, obtain the frame rate of the display interface in real time, including:

[0119] Get the refresh time of the n most recently displayed frames in the display interface, where n is an integer greater than or equal to 2;

[0120] According to the refresh time of n frames, the total refresh time of n frames is obtained;

[0121] The frame rate of the display interface is obtained according to the total refresh time of n frames.

[0122] Optionally, obtaining the total refresh duration of n frames according to the refresh time of n frames includes:

[0123] When the time interval between any two adjacent picture frames in the n picture frames is not higher than the interval threshold, the total refresh time of the n picture frames is obtained according to the refresh time of the n picture frames.

[0124] Optionally, obtaining a first target frame rate includes:

[0125] Receive a refresh frame rate control instruction sent by the cloud server. The refresh frame rate control instruction is an instruction sent by the cloud server when it monitors that the display scene of the terminal has changed;

[0126] A first target frame rate indicated by the refresh frame rate control instruction is obtained.

[0127] To summarize, the screen refresh frame rate control method shown in the embodiment of the present invention obtains the maximum refresh frame rate corresponding to the display scene of the terminal, sets the refresh frame rate of the display screen to be no higher than the maximum refresh frame rate corresponding to the display scene, and sets the refresh frame rate of the display screen to the maximum refresh frame rate corresponding to the display scene of the terminal when a user operation is received. While controlling the power consumption of the display screen of the terminal, if a user operation is received, the refresh frame rate of the display screen can be adjusted to ensure the smoothness of the interface interaction, thereby ensuring the responsiveness of the interface interaction while controlling the power consumption of the display screen.

[0128] The user's operation on the display interface may be one or more of touch screen operation, key operation, voice operation, gesture operation, or facial recognition or facial action interaction operation. The following takes the user's operation on the display interface as a touch screen operation as an example to explain the above Figure 2 Describe the scheme involved.

[0129] Figure 3 is a flowchart of a method for controlling a screen refresh frame rate according to an exemplary embodiment. The method for controlling a screen refresh frame rate is executed by a terminal including a display screen. For example, the terminal may be as follows Figure 1 Assume that the display screen is a touch display screen and the user operation is a touch screen operation. Figure 3 As shown, the method for refreshing the screen frame rate includes:

[0130] Step 310, obtaining a first target frame rate, where the first target frame rate is a maximum refresh frame rate corresponding to a display scene of the terminal; the display scene is a scene divided according to a type of display interface in the display screen.

[0131] For example, in the embodiments of the present disclosure, the display scene of the terminal can be divided into one or more scenes according to the type of display interface displayed on the display screen of the terminal. For example, the display scene of the terminal can be divided into a reading and browsing scene, a video playing scene, and a UI interaction scene according to the type of display interface.

[0132] For example, if the content displayed on the current terminal display screen is a picture and / or a document interface, the current display scene may be a reading and browsing scene;

[0133] If the content displayed on the current terminal display screen is a video playback interface, the current display scene may be a video playback scene;

[0134] If the interface displayed on the current terminal display screen receives a user operation and makes a corresponding response to the user operation, the current display scene may be a UI interaction scene.

[0135] Optionally, obtaining a first target frame rate includes:

[0136] Receive a refresh frame rate control instruction sent by the cloud server. The refresh frame rate control instruction is an instruction sent by the cloud server when it monitors that the display scene of the terminal has changed;

[0137] A first target frame rate indicated by the refresh frame rate control instruction is obtained.

[0138] In a possible embodiment provided by the embodiments of the present disclosure, the cloud server can monitor the display scene of the terminal. When it is monitored that the display scene of the terminal has changed, the changed display scene can be matched with the target display scene that requires controlling the refresh frame rate of the display screen. If the match is successful, the cloud server can send a refresh frame rate control instruction to the terminal. When the terminal receives the refresh frame rate control instruction sent by the cloud server, the terminal can obtain the maximum refresh frame rate corresponding to the display scene of the terminal according to the refresh frame rate control instruction, that is, the above-mentioned first target frame rate.

[0139] In an exemplary scenario, when the cloud server monitors that the display scene of the terminal is a display scene that requires controlling the refresh frame rate of the display screen, a refresh frame rate control instruction carrying a display scene identifier can be sent to the terminal. When the terminal receives the refresh frame rate control instruction sent by the cloud server, the terminal queries the corresponding maximum refresh frame rate based on the identifier of the display scene carried in the refresh frame rate control instruction, that is, the above-mentioned query of the first target frame rate.

[0140] In another exemplary scheme, when the cloud server monitors that the display scene of the terminal is a display scene that requires controlling the refresh frame rate of the display screen, it can directly query the corresponding maximum refresh frame rate according to the display scene (that is, the above-mentioned query of the first target frame rate), and carry the first target frame rate in the refresh frame rate control instruction to the terminal. The terminal directly obtains the first target frame rate from the refresh frame rate control instruction sent by the cloud server.

[0141] Step 320: When no user operation on the display interface is received, the refresh frame rate of the display screen is set to a second target frame rate, and the second target frame rate is not higher than the first target frame rate.

[0142] Optionally, in an embodiment of the present disclosure, when no user operation on the display interface is received, the terminal can dynamically adjust the refresh frame rate of the display screen in combination with the maximum refresh frame rate corresponding to the display scene of the terminal (i.e., the first target frame rate mentioned above), so that the refresh frame rate of the display screen is dynamically adjusted within a range not exceeding the first target frame rate, thereby realizing power consumption control of the display screen in combination with the display content in the display interface of the terminal.

[0143] For example, the maximum refresh frame rate supported by the display screen can reach up to 120 frames / second, and the maximum refresh frame rate corresponding to the current display scene of the terminal is 60 frames / second (that is, the first target frame rate is 60 frames / second). Then, when the terminal displays the display interface in the current display scene, the refresh frame rate of the display screen can be dynamically set within the frame rate range of 60 frames / second and below.

[0144] Step 330 : monitoring a touch event, where the touch event is an event generated when the terminal detects a touch operation on the display screen.

[0145] Optionally, after the operating system of the terminal is started, when the user performs a touch operation on the display screen, the operating system generates a touch event (touch event) and adds the touch event to the event queue managed by UIApplication; UIApplication takes the front event from the event queue and distributes the event to the application managed by UIApplication corresponding to the event for processing. Correspondingly, when the application receives the event sent by UIApplication and determines that the event is a touch event based on the event type, it confirms that the touch event has been monitored.

[0146] Optionally, the above application is a system program or a third-party application for controlling the display screen of the terminal.

[0147] Optionally, the terminal monitors touch events when the second target frame rate is lower than the first target frame rate.

[0148] Since monitoring touch events requires calling related programs, it will generate a certain amount of power consumption and occupy computing resources. When the second target frame rate is equal to the first target frame rate, the refresh frame rate of the current display screen is already the maximum refresh frame rate corresponding to the current display scene of the terminal. Even if a touch event occurs, the refresh frame rate of the current display screen needs to be switched to the maximum refresh frame rate of the display screen. However, due to the limitation of the maximum refresh frame rate of the current display scene of the terminal, the refresh frame rate of the display screen will not be adjusted. Therefore, in the present disclosed embodiment, when the second target frame rate is equal to the first target frame rate, the terminal does not need to monitor touch events, but executes the step of monitoring touch events when the second target frame rate is lower than the first target frame rate. Thereby, by setting the conditions for monitoring touch events, power consumption can be reduced to a certain extent and the occupation of computing resources can be reduced.

[0149] Step 340: When a touch event is monitored, it is determined that a user operation on the display interface is received.

[0150] In the embodiment of the present disclosure, when the application for controlling the display screen in the terminal monitors the above-mentioned touch event, the application can determine that the user has performed a touch operation on the display interface.

[0151] Step 350: When a user operation on the display interface is received, the refresh frame rate of the display screen is set to a first target frame rate.

[0152] In this embodiment, when the terminal receives an operation of the user touching the display screen, the refresh frame rate of the display screen is set to the first target frame rate.

[0153] Optionally, when the terminal receives a user operation on the display interface and sets the refresh frame rate of the display screen, the terminal can obtain the current refresh frame rate of the display screen and compare the obtained current refresh frame rate with the above-mentioned first target frame rate. If the current refresh frame rate is equal to the first target frame rate, the current refresh frame rate of the display screen is kept unchanged at the first target frame rate; if the current refresh frame rate is less than the first target frame rate, the terminal adjusts the refresh frame rate of the display screen to the first target frame rate.

[0154] In the embodiment of the present disclosure, the terminal determines whether a user operation is received by monitoring touch events, and when it is determined that a user operation is received, sets the refresh frame rate of the display screen to the first target frame rate with the highest value for the current display scene. Since the logic of the terminal for setting the refresh frame rate of the display screen is simpler and more direct than the logic of the display interface's response to the user operation, through the scheme shown in the embodiment of the present disclosure, the terminal can complete the adjustment of the refresh frame rate of the display screen before the display interface responds to the user operation, thereby enabling the display interface to respond to the user operation when the refresh frame rate of the display screen is the highest refresh frame rate corresponding to the current display scene, thereby ensuring the smoothness of the UI interaction.

[0155] Optionally, when the user operation corresponding to the touch event is a valid operation, the terminal sets the refresh frame rate of the display screen to the first target frame rate;

[0156] The effective operation refers to an operation that triggers the updating of the content in the display interface.

[0157] In this embodiment, when the user performs a touch operation on the display screen area, if the terminal receives the touch operation and responds to the user operation, triggering the update of the content in the terminal display interface, the user operation can be regarded as a valid operation. On the contrary, if the touch operation detected by the terminal does not trigger the update of the content in the display interface, the terminal can regard the touch operation as an invalid operation.

[0158] In one possible situation, after the user performs a touch operation on an area of ​​the display screen, the terminal receives the touch operation but may not respond to the operation, that is, the touch operation does not trigger an update of the content in the display interface. For example, in the lock screen interface, the user clicks on an area of ​​the display screen, but the touched area is not the area that triggers an unlock reminder or opens the unlock interface. The display screen will not respond to the user's click operation. At this time, the user operation can be regarded as an invalid operation.

[0159] Alternatively, in another possible scenario, the terminal used by the user has a curved screen. The terminal may not respond to the user's click operation on the edge of the curved screen (that is, the click operation on the edge of the curved screen does not trigger the update of the content in the display interface), but may respond to the user's sliding operation on the edge of the curved screen (that is, the sliding operation on the edge of the curved screen triggers the update of the content in the display interface). At this time, the terminal may regard the click operation on the edge of the curved screen as an invalid operation, and regard the sliding operation on the edge of the curved screen as a valid operation.

[0160] In the embodiment of the present disclosure, since invalid operations do not trigger the update of the content of the terminal's display interface, and therefore do not involve the display interface's response to user operations, in order to avoid unnecessary refresh frame rate adjustments, the terminal can determine whether the touch operation on the display interface is a valid operation when receiving the touch operation. If so, the refresh frame rate of the display screen is adjusted to the first target frame rate. Otherwise, if the touch operation is an invalid operation, the terminal may not adjust the refresh frame rate of the display screen to avoid increasing the refresh frame rate of the display screen in non-UI interaction situations, thereby further improving the power saving effect.

[0161] It should be noted that the embodiments of the present disclosure are only described by taking the user operation as a touch operation generated by the user touching the display screen and the display interface. Optionally, the above-mentioned user operation may also be other types of operations other than touch operation that can trigger the display interface to update. For example, the above-mentioned user operation may also be a key operation, a voice operation, a gesture operation (referring to an operation in which the user does not actually contact the display screen, and the response is triggered by the recognition and induction of the gesture between the terminal and the user), and an expression operation, etc.

[0162] For example, when a user interacts with the display interface through key operations, the terminal detects the user's key operations. If the key operations trigger an update of the content in the display interface, such as lighting up the screen, the terminal can set the refresh frame rate of the display to the first target frame rate.

[0163] Alternatively, when the user interacts with the display interface through voice operation, the terminal receives the user's voice command and calls the relevant application to respond to the voice command. If the voice command triggers an update of the content in the display interface, such as waking up the screen through voice operation, the terminal can set the refresh frame rate of the display to the first target frame rate.

[0164] Alternatively, when the user interacts with the display interface through gesture operations, if the terminal detects that the user's gesture operation is an operation that triggers an update of the content in the display interface, such as the user turning pages or sliding up and down on the current display interface through gesture operations, the terminal can set the refresh frame rate of the display screen to the first target frame rate.

[0165] Alternatively, when a user interacts with the display interface through facial expressions / movements, if the terminal detects that the user's facial expressions / movements are operations that trigger an update of the content in the display interface, such as identity authentication through facial expressions or facial movements, the terminal can set the refresh frame rate of the display screen to the first target frame rate.

[0166] To summarize, the screen refresh frame rate control method shown in the embodiment of the present invention obtains the maximum refresh frame rate corresponding to the display scene of the terminal, sets the refresh frame rate of the display screen to be no higher than the maximum refresh frame rate corresponding to the display scene, and sets the refresh frame rate of the display screen to the maximum refresh frame rate corresponding to the display scene of the terminal when a user operation is received. While controlling the power consumption of the display screen of the terminal, if a user operation is received, the refresh frame rate of the display screen can be adjusted to ensure the smoothness of the interface interaction, thereby ensuring the responsiveness of the interface interaction while controlling the power consumption of the display screen.

[0167] Figure 4 is a flowchart of a method for controlling a screen refresh frame rate according to an exemplary embodiment. The method for controlling a screen refresh frame rate is executed by a terminal including a display screen. For example, the terminal may be as follows Figure 1 The terminal shown, such as Figure 4 As shown, the method for refreshing the screen frame rate includes:

[0168] Step 410, obtaining a first target frame rate, where the first target frame rate is a maximum refresh frame rate of a display scene of the terminal; a display scene is a scene divided according to a type of a display interface in a display screen.

[0169] The execution process of the above step 410 can refer to Figure 3 The description of step 310 in the illustrated embodiment will not be repeated here.

[0170] Step 420, obtaining the picture frame rate of the display interface in real time.

[0171] The frame rate of the display interface refers to the frequency at which different display contents in the display interface appear continuously on the display or screen.

[0172] In a possible embodiment, the display scene of the terminal is a video playback scene, and the maximum refresh frame rate of the display screen in the video playback scene (i.e., the first refresh frame rate mentioned above) is 60 frames / second, but the picture frame rate of the video source of the video playback may be greater than or less than the maximum refresh frame rate of the video playback scene. For example, the refresh frame rate of the video source may be 70 frames / second or 50 frames / second.

[0173] Alternatively, the display scenario of the terminal is a reading and browsing scenario, and the maximum refresh frame rate of the display screen in the reading and browsing scenario is 30 frames / second, but the screen frame rate of the interface of the application that supports reading and browsing may be greater than or less than the maximum refresh frame rate of the reading and browsing scenario. For example, the screen frame rate of the interface of the application may be 35 frames / second or 25 frames / second.

[0174] Alternatively, the display scene of the terminal is a UI interaction scene, and the maximum refresh frame rate of the display screen in the UI interaction scene is 120 frames / second, but the screen frame rate of the interface of the application that performs UI interaction may be greater than or less than the maximum refresh frame rate of the UI interaction scene. For example, the screen frame rate of the interface of the application may be 130 frames / second or 110 frames / second.

[0175] It should be noted that the above solution of the embodiment of the present disclosure only provides one possible situation, and the embodiment of the present disclosure does not limit the display scene, the maximum refresh frame rate of the display screen in the display scene, and the picture frame rate in the display scene.

[0176] Since the picture frame rate of the display interface may not be synchronized with the refresh frame rate of the display screen, the display screen refreshes unevenly, resulting in the display interface not being displayed smoothly enough. In the embodiment of the present disclosure, when the terminal controls the refresh frame rate of the display screen, the picture frame rate of the display interface can be obtained in real time. The method for obtaining the picture frame rate of the display interface in real time can be as follows:

[0177] Get the refresh time of the n most recently displayed frames in the display interface, where n is an integer greater than or equal to 2; get the total refresh time of the n frames according to the refresh time of the n frames; get the frame rate of the display interface according to the total refresh time of the n frames.

[0178] In a possible embodiment provided by the present disclosure, the terminal may calculate the picture frame rate of the display screen by the following formula:

[0179]

[0180] Among them, f1 is the picture frame rate, n1 is the number of frames of the most recently displayed picture frame, and t1 is the total refresh time of displaying n1 frames of the picture frame. The terminal can obtain the picture frame rate of the display interface according to the above calculation formula.

[0181] Optionally, the method of obtaining the frame rate of the display interface in real time may also be as follows:

[0182] The number of picture frames displayed in the display interface within the most recent specified time period is obtained; and the picture frame rate of the display interface is obtained according to the specified time period and the number of picture frames displayed in the most recent specified time period.

[0183] In another possible embodiment provided by the present disclosure, the terminal may calculate the picture frame rate of the display screen by the following formula:

[0184]

[0185] Wherein f2 is the picture frame rate, t2 is the time of the most recent displayed picture frame, and n2 is the number of picture frames refreshed within t2. The terminal can obtain the picture frame rate of the display interface according to the calculation formula.

[0186] Optionally, when the time interval between any two adjacent picture frames in the n picture frames is not greater than the interval threshold, the total refresh time of the n picture frames is obtained according to the refresh time of the n picture frames.

[0187] Among them, the interval threshold refers to the maximum value of the time interval between refreshing two adjacent picture frames. When the time interval between two adjacent picture frames is not higher than the interval threshold, it indicates that the two picture frames are continuous; when the time interval between two adjacent picture frames is higher than the interval threshold, it indicates that the two picture frames are discontinuous.

[0188] In a possible embodiment provided by the present disclosure, when the time interval between adjacent first and second picture frames is higher than an interval threshold, that is, the first and second picture frames are discontinuous, the terminal can clear previous statistical values, which include statistics on the number of picture frames, statistics on the time to refresh the picture frames, etc., and re-count the number of picture frames and the time to refresh the picture frames starting from the second picture frame, so as to obtain the total refresh time of the n picture frames based on the re-counted refresh time of the n picture frames.

[0189] For example, assuming that the interval threshold set by the terminal is 70 milliseconds, if the time interval between the first picture frame and the second picture frame is less than or equal to 70 milliseconds, it is considered that the first picture frame and the second picture frame are continuous, and the total refresh time of the n-frame picture frame is obtained according to the statistical refresh time of the n-frame picture frame;

[0190] If the time interval between the first picture frame and the second picture frame is greater than 70 milliseconds, it is considered that the first picture frame and the second picture frame are discontinuous. In a possible scenario, the discontinuity between the first picture frame and the second picture frame may be an operation of pausing the currently played video in a video playback scenario, etc. At this time, the terminal clears the previous statistical value, and re-counts from the second picture frame, and obtains the total refresh time of the n-frame picture frame according to the refresh time of the re-counted n-frame picture station.

[0191] Step 430: determine a second target frame rate according to the picture frame rate acquired in real time.

[0192] Optionally, the terminal may determine the value of the picture frame rate as the value of the second target frame rate.

[0193] In the embodiment of the present disclosure, the terminal may switch the second target frame rate in real time and adjust the second target frame rate according to the change of the picture frame rate.

[0194] For example, when the terminal monitors that the picture frame rate is not less than the maximum refresh frame rate of the display scene, the second target frame rate is set to the maximum refresh frame rate of the display scene. For example, if the current picture frame rate is 70 frames / second, but the maximum refresh frame rate of the current display scene is 60 frames / second, the second target frame rate is set to 60 frames / second.

[0195] When the terminal monitors that the picture frame rate is lower than the maximum refresh frame rate corresponding to the display scene, but higher than the minimum refresh frame rate of the display scene, the second target frame rate is set to the picture frame rate acquired in real time. For example, the picture frame rate acquired in real time is 50 frames / second, and the maximum refresh frame rate of the current display scene is 60 frames / second, and the minimum refresh frame rate is 20 frames / second, then the terminal can set the second target frame rate to 50 frames / second.

[0196] When the terminal monitors that the picture frame rate is lower than the minimum refresh frame rate of the display scene, the second target frame rate is set to the minimum refresh frame rate corresponding to the display scene. For example, if the current picture frame rate is 10 frames / second and the minimum refresh frame rate of the current display scene is 20 frames / second, the terminal sets the second target frame rate to 20 frames / second.

[0197] Optionally, in the disclosed embodiment, when the terminal monitors that the picture frame has not been refreshed for a long time, that is, the current picture frame has not been refreshed for a time threshold, the second target frame rate can be set to the minimum refresh frame rate corresponding to the display scene. For example, the maximum refresh frame rate of the current display scene is 60 frames / second, the minimum refresh frame rate is 20 frames / second, and the time threshold set by the terminal is 50 milliseconds. Then, when the picture frame in the display interface has not been refreshed for more than 50 milliseconds (for example, when the video scene is in a paused state), the terminal can set the second target frame rate to 20 frames / second.

[0198] Step 440: When no user operation on the display interface is received, the refresh frame rate of the display screen is set to a second target frame rate.

[0199] Step 450: When a user operation on the display interface is received, the refresh frame rate of the display screen is set to a first target frame rate.

[0200] Steps 440 to 450 and Figure 3 The execution process of step 320 and step 350 in the illustrated embodiment is similar and will not be repeated here.

[0201] To summarize, the screen refresh frame rate control method shown in the embodiment of the present invention obtains the maximum refresh frame rate corresponding to the display scene of the terminal, sets the refresh frame rate of the display screen to be no higher than the maximum refresh frame rate corresponding to the display scene, and sets the refresh frame rate of the display screen to the maximum refresh frame rate corresponding to the display scene of the terminal when a user operation is received. While controlling the power consumption of the display screen of the terminal, if a user operation is received, the refresh frame rate of the display screen can be adjusted to ensure the smoothness of the interface interaction, thereby ensuring the responsiveness of the interface interaction while controlling the power consumption of the display screen.

[0202] Figure 5 is a block diagram of a device for controlling a screen refresh frame rate according to an exemplary embodiment. The device for controlling a screen refresh frame rate can be used in a terminal including a display screen to perform the above Figure 2 , Figure 3 or Figure 4 All or part of the steps of the method shown in any embodiment. The above terminal can be Figure 1 The terminal shown. Figure 5 As shown, the device for controlling the screen refresh frame rate may include:

[0203] A first acquisition module 510 is used to acquire a first target frame rate, where the first target frame rate is a maximum refresh frame rate corresponding to a display scene of the terminal; a display scene is a scene divided according to a type of a display interface in a display screen;

[0204] A first setting module 520, configured to set the refresh frame rate of the display screen to a second target frame rate when no user operation on the display interface is received, wherein the second target frame rate is not higher than the first target frame rate;

[0205] The second setting module 530 is configured to set the refresh frame rate of the display screen to the first target frame rate when receiving a user operation on the display interface.

[0206] Optionally, the display screen is a touch display screen; the device also includes:

[0207] A monitoring module, used for monitoring a touch event before the second setting module 530 sets the refresh frame rate of the display screen to the first target frame rate, where the touch event is an event generated when the terminal detects a touch operation on the display screen;

[0208] The first determining module is used to determine that a user operation on the display interface is received when a touch event is monitored.

[0209] Optionally, a second setting module is used to:

[0210] When the user operation corresponding to the touch event is a valid operation, setting the refresh frame rate of the display screen to a first target frame rate;

[0211] The effective operation refers to an operation that triggers the updating of the content in the display interface.

[0212] Optionally, the monitoring module is used to:

[0213] When the second target frame rate is lower than the first target frame rate, a touch event is monitored.

[0214] Optionally, the device further comprises:

[0215] A second acquisition module is used to acquire the picture frame rate of the display interface in real time before the first setting module 520 sets the refresh frame rate of the display screen to the second target frame rate. The picture frame rate is the frequency at which the picture frames in the display interface change.

[0216] The second determination module is used to determine a second target frame rate according to the picture frame rate acquired in real time.

[0217] Optionally, the second determination module is used to determine the value of the picture frame rate as the value of the second target frame rate.

[0218] Optionally, the second acquisition module includes:

[0219] The first acquisition submodule is used to acquire the refresh time of the n frames most recently displayed in the display interface, where n is an integer greater than or equal to 2;

[0220] The second acquisition submodule is used to acquire the total refresh time of n frames according to the refresh time of n frames;

[0221] The third acquisition submodule is used to acquire the picture frame rate of the display interface according to the total refresh time of n frames.

[0222] Optionally, the second acquisition submodule is used to:

[0223] When the time interval between any two adjacent picture frames in the n picture frames is not higher than the interval threshold, the total refresh time of the n picture frames is obtained according to the refresh time of the n picture frames.

[0224] Optionally, the first acquisition module includes:

[0225] The command receiving submodule is used to receive the refresh frame rate control command sent by the cloud server. The refresh frame rate control command is a command sent by the cloud server when it monitors that the display scene of the terminal has changed;

[0226] The fourth acquisition submodule is used to acquire the first target frame rate indicated by the refresh frame rate control instruction.

[0227] To summarize, the screen refresh frame rate control device shown in the embodiment of the present disclosure obtains the maximum refresh frame rate corresponding to the display scene of the terminal, sets the refresh frame rate of the display screen to be no higher than the maximum refresh frame rate corresponding to the display scene, and sets the refresh frame rate of the display screen to the maximum refresh frame rate corresponding to the display scene of the terminal when receiving a user operation. While controlling the power consumption of the display screen of the terminal, if a user operation is received, the refresh frame rate of the display screen can be adjusted to ensure the smoothness of the interface interaction, thereby ensuring the responsiveness of the interface interaction while controlling the power consumption of the display screen.

[0228] One point that needs to be explained is that the device provided in the above embodiment only uses the division of the above-mentioned functional modules as an example to implement its functions. In actual applications, the above-mentioned functions can be assigned to different functional modules according to actual needs, that is, the content structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0229] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0230] The present disclosure provides a device for controlling a screen refresh frame rate. The device is used in a terminal including a display screen. The device can execute the above Figure 2 , Figure 3 or Figure 4 All or part of the steps of the method shown in any embodiment, wherein the terminal can be Figure 1 The terminal shown in FIG. The device comprises:

[0231] processor;

[0232] a memory for storing executable instructions for the processor;

[0233] Wherein, the processor is configured to:

[0234] Acquire a first target frame rate, where the first target frame rate is a maximum refresh frame rate corresponding to a display scene of the terminal; the display scene is a scene divided according to a type of a display interface in the display screen;

[0235] When no user operation on the display interface is received, setting the refresh frame rate of the display screen to a second target frame rate, wherein the second target frame rate is not higher than the first target frame rate;

[0236] When a user operation on the display interface is received, the refresh frame rate of the display screen is set to the first target frame rate.

[0237] Optionally, the display screen is a touch display screen; and before the refresh frame rate of the display screen is set to the first target frame rate when a user operation on the display interface is received, the method further includes:

[0238] Monitoring a touch event, where the touch event is an event generated when the terminal detects a touch operation on the display screen;

[0239] When the touch event is monitored, it is determined that a user operation on the display interface is received.

[0240] Optionally, setting the refresh frame rate of the display screen to the first target frame rate includes:

[0241] When the user operation corresponding to the touch event is a valid operation, setting the refresh frame rate of the display screen to the first target frame rate;

[0242] The effective operation refers to an operation that triggers effective updating of the content in the display interface.

[0243] Optionally, the monitoring of touch events includes:

[0244] When the second target frame rate is lower than the first target frame rate, the touch event is monitored.

[0245] Optionally, before setting the refresh frame rate of the display screen to the second target frame rate, the method further includes:

[0246] Acquire the frame rate of the display interface in real time, where the frame rate is the frequency at which the frame of the display interface changes;

[0247] The second target frame rate is determined according to the picture frame rate acquired in real time.

[0248] Optionally, determining the second target frame rate according to the picture frame rate acquired in real time includes:

[0249] The value of the picture frame rate is determined as the value of the second target frame rate.

[0250] Optionally, the real-time acquisition of the frame rate of the display interface includes:

[0251] Obtain the refresh time of the n frames most recently displayed in the display interface, where n is an integer greater than or equal to 2;

[0252] Obtaining a total refresh duration of the n picture frames according to the refresh time of the n picture frames;

[0253] The frame rate of the display interface is obtained according to the total refresh time of the n frames.

[0254] Optionally, obtaining the total refresh duration of the n picture frames according to the refresh time of the n picture frames includes:

[0255] When the time interval between any two adjacent picture frames in the n picture frames is not higher than the interval threshold, the total refresh time of the n picture frames is obtained according to the refresh time of the n picture frames.

[0256] Optionally, obtaining the first target frame rate includes:

[0257] Receiving a refresh frame rate control instruction sent by a cloud server, wherein the refresh frame rate control instruction is an instruction sent by the cloud server when the display scene of the terminal is monitored to change;

[0258] The first target frame rate indicated by the refresh frame rate control instruction is obtained.

[0259] To summarize, the screen refresh frame rate control device shown in the embodiment of the present disclosure obtains the maximum refresh frame rate corresponding to the display scene of the terminal, sets the refresh frame rate of the display screen to be no higher than the maximum refresh frame rate corresponding to the display scene, and sets the refresh frame rate of the display screen to the maximum refresh frame rate corresponding to the display scene of the terminal when receiving a user operation. While controlling the power consumption of the display screen of the terminal, if a user operation is received, the refresh frame rate of the display screen can be adjusted to ensure the smoothness of the interface interaction, thereby ensuring the responsiveness of the interface interaction while controlling the power consumption of the display screen.

[0260] Figure 6600 is a schematic diagram of the structure of a computer device according to an exemplary embodiment. The computer device can be implemented as the above-mentioned terminal. The computer device can be implemented as a terminal device with a display screen in the above-mentioned scheme of the present disclosure. The computer device 600 includes a central processing unit (CPU) 601, a system memory 604 including a random access memory (RAM) 602 and a read-only memory (ROM) 603, and a system bus 605 connecting the system memory 604 and the central processing unit 601. The computer device 600 also includes a basic input / output system (I / O system) 606 that helps transmit information between various devices in the computer, and a large-capacity storage device 607 for storing an operating system 613, an application program 614 and other program modules 615.

[0261] The basic input / output system 606 includes a display 608 for displaying information and an input device 609 such as a mouse and a keyboard for user inputting information. The display 608 and the input device 609 are connected to the central processing unit 601 through an input / output controller 610 connected to the system bus 605. The basic input / output system 606 may also include an input / output controller 610 for receiving and processing inputs from a plurality of other devices such as a keyboard, a mouse, or an electronic stylus. Similarly, the input / output controller 610 also provides output to a display screen, a printer, or other types of output devices.

[0262] The mass storage device 607 is connected to the central processing unit 601 through a mass storage controller (not shown) connected to the system bus 605. The mass storage device 607 and its associated computer readable medium provide non-volatile storage for the computer device 600. That is, the mass storage device 607 may include a computer readable medium (not shown) such as a hard disk or a CD-ROM drive.

[0263] Without loss of generality, the computer readable medium may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, EPROM, EEPROM, flash memory or other solid-state storage technologies, CD-ROM, DVD or other optical storage, tape cassettes, magnetic tapes, disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the above. The above-mentioned system memory 604 and mass storage device 607 can be collectively referred to as memory.

[0264] According to various embodiments of the present disclosure, the computer device 600 can also be connected to a remote computer on the network through a network such as the Internet. That is, the computer device 600 can be connected to the network 612 through the network interface unit 611 connected to the system bus 605, or the network interface unit 611 can be used to connect to other types of networks or remote computer systems (not shown).

[0265] The memory also includes one or more programs, which are stored in the memory. The CPU 601 implements the one or more programs by executing the one or more programs. Figure 2 , Figure 3 or Figure 4 All or part of the steps of the method shown.

[0266] Those skilled in the art will understand that Figure 6 The structure shown in the figure does not constitute a limitation on the computer device 600, and the computer device 600 may include more or less components than those shown in the figure, or combine some components, or adopt a different arrangement of components.

[0267] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present disclosure can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. Storage media can be any available media that can be accessed by general or special-purpose computers.

[0268] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, wherein the storage medium stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the above Figure 2 , Figure 3 or Figure 4 All or part of the steps of the method shown in any embodiment. For example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

[0269] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0270] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for controlling a screen refresh frame rate, characterized in that: The method is executed by a terminal including a display screen, the display screen is a touch display screen, and the method includes: Acquire a first target frame rate, where the first target frame rate is a maximum refresh frame rate corresponding to a display scene of the terminal; the display scene is a scene divided according to a type of a display interface in the display screen; Obtain the refresh time of the n frames most recently displayed in the display interface, where n is an integer greater than or equal to 2; when the time interval between any two adjacent frames in the n frames is not higher than the interval threshold, obtain the total refresh time of the n frames according to the refresh time of the n frames, and when the time interval between two adjacent frames is higher than the interval threshold, clear the statistical value, which includes the frame number statistics of the frame and the time statistics of the refresh frame, and re-count from the latter of the two adjacent frames to obtain the new total refresh time of the n frames; obtain the frame rate of the display interface according to the total refresh time of the n frames, and the frame rate is the frequency of changes in the frame in the display interface; Determining a second target frame rate according to the acquired picture frame rate; Setting the refresh frame rate of the display screen to the second target frame rate, wherein the second target frame rate is not higher than the first target frame rate; Monitoring a touch event, where the touch event is an event generated when the terminal detects a touch operation on the display screen; When the touch event is monitored, determining that a user operation on the display interface is received; When the user operation corresponding to the touch event is a valid operation, the refresh frame rate of the display screen is set to the first target frame rate; wherein the valid operation refers to an operation that triggers a valid update of the content in the display interface.

2. The method according to claim 1, characterized in that: The monitoring of touch events includes: When the second target frame rate is lower than the first target frame rate, the touch event is monitored.

3. The method according to claim 1, characterized in that: The obtaining of the first target frame rate comprises: Receiving a refresh frame rate control instruction sent by a cloud server, wherein the refresh frame rate control instruction is an instruction sent by the cloud server when the display scene of the terminal is monitored to change; The first target frame rate indicated by the refresh frame rate control instruction is obtained.

4. A device for controlling screen refresh frame rate, characterized in that: The device is applied to a terminal including a display screen, the display screen is a touch display screen, and the device includes: A first acquisition module, used to acquire a first target frame rate, where the first target frame rate is a maximum refresh frame rate corresponding to a display scene of the terminal; the display scene is a scene divided according to a type of a display interface in the display screen; The second acquisition module includes: a first acquisition submodule, which is used to acquire the refresh time of the n frames of picture frames most recently displayed in the display interface, where n is an integer greater than or equal to 2; a second acquisition submodule, which is used to acquire the total refresh time of the n frames of picture frames according to the refresh time of the n frames of picture frames when the time interval between any two adjacent picture frames in the n frames of picture frames is not higher than the interval threshold, and when the time interval between two adjacent picture frames is higher than the interval threshold, clear the statistical value, which includes the frame number statistics of the picture frames and the time statistics of refreshing the picture frames, and re-count from the latter of the two adjacent picture frames to obtain the new total refresh time of the n frames of picture frames; a third acquisition submodule, which is used to acquire the picture frame rate of the display interface according to the total refresh time of the n frames of picture frames, and the picture frame rate is the frequency of changes in the picture frames in the display interface; A second determination module, used to determine a second target frame rate according to the acquired picture frame rate; A first setting module, used to set the refresh frame rate of the display screen to the second target frame rate, where the second target frame rate is not higher than the first target frame rate; A monitoring module, used for monitoring a touch event, wherein the touch event is an event generated when the terminal detects a touch operation on the display screen; A first determining module, configured to determine, when monitoring the touch event, that a user operation on the display interface is received; The second setting module is used to set the refresh frame rate of the display screen to the first target frame rate when the user operation corresponding to the touch event is a valid operation; wherein the valid operation refers to an operation that triggers a valid update of the content in the display interface.

5. The device according to claim 4, characterized in that The monitoring module is used to: When the second target frame rate is lower than the first target frame rate, the touch event is monitored.

6. The device according to claim 4, characterized in that The first acquisition module includes: An instruction receiving submodule, used to receive a refresh frame rate control instruction sent by a cloud server, wherein the refresh frame rate control instruction is an instruction sent by the cloud server when the display scene of the terminal is monitored to change; The fourth acquisition submodule is used to acquire the first target frame rate indicated by the refresh frame rate control instruction.

7. A device for controlling screen refresh frame rate, characterized in that: The device is used in a terminal including a display screen, the display screen is a touch display screen, and the device includes: processor; a memory for storing executable instructions for the processor; Wherein, the processor is configured to: Acquire a first target frame rate, where the first target frame rate is a maximum refresh frame rate corresponding to a display scene of the terminal; the display scene is a scene divided according to a type of a display interface in the display screen; Obtain the refresh time of the n frames most recently displayed in the display interface, where n is an integer greater than or equal to 2; when the time interval between any two adjacent frames in the n frames is not higher than the interval threshold, obtain the total refresh time of the n frames according to the refresh time of the n frames, and when the time interval between two adjacent frames is higher than the interval threshold, clear the statistical value, which includes the frame number statistics of the frame and the time statistics of the refresh frame, and re-count from the latter of the two adjacent frames to obtain the new total refresh time of the n frames; obtain the frame rate of the display interface according to the total refresh time of the n frames, and the frame rate is the frequency of changes in the frame in the display interface; Determining a second target frame rate according to the acquired picture frame rate; Setting the refresh frame rate of the display screen to the second target frame rate, wherein the second target frame rate is not higher than the first target frame rate; Monitoring a touch event, where the touch event is an event generated when the terminal detects a touch operation on the display screen; When the touch event is monitored, determining that a user operation on the display interface is received; When the user operation corresponding to the touch event is a valid operation, the refresh frame rate of the display screen is set to the first target frame rate; wherein the valid operation refers to an operation that triggers a valid update of the content in the display interface.

8. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement the screen refresh frame rate control method as described in any one of claims 1 to 3.