Method, device and terminal for adjusting refresh rate of display screen, and storage medium

By sending a notification to the drawing surface component before adjusting the display refresh rate and receiving a response, the refresh operations of the display and the drawing surface component are coordinated, thus solving the problem of display refresh rate adjustment lag and improving the smoothness and synchronization of the display.

CN115248711BActive Publication Date: 2026-02-06BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110468265.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-28
Publication Date
2026-02-06
Estimated Expiration
2041-04-28

AI Technical Summary

Technical Problem

Existing technologies suffer from lag when adjusting display refresh rates, leading to unstable frame rates for the drawing surface components and affecting display quality.

Method used

By detecting a command to adjust the display refresh rate, an adjustment notification is sent to the drawing surface component, and a notification response is received from it, in order to coordinate the refresh operations of the display and the drawing surface component and ensure that the frame rate and refresh rate are synchronized.

Benefits of technology

The lag issue in frame rate adjustment of the drawing surface component has been improved, reducing display refresh rate jitter and enhancing display smoothness and synchronization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115248711B_ABST
    Figure CN115248711B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a display screen refresh rate adjustment method and device, a terminal and a storage medium. When an adjustment instruction for adjusting the refresh rate of a display screen is detected, it is determined whether a drawing surface component detects an adjustment notification generated based on the adjustment instruction. If the drawing surface component detects the adjustment notification, the drawing surface component is controlled to generate a notification response corresponding to the adjustment notification, wherein the notification response indicates that the drawing surface component is in an adjustable frame rate state. After the display screen detects the notification response, the refresh rate of the display screen is adjusted according to the notification response. The present disclosure ensures that the drawing surface component can timely adjust the frame rate when the refresh rate of the display screen is adjusted, so that the frame rate matches the refresh rate, and the smoothness of the refresh operation of the drawing surface component before and after the frame rate adjustment is improved, and the smoothness of the refresh operation of the display screen before and after the refresh rate adjustment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the field of electronic technology, and in particular, to a display screen refresh rate adjustment method and device, a terminal, and a storage medium. BACKGROUND

[0002] Generally, the display screen refresh process of a terminal such as a mobile phone or a computer includes an application page synthesis operation and a display operation. A drawing surface component outputs a synthesized application page to a display screen for display through the application page synthesis operation. With the development of terminal technology, a terminal supports a high refresh rate and adopts different refresh rates according to different application scenarios. For example, a refresh rate of 30 frames per second is adopted in a reading scenario to save power consumption, and a refresh rate of 90 frames per second is adopted in a game scenario to achieve smoother performance and balance performance and power consumption. Currently, when adjusting the refresh rate of a display screen, a timing calibration synchronization signal is often used to make the frame rate of a drawing surface component consistent with the refresh rate of a display screen. However, this method has a lag problem, which causes the frame rate of the drawing surface component to be unstable and affects the display effect. SUMMARY

[0003] The present disclosure provides a display screen refresh rate adjustment method, device, terminal, and storage medium.

[0004] According to a first aspect of an embodiment of the present disclosure, a display screen refresh rate adjustment method is provided, including:

[0005] After detecting an adjustment instruction for adjusting the refresh rate of a display screen, it is determined whether a drawing surface component detects an adjustment notification generated based on the adjustment instruction.

[0006] If the drawing surface component detects the adjustment notification, the drawing surface component is controlled to generate a notification response corresponding to the adjustment notification, where the notification response is used to indicate that the drawing surface component is in an adjustable frame rate state.

[0007] After the display screen detects the notification response, the refresh rate of the display screen is adjusted according to the notification response.

[0008] In some embodiments, if the drawing surface component detects the adjustment notification, the drawing surface component is controlled to generate a notification response corresponding to the adjustment notification, including:

[0009] If the drawing surface component detects the adjustment notification, it is determined whether the drawing surface component is in a refresh state.

[0010] According to the refresh state of the drawing surface component, the drawing surface component is controlled to generate a notification response corresponding to the adjustment notification.

[0011] In some embodiments, the controlling, according to the refresh state of the drawing surface component, the drawing surface component to generate a notification response corresponding to the adjustment notification comprises:

[0012] If the drawing surface component is in a refresh operation, the drawing surface component is controlled to generate a notification response corresponding to the adjustment notification after the refresh operation is completed; and / or,

[0013] If the drawing surface component is not in the refresh operation, the drawing surface component is controlled to generate a notification response corresponding to the adjustment notification.

[0014] In some embodiments, the controlling, according to the refresh state of the drawing surface component, the drawing surface component to generate a notification response corresponding to the adjustment notification comprises:

[0015] If the drawing surface component is in a refresh operation, the page type of an application page currently synthesized by the drawing surface component is determined;

[0016] If the page type is a first type, the drawing surface component is controlled to generate a notification response corresponding to the adjustment notification;

[0017] If the page type is a second type, the drawing surface component is controlled to generate a notification response corresponding to the adjustment notification after a preset time; wherein the second type is different from the first type.

[0018] In some embodiments, the method comprises:

[0019] A configuration frame rate of an application program with a display requirement is obtained, and it is determined whether the configuration frame rate is consistent with a refresh rate of the display screen;

[0020] In response to the configuration frame rate being inconsistent with the refresh rate of the display screen, the adjustment instruction is generated.

[0021] In some embodiments, the adjusting, according to the notification response, the refresh rate of the display screen comprises:

[0022] According to the notification response, the refresh rate of the display screen is adjusted to be equal to the configuration frame rate.

[0023] In some embodiments, the method comprises:

[0024] If the notification response generated by the drawing surface component is detected, calibration instructions are sent to the synchronization signal management component according to the notification response, wherein the calibration instructions are used to calibrate the generation frequency of the synchronization signal, and the synchronization signal is used to synchronize the refresh operation of the drawing surface component and the refresh operation of the display screen.

[0025] According to a second aspect of the embodiments of the present disclosure, a display screen refresh rate adjustment device is provided, which comprises:

[0026] The first processing module is configured to determine whether the drawing surface component detects an adjustment notification generated based on the adjustment instruction for adjusting the refresh rate of the display screen after detecting the adjustment instruction.

[0027] The second processing module is configured to control the drawing surface component to generate a notification response corresponding to the adjustment notification after the drawing surface component detects the adjustment notification, wherein the notification response is used to indicate that the drawing surface component is in an adjustable frame rate state.

[0028] The adjustment module is configured to adjust the refresh rate of the display screen according to the notification response after the display screen detects the notification response.

[0029] In some embodiments, the second processing module is configured to:

[0030] If the drawing surface component detects the adjustment notification, the refresh state of the drawing surface component is determined.

[0031] According to the refresh state of the drawing surface component, the drawing surface component is controlled to generate a notification response corresponding to the adjustment notification.

[0032] In some embodiments, the second processing module is configured to:

[0033] If the drawing surface component is in a refresh operation, the drawing surface component is controlled to generate a notification response corresponding to the adjustment notification after the refresh operation is completed; and / or,

[0034] If the drawing surface component is not in the refresh operation, the drawing surface component is controlled to generate a notification response corresponding to the adjustment notification.

[0035] In some embodiments, the second processing module is configured to:

[0036] If the drawing surface component is in a refresh operation, determine a page type of an application page currently synthesized by the drawing surface component;

[0037] If the page type is a first type, control the drawing surface component to generate a notification response corresponding to the adjustment notification;

[0038] If the page type is a second type, control the drawing surface component to generate the notification response corresponding to the adjustment notification after a preset time; the second type is different from the first type.

[0039] In some embodiments, the apparatus comprises:

[0040] The third processing module is configured to acquire a configuration frame rate of an application program having a display requirement, and determine whether the configuration frame rate is consistent with a refresh rate of the display screen.

[0041] The fourth processing module is configured to generate the adjustment instruction in response to the configuration frame rate being inconsistent with the refresh rate of the display screen.

[0042] In some embodiments, the adjustment module is configured to:

[0043] adjust the refresh rate of the display screen to be equal to the configuration frame rate according to the notification response.

[0044] In some embodiments, the apparatus comprises:

[0045] The fifth processing module is configured to send a calibration instruction to a synchronization signal management component according to the notification response after detecting the notification response generated by the drawing surface component; the calibration instruction is configured to calibrate a generation frequency of a synchronization signal; the synchronization signal is configured to synchronize a refresh operation of the drawing surface component and a refresh operation of the display screen.

[0046] According to a third aspect of the embodiments of the present disclosure, a terminal is provided, which comprises a processor, a memory, and an executable program stored in the memory and capable of being run by the processor, and the processor runs the executable program to perform the steps of the display screen refresh rate adjustment method according to the first aspect.

[0047] According to a fourth aspect of the embodiments of the present disclosure, a storage medium is provided, which stores an executable program, and the executable program is executed by a processor to implement the steps of the display screen refresh rate adjustment method according to the first aspect.

[0048] The display screen refresh rate adjustment method, device, terminal and storage medium disclosed by the embodiments of the present disclosure can send an adjustment notification to a drawing surface component before adjusting the refresh rate of the display screen. If the drawing surface component generates a notification response based on the adjustment notification, the display screen adjusts the refresh rate according to the notification response after detecting the notification response. In this way, the display screen refresh operation and the drawing surface component refresh operation can be handshake coordinated through the adjustment notification and the notification response before the refresh rate of the display screen is adjusted, that is, the handshake coordination of the display screen refresh rate adjustment and the drawing surface component frame rate adjustment is realized. In this way, the display screen can be immediately adjusted in the refresh rate after the adjustment instruction is detected, but at this time, the drawing surface component cannot be adjusted in the frame rate in time, and the display problem caused by the asynchronization of the display screen refresh operation and the drawing surface component refresh operation is avoided. In this way, the drawing surface component is not forced to adjust the frame rate when the frame rate cannot be adjusted, the hysteresis problem of the drawing surface component frame rate adjustment is improved, the display screen refresh rate jitter problem caused by the hysteresis of the drawing surface component frame rate adjustment is improved, the smoothness of the drawing surface component refresh operation before and after the frame rate adjustment is improved, and the smoothness of the display screen refresh operation before and after the refresh rate adjustment is improved.

[0049] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF DRAWINGS

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

[0051] Figure 1 FIG. 1 is a flow diagram of a display screen refresh rate adjustment method according to an example embodiment;

[0052] Figure 2 FIG. 2 is another flow diagram of a display screen refresh rate adjustment method according to an example embodiment;

[0053] Figure 3 FIG. 3 is a third flow diagram of a display screen refresh rate adjustment method according to an example embodiment;

[0054] Figure 4 FIG. 4 is a fourth flow diagram of a display screen refresh rate adjustment method according to an example embodiment;

[0055] Figure 5is a structural schematic diagram of a display screen refresh rate adjustment device according to an example embodiment;

[0056] Figure 6 is a structural block diagram of a display screen refresh rate adjustment device according to an example embodiment. DETAILED DESCRIPTION

[0057] The example embodiments will be described in detail herein with reference to the attached drawings. In the following description, unless otherwise indicated, like numbers in the attached drawings refer to the same or similar elements. The following description of example embodiments is not intended to represent all embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0058] The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the present disclosure. As used in the present disclosure and the appended claims, the singular forms "a," "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.

[0059] It will be understood that, although the terms first, second, third, etc. can be used herein to describe various information, these terms are not intended to denote a temporal or chronological order. Rather, these terms are used only to distinguish different sets of information from one another. For example, a first information can be termed a second information, and similarly, a second information can also be termed a first information, without departing from the scope of the present disclosure. As used herein, the word "if' can be construed to mean "when" or "in response to determining" or "in response to a determination" depending on the context.

[0060] Figure 1 is a flowchart of a display screen refresh rate adjustment method according to an example embodiment, as shown in Figure 1 the method comprises:

[0061] Step S110, when detecting an adjustment instruction for adjusting the refresh rate of the display screen, determining whether a drawing surface component detects an adjustment notification generated based on the adjustment instruction;

[0062] Step S120, if the drawing surface component detects the adjustment notification, controlling the drawing surface component to generate a notification response corresponding to the adjustment notification;

[0063] Step S130: If the notification response is detected on the display screen, the refresh rate of the display screen is adjusted according to the notification response.

[0064] In this embodiment, the terminal includes an application program, a synchronization signal management component, a drawing surface component, and a display screen.

[0065] In step S110, after detecting the adjustment command, and before adjusting the display refresh rate, the display generates an adjustment notification and sends it to the drawing surface component. This notification informs the drawing surface component that it will adjust the refresh rate. Generally, multiple operating scenarios exist during terminal operation, and different scenarios may require different display refresh rates. For example, when switching from a currently running game application to a reading application, the display refresh rate needs to be reduced to lower power consumption. Conversely, when switching from a currently running reading application to a game application, the display refresh rate needs to be increased to ensure smooth display.

[0066] The refresh rate is the frame rate at which the terminal's display refreshes the application pages; that is, the number of application pages displayed per second. The unit is usually Hz.

[0067] Taking a terminal with an Android system as an example, the process of displaying an application page on the terminal, from generation to display, roughly includes:

[0068] Step S111, draw the application page (also known as an image); for example: Figure 2 As shown, to display a complete application page, it is generally necessary to draw two parts: the status bar content and the application's own design content. After the application has finished drawing the application page, it sends a composition request to the drawing surface component (also known as Surfaceflinger).

[0069] Step S112: Composite application page; After receiving the composite request, the drawing surface component begins to composite multiple parts of the content into an application page to be displayed.

[0070] Step S113: Display the application page; The display screen (also known as Display) is used to display the application page to be displayed.

[0071] After each frame of application page is brushed, the display screen needs to send a synchronization signal (also referred to as Vsync) to the drawing surface component through the synchronization signal management component (also referred to as HWComposer) to inform the drawing surface component to synthesize the next frame of application page, so as to ensure the synchronization between the drawing surface component and the display screen, realize the drawing surface component synthesizing a frame of application page, and the display screen displaying a frame of application page. In an ideal state, the refresh rate of the display screen is equal to the frame rate of the drawing surface component.

[0072] The frame rate refers to the synthesis frame rate, that is, the number of application pages synthesized by the drawing surface component per second. For example, 60 frames per second means that at most 60 pictures are synthesized per second, and each picture is about 16 ms.

[0073] Therefore, whether the display screen is smooth is related to not only the refresh rate of the display screen but also the frame rate of the drawing surface component, and there is a time difference between the adjustment of the refresh rate and the adjustment of the frame rate. In the embodiment of the present disclosure, after the adjustment instruction of the refresh rate of the display screen is detected, the display screen sends an adjustment notification to the drawing surface component, the drawing surface component can timely adjust the frame rate, and the problem of the refresh rate jitter of the display screen caused by the lag of the frame rate adjustment of the drawing surface component can be effectively improved.

[0074] In step S120, after the drawing surface component receives the adjustment notification, a notification response is generated based on the adjustment notification, and the notification response is returned to the display screen. The notification response is used to indicate that the drawing surface component is in a state in which the frame rate can be adjusted, that is, through the notification response, the display screen can know that the current drawing surface component has met the condition of adjusting the frame rate and is in a state in which the frame rate can be adjusted. Through the adjustment notification and the notification response, the handshake between the drawing surface component and the display screen is realized, a suitable opportunity for adjusting the refresh rate is provided, and the smoothness of the display is beneficially ensured.

[0075] In actual application, the drawing surface component generates a notification response corresponding to the adjustment notification, and sends the notification response to the display screen, and also triggers the adjustment of the frequency of generating the synchronization signal. For example, the drawing surface component generates a notification response corresponding to the adjustment notification, and sends the notification response to the display screen, and also sends a calibration instruction for calibrating the frequency of generating the synchronization signal to the synchronization signal management component. The frequency of generating the synchronization signal is the number of synchronization signals generated per second.

[0076] In step S130, after the drawing surface component returns the notification response to the display screen, the drawing surface component initiates an action of adjusting the frame rate of the drawing surface component, so that the adjusted refresh operation of the drawing surface component can be synchronized with the adjusted refresh operation of the display screen more quickly.

[0077] The refresh operation of the display screen refers to an operation of displaying an application page by the display screen, and one refresh operation of the display screen means that the display screen displays one frame of the application page. The refresh operation of the drawing surface component refers to an operation of synthesizing the application page by the drawing surface component, and one refresh operation of the drawing surface component means that the drawing surface component synthesizes one frame of the application page.

[0078] Generally, the drawing surface component performs one refresh operation after the display screen performs one refresh operation, that is, the refresh operation of the drawing surface component is synchronized with the refresh operation of the display screen. By adjusting the refresh rate of the display screen to be equal to the frame rate of the drawing surface component, the refresh operation of the drawing surface component can be synchronized with the refresh operation of the display screen.

[0079] If the drawing surface component returns the notification response based on the adjustment notification to the display screen, it indicates that the drawing surface component can perform the adjustment of the frame rate matched with the refresh rate. At this time, the adjustment of the frame rate of the drawing surface component is performed, and the adjustment of the refresh rate of the display screen is also performed, so as to ensure that the adjusted refresh rate of the display screen is equal to the adjusted frame rate of the drawing surface component.

[0080] In the embodiments of the present disclosure, by notifying the drawing surface component before adjusting the refresh rate, the handshake coordination of the refresh operation of the display screen and the refresh operation of the drawing surface component is realized, so that the drawing surface component can be adjusted in time according to the adjustment of the refresh rate of the display screen. The display problem caused by the asynchronization of the refresh operation of the display screen and the refresh operation of the drawing surface component due to the failure of the drawing surface component to adjust the frame rate in time after detecting the adjustment instruction is reduced. The hysteresis problem of the frame rate adjustment of the drawing surface component and the refresh rate jitter problem of the display screen caused by the hysteresis of the frame rate adjustment of the drawing surface component are improved. The smoothness of the refresh operation of the drawing surface component before and after the frame rate adjustment and the smoothness of the refresh operation of the display screen before and after the refresh rate adjustment are improved.

[0081] Before adjusting the refresh rate of the display screen, if the drawing surface component is not notified, in addition to the frame rate lag problem of the drawing surface component, the display will not be smooth due to the adjustment of the forcedness. For example, if the refresh rate of the display screen is adjusted, but at this time the drawing surface component is still performing application page synthesis operation, it will cause the application page displayed on the display screen to transition poorly, play not smoothly, and appear to be stuck. Therefore, the technical solution of the embodiment of the present disclosure coordinates the handshake of the display screen refresh operation and the drawing surface component refresh operation, and also reduces the adjustment forcedness of the display screen refresh rate.

[0082] In other optional embodiments, if the drawing surface component detects the adjustment notification, the drawing surface component is controlled to generate a notification response corresponding to the adjustment notification, including:

[0083] If the drawing surface component detects the adjustment notification, the refresh state of the drawing surface component is determined;

[0084] According to the refresh state of the drawing surface component, the drawing surface component is controlled to generate a notification response corresponding to the adjustment notification.

[0085] The refresh state includes two states of being in a refresh operation and not being in a refresh operation. Among them, being in a refresh operation includes being in a first type of refresh operation that can be completed faster, and being in a second type of refresh operation that is slower to complete. Generally, the first type of refresh operation is a refresh operation for a relatively static application page, which can be completed faster. The second type of refresh operation is a refresh operation for a relatively dynamic application page, which is slower to complete than the first type of refresh operation. For example, the refresh operation for a static application page can be determined as the first type of refresh operation, and the refresh operation for a dynamic application page can be determined as the second type of refresh operation; or the refresh operation whose refresh time required for one refresh operation of the application page is less than a preset time length is determined as the first type of refresh operation, and the refresh operation whose refresh time required for one refresh operation of the application page is greater than or equal to the preset time length is determined as the second type of refresh operation, wherein the size of the preset time length is not limited, and the size of the preset time length can be set according to specific needs.

[0086] In other optional embodiments, according to the refresh state of the drawing surface component, the drawing surface component is controlled to generate a notification response corresponding to the adjustment notification, including:

[0087] if the drawing surface component is in the refreshing operation, after the refreshing operation is completed, the drawing surface component is controlled to generate a notification response corresponding to the adjustment notification; and / or,

[0088] if the drawing surface component is not in the refreshing operation, the drawing surface component is controlled to generate a notification response corresponding to the adjustment notification.

[0089] In actual application, the drawing surface component generates the notification response only after the current refreshing operation of the drawing surface component is completed, i.e. the current refreshing operation of the drawing surface component is not interrupted, thereby effectively ensuring the smoothness of the picture switching of the display screen. That is, after the drawing surface component receives the adjustment notification, the drawing surface component determines whether the current refreshing operation is in progress. If the current refreshing operation is in progress, the drawing surface component generates the notification response corresponding to the adjustment notification after the current refreshing operation is completed. If the current refreshing operation is not in progress, the drawing surface component directly generates the notification response corresponding to the adjustment notification.

[0090] In other optional embodiments, the controlling of the drawing surface component to generate the notification response corresponding to the adjustment notification according to the refreshing state of the drawing surface component comprises:

[0091] if the drawing surface component is in the refreshing operation, determining the page type of the application page currently synthesized by the drawing surface component;

[0092] if the page type is the first type, the drawing surface component is controlled to generate the notification response;

[0093] if the page type is the second type, after a preset time, the drawing surface component is controlled to generate the notification response corresponding to the adjustment notification; wherein the second type is different from the first type.

[0094] In some embodiments, if the drawing surface component is not in the refreshing operation, the drawing surface component is controlled to generate the notification response corresponding to the adjustment notification.

[0095] In some embodiments, if the drawing surface component is not in the refreshing operation, the drawing surface component is controlled to generate the notification response corresponding to the adjustment notification.

[0096] In some embodiments, the first type of application page is an application page corresponding to a first type of application program, and the second type of application page is an application page corresponding to a second type of application program, where the second type of application program is different from the first type of application program. The first type of application program can be a reading type application program or a non-video chat application program. The second type of application program can be a game type, a video playing type, or a live broadcast type application program. In some embodiments, the second type of application program can be determined as a video playing type application program, and the first type of application program can be determined as a non-video playing type application program.

[0097] The second type of application page needs to generate the notification response again after the preset time, after the drawing surface component completes the synthesis of the second type of application page, or is about to complete the second type of application page. The preset time can be 0.5s, 1.0s, or 2s, etc.

[0098] In some embodiments, the first type of application page is a page with a refresh rate lower than a preset rate, and the second type of application page is a page with a refresh rate higher than the preset rate. The preset rate can be 60Hz, 90Hz, or 120Hz. The time for switching one frame of application page does not exceed 16ms, so that when the adjustment notification is received, the synthesized application page will be quickly displayed, and the drawing surface component can timely adjust the frame rate.

[0099] In the embodiments of the present disclosure, the drawing surface component determines the frame rate of the drawing surface component according to the type of the currently synthesized page, further improves the forced adjustment of the refresh rate on the drawing surface component, further reduces the occurrence of page lag during the display of the terminal, and makes the display transition smoother when the refresh rate is switched.

[0100] In other optional embodiments, the method comprises:

[0101] obtaining the configuration frame rate of the application program with display requirements, and determining whether the configuration frame rate is consistent with the refresh rate of the display screen;

[0102] In response to the configuration frame rate being inconsistent with the refresh rate of the display screen, the display screen generates the adjustment instruction; and in response to the configuration frame rate being consistent with the refresh rate of the display screen, the display screen continues to detect whether the configuration frame rate of the application program is consistent with the refresh rate of the display screen.

[0103] In actual applications, the application program with display requirements generally refers to the application program in the foreground. The configuration frame rate can be understood as the number of application pages drawn by the application per unit of time. The frame rate of the drawing surface component, the configuration frame rate, and the refresh rate need to be consistent.

[0104] The configuration frame rate is a frame rate configured according to the content playback fluency requirement of the application. It can be a default frame rate or a user-defined frame rate. Generally, the higher the content playback fluency of the application, the larger the configuration frame rate.

[0105] Different applications can have different configuration frame rates. Generally, when the configuration frame rate is consistent with the refresh rate of the display screen, the configuration frame rate is equal to the refresh rate of the display screen. When the configuration frame rate is greater than the refresh rate of the display screen or the configuration frame rate is less than the refresh rate of the display screen, it indicates that the configuration frame rate is inconsistent with the refresh rate of the display screen.

[0106] It can be understood that if the configuration frame rate is consistent with the refresh rate of the display screen, there is no need to adjust the refresh rate of the display screen, and there is no need to send an adjustment notification to the drawing surface component.

[0107] In other embodiments, the terminal automatically monitors its own refresh rate and checks the display resource and / or display effect. When it is considered that the refresh rate of the terminal can be adjusted to improve the display effect, the refresh rate of the display screen can be automatically adjusted within a certain range without a configuration frame rate.

[0108] In other optional embodiments, the method comprises:

[0109] According to the notification response, the refresh rate of the display screen is adjusted to be equal to the configuration frame rate.

[0110] According to the notification response, the refresh rate of the display screen is adjusted to be equal to the configuration frame rate.

[0111] The adjusted refresh rate of the display screen is equal to the configuration frame rate, and the frame rate of the drawing surface component is equal to the configuration frame rate.

[0112] It can be understood that adjusting the refresh rate of the display screen to be equal to the configuration frame rate ensures that the display effect of the display screen can adapt to different application requirements.

[0113] In other optional embodiments, the method comprises:

[0114] If the notification response generated by the drawing surface component is detected, a calibration instruction is sent to the synchronization signal management component according to the notification response. The calibration instruction is used to calibrate the generation frequency of the synchronization signal. The synchronization signal is used to synchronize the refresh operation of the drawing surface component and the refresh operation of the display screen.

[0115] In actual application, the drawing surface component returns a notification response to the display screen, indicating that the frame rate of the drawing surface component can be adjusted. Therefore, the drawing surface component sends a calibration instruction to the synchronization signal management component while sending the notification response to the display screen, and the synchronization signal management component adjusts the generation frequency of the synchronization signal through a calibration algorithm module (also referred to as vsync-sf, vsync-app). The generation frequency of the synchronization signal, the frame rate of the drawing surface component, and the refresh rate of the display screen are consistent with each other.

[0116] In this embodiment, the refresh rate is adjusted according to the configured frame rate, so that the adjusted refresh rate is consistent with the configured frame rate; and the generation frequency of the synchronization signal is adjusted according to the refresh rate, so that the generation frequency of the synchronization signal is consistent with the refresh rate. Finally, the configured frame rate, the refresh rate, and the generation frequency of the synchronization signal are consistent with each other. The synchronization between the application page synthesized by the drawing surface component and the application page displayed by the display screen is maintained while meeting the requirements of the application program.

[0117] As shown in FIG. 1, Figure 3 the method for adjusting the refresh rate of the display screen applied to the drawing surface component comprises the following steps.

[0118] In step S210, a notification of adjustment sent by the display screen before adjusting the refresh rate is received.

[0119] In step S220, it is determined that the frame rate of the drawing surface component can be adjusted based on the notification of adjustment.

[0120] In step S230, a notification response indicating confirmation of adjustment is returned to the display screen in response to the fact that the frame rate of the drawing surface component can be adjusted, and the notification response is used to trigger the display screen to adjust the refresh rate.

[0121] In step S210, the notification of adjustment has the functions of reminding and notifying the drawing surface component, so as to timely adjust the frame rate of the drawing surface component.

[0122] In step S220, the notification of adjustment is used to trigger detection of the current working state of the drawing surface component, and then it can be determined whether the frame rate of the drawing surface component can be adjusted.

[0123] In step S230, the technical solution of this embodiment can perform handshake coordination between the display refresh operation and the drawing surface component refresh operation before adjusting the display refresh rate. This reduces display problems caused by the drawing surface component's inability to adjust the frame rate in time when the refresh rate is adjusted immediately after detecting the adjustment command, resulting in asynchrony between the display refresh operation and the drawing surface component refresh operation. This reduces the mandatory nature of the display refresh rate adjustment process, improves the lag problem of the drawing surface component's frame rate adjustment, and alleviates the display refresh rate jitter problem caused by the lag in the drawing surface component's frame rate adjustment. It also improves the smoothness of the drawing surface component refresh operation before and after frame rate adjustment, as well as the fluidity of the display refresh operation before and after refresh rate adjustment.

[0124] In a specific example, such as Figure 4 As shown, the methods for adjusting the screen refresh rate generally include:

[0125] Step S301: The terminal detects an application switching operation;

[0126] Step S302: The terminal obtains the configuration frame rate of the application;

[0127] Step S303: The terminal determines whether the configured frame rate is less than the refresh rate of the display screen. If yes, proceed to step S305; otherwise, proceed to step S304.

[0128] Step S304: The terminal determines whether the configured frame rate is greater than the refresh rate of the display screen. If yes, proceed to step S305; if no, it indicates that the configured frame rate and refresh rate are equal, and there is no need to adjust the refresh rate. Continue to proceed to step S301.

[0129] Step S305: The terminal determines that the refresh rate of the display screen needs to be adjusted;

[0130] Step S306: Send an adjustment notification to the drawing surface component via the display screen;

[0131] Step S307: Based on the adjustment notification, the drawing surface component determines whether it is compositing an animation; if not, proceed to step S309; ​​if yes, proceed to step S308.

[0132] Step S308: The drawing surface component determines whether the animation composition is complete. If yes, proceed to step S309; ​​otherwise, repeat step S308.

[0133] Step S309: The drawing surface component returns a notification response to the display screen confirming the adjustment; the display screen adjusts the refresh rate based on the notification response;

[0134] Step S310, the drawing surface component sends a calibration instruction to the synchronization signal management component.

[0135] Step S311, the synchronization signal management component receives the calibration instruction and calibrates the generation frequency of the synchronization signal, which is used to synchronize the application page to be displayed synthesized by the drawing surface component and the display application page of the display screen.

[0136] In this example, the handshake communication mode is used to improve the display screen refresh rate jitter problem caused by the change of the refresh rate, so that the display screen refresh operation before and after the refresh rate adjustment is smoother, the lag is reduced, the terminal performance is improved, and the user experience is improved.

[0137] As shown in Figure 5 The display screen refresh rate adjustment device 400 provided by the embodiment of the present disclosure comprises:

[0138] The first processing module 401 is configured to determine whether the drawing surface component detects an adjustment notification generated based on the adjustment instruction after detecting the adjustment instruction for adjusting the refresh rate of the display screen.

[0139] The second processing module 402 is configured to control the drawing surface component to generate a notification response corresponding to the adjustment notification after the drawing surface component detects the adjustment notification, wherein the notification response is used to indicate that the drawing surface component is in an adjustable frame rate state.

[0140] The adjustment module 403 is configured to adjust the refresh rate of the display screen according to the notification response after the display screen detects the notification response.

[0141] In other optional embodiments, the second processing module is configured to:

[0142] If the drawing surface component detects the adjustment notification, the refresh state of the drawing surface component is determined.

[0143] According to the refresh state of the drawing surface component, the drawing surface component generates a notification response corresponding to the adjustment notification.

[0144] In other optional embodiments, the second processing module is configured to:

[0145] If the drawing surface component is in a refresh operation, the drawing surface component generates a notification response corresponding to the adjustment notification after the refresh operation is completed; and / or,

[0146] If the drawing surface component is not in the refresh operation, the drawing surface component is controlled to generate a notification response corresponding to the adjustment notification.

[0147] In other optional embodiments, the second processing module is configured to:

[0148] If the drawing surface component is in the refresh operation, the page type of an application page currently synthesized by the drawing surface component is determined.

[0149] If the page type is a first type, the drawing surface component is controlled to generate a notification response corresponding to the adjustment notification.

[0150] If the page type is a second type, the drawing surface component is controlled to generate a notification response corresponding to the adjustment notification after a preset time, wherein the second type is different from the first type.

[0151] In other optional embodiments, the apparatus comprises:

[0152] The third processing module is configured to acquire a configuration frame rate of an application program having a display requirement, and determine whether the configuration frame rate is consistent with a refresh rate of the display screen.

[0153] The fourth processing module is configured to generate the adjustment instruction in response to the configuration frame rate being inconsistent with the refresh rate of the display screen.

[0154] In other optional embodiments, the adjustment module is configured to:

[0155] The refresh rate of the display screen is adjusted to be equal to the configuration frame rate according to the notification response.

[0156] In other optional embodiments, the apparatus comprises:

[0157] The fifth processing module is configured to send a calibration instruction to a synchronization signal management component according to the notification response after detecting the notification response generated by the drawing surface component, wherein the calibration instruction is used to calibrate a generation frequency of a synchronization signal, and the synchronization signal is used to synchronize a refresh operation of the drawing surface component and a refresh operation of the display screen.

[0158] The present disclosure further provides a terminal comprising a processor, a memory, and an executable program stored in the memory and capable of being run by the processor, wherein the processor runs the executable program to perform the steps of the method for adjusting the refresh rate of the display screen according to any one of the above embodiments.

[0159] The display screen refresh rate adjustment method is also provided by a computer program product. The computer program product includes a computer readable storage medium having stored thereon computer readable program.

[0160] As to the apparatus in the above embodiments, the specific manners in which the respective modules perform operations have been described in detail in the embodiments of the method, and thus will not be described in detail here.

[0161] In exemplary embodiments, the first processing module, the second processing module, the adjusting module, the third processing module, the fourth processing module, the fifth processing module, and the like can be implemented by one or more Central Processing Units (CPUs), Graphics Processing Units (GPUs), baseband processors (BPs), Application-Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field-Programmable Gate Arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors (Microprocessors), or other electronic elements, for performing the above method.

[0162] Figure 6 is a block diagram of an apparatus 800 for display screen refresh rate adjustment according to an exemplary embodiment. For example, the apparatus 800 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.

[0163] Referring to Figure 6 , the apparatus 800 can include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.

[0164] The processing component 802 generally controls the overall operations of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 can include one or more processors 820 to execute instructions delivered from the memory 804 to complete all or part of the steps of the methods described above. In addition, the processing component 802 can include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0165] The memory 804 is configured to store various types of data to support the operations of the device 800. Examples of these data include instructions for any application or method operating on the device 800, contact data, phonebook data, messages, pictures, videos, and so on. The memory 804 can be implemented by any type of volatile or non-volatile storage devices or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable programmable read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.

[0166] The power component 806 provides power to the various components of the device 800. The power component 806 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.

[0167] The multimedia component 808 includes a screen providing an output interface between the device 800 and a user. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense a touch, a slide, and a gesture on the touch panel. The touch sensors can not only sense a boundary of a touching or sliding action, but also detect duration and pressure related to the touching or sliding action. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. The front camera and / or the rear camera can receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.

[0168] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC) that is configured to receive an external audio signal when the device 800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0169] The I / O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which can be a keypad, a click wheel, buttons, and the like. The buttons can include, but are not limited to, a home button, a volume button, a start button, and a lock button.

[0170] The sensor component 814 includes one or more sensors for providing status assessments of various aspects of the device 800. For example, the sensor component 814 can detect an open / closed position of the device 800, relative positioning of components, such as a display and a keypad of the device 800, a change of position of the device 800 or a component of the device 800, presence or absence of user contact with the device 800, changes in orientation or acceleration / deceleration

[0171] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can access a wireless network based on a corresponding communication standard, such as WiFi, 4G, or 5G, or a combination thereof. In an example embodiment, the communication component 816 receives broadcast signals or broadcast-related information from external broadcast management systems via a broadcast channel. In an example embodiment, the communication component 816 also includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) techniques, infrared data association (IrDA) techniques, ultra-wideband (UWB) techniques, Bluetooth (BT) techniques, and other techniques.

[0172] In an exemplary embodiment, the apparatus 800 can be implemented using one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronics units to perform the above methods.

[0173] In an exemplary embodiment, a non-transitory computer readable storage medium including instructions, such as the memory 804 including instructions, is also provided, which can be executed by the processor 820 of the apparatus 800 to complete the above methods. For example, the non-transitory computer readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disc, and an optical data storage device, etc.

[0174] Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. It is intended that the present disclosure cover any and all variations of the present disclosure including those variations that can be incorporated into the above detailed description and making use of known additives and known methodology that have been published in prior patents and publications. The specification and examples are to be considered exemplary only, with the true scope and spirit of the disclosure indicated by the following claims.

[0175] It is to be understood that the present disclosure is not limited to the precise construction described above and shown in the attached drawings, and that various modifications and changes can be made by those skilled in the art without departing from the scope of the present disclosure. The scope of the present disclosure is limited only by the claims that follow.

Claims

1. A method of adjusting refresh rate of a display screen, characterized in that, The method comprises the following steps: When detecting an adjustment instruction for adjusting the refresh rate of a display screen, it is determined whether a drawing surface component detects an adjustment notification generated by the display screen based on the adjustment instruction; If the drawing surface component detects the adjustment notification, the drawing surface component is controlled to generate a notification response corresponding to the adjustment notification, and after the drawing surface component returns the notification response to the display screen, the drawing surface component is controlled to start an action of adjusting the frame rate of the drawing surface component, wherein the notification response is used to indicate that the drawing surface component is in a state of being able to adjust the frame rate; After the display screen detects the notification response, the refresh rate of the display screen is adjusted according to the notification response.

2. The adjustment method of claim 1, wherein, If the drawing surface component detects the adjustment notification, the drawing surface component is controlled to generate a notification response corresponding to the adjustment notification, comprising: If the drawing surface component detects the adjustment notification, the refresh state of the drawing surface component is determined; According to the refresh state of the drawing surface component, the drawing surface component is controlled to generate a notification response corresponding to the adjustment notification.

3. The adjustment method of claim 2, wherein, According to the refresh state of the drawing surface component, the drawing surface component is controlled to generate a notification response corresponding to the adjustment notification, comprising: If the drawing surface component is in a refresh operation, the drawing surface component is controlled to generate a notification response corresponding to the adjustment notification after the refresh operation is completed; and / or, If the drawing surface component is not in the refresh operation, the drawing surface component is controlled to generate a notification response corresponding to the adjustment notification.

4. The adjustment method of claim 2, wherein, According to the refresh state of the drawing surface component, the drawing surface component is controlled to generate a notification response corresponding to the adjustment notification, comprising: If the drawing surface component is in a refresh operation, the page type of an application page currently synthesized by the drawing surface component is determined; If the page type is a first type, the drawing surface component is controlled to generate a notification response corresponding to the adjustment notification; If the page type is a second type, the drawing surface component is controlled to generate a notification response corresponding to the adjustment notification after a preset time; wherein the second type is different from the first type.

5. The adjustment method of claim 1, wherein The method comprises: Obtaining the configuration frame rate of an application program with display requirements, and determining whether the configuration frame rate is consistent with the refresh rate of the display screen; In response to the configuration frame rate being inconsistent with the refresh rate of the display screen, the adjustment instruction is generated.

6. The adjustment method of claim 5, wherein, According to the notification response, the refresh rate of the display screen is adjusted to be equal to the configuration frame rate. The method comprises:

7. The adjustment method according to any one of claims 1 to 6, characterized in that, ​ If the notification response generated by the drawing surface component is detected, calibration instructions are sent to a synchronization signal management component according to the notification response, wherein the calibration instructions are used to calibrate the generation frequency of a synchronization signal, and the synchronization signal is used to synchronize the refresh operation of the drawing surface component and the refresh operation of the display screen.

8. A device for adjusting the refresh rate of a display screen, characterized in that, The device comprises: A first processing module is configured to determine whether the drawing surface component detects an adjustment notification generated by the display screen based on an adjustment instruction for adjusting the refresh rate of the display screen after detecting the adjustment instruction. A second processing module is configured to control the drawing surface component to generate a notification response corresponding to the adjustment notification after the drawing surface component detects the adjustment notification, and control the drawing surface component to start an action for adjusting the frame rate of the drawing surface component after the drawing surface component returns the notification response to the display screen, wherein the notification response is used to indicate that the drawing surface component is in a state in which the frame rate can be adjusted. An adjustment module is configured to adjust the refresh rate of the display screen according to the notification response after the display screen detects the notification response.

9. The adjustment device of claim 8, wherein, The second processing module is configured to: If the drawing surface component detects the adjustment notification, determine the refresh state of the drawing surface component. According to the refresh state of the drawing surface component, control the drawing surface component to generate a notification response corresponding to the adjustment notification.

10. The adjustment device of claim 9, wherein The second processing module is configured to: If the drawing surface component is in a refresh operation, control the drawing surface component to generate a notification response corresponding to the adjustment notification after the refresh operation is completed; and / or If the drawing surface component is not in the refresh operation, control the drawing surface component to generate a notification response corresponding to the adjustment notification.

11. The adjustment device of claim 9, wherein The second processing module is configured to: If the drawing surface component is in a refresh operation, determine the page type of an application page currently synthesized by the drawing surface component. If the page type is a first type, control the drawing surface component to generate a notification response corresponding to the adjustment notification. If the page type is a second type, control the drawing surface component to generate a notification response corresponding to the adjustment notification after a preset time, wherein the second type is different from the first type, and the first type includes an application page with a refresh rate lower than a preset rate.

12. The adjustment device of claim 8, wherein, The device comprises: A third processing module is configured to obtain a configuration frame rate of an application program with a display requirement, and determine whether the configuration frame rate is consistent with the refresh rate of the display screen. A fourth processing module is configured to generate the adjustment instruction in response to the configuration frame rate being inconsistent with the refresh rate of the display screen.

13. The adjustment device according to any of claims 8-12, characterized in that The device comprises: A fifth processing module is configured to, after detecting the notification response generated by the drawing surface component, send a calibration instruction to a synchronization signal management component according to the notification response, wherein the calibration instruction is used to calibrate the generation frequency of a synchronization signal, and the synchronization signal is used to synchronize the refresh operation of the drawing surface component and the refresh operation of the display screen.

14. A terminal comprising a processor, a memory, and an executable program stored on the memory and capable of being executed by the processor, characterized in that, The processor executes the executable program to perform the steps of the display screen refresh rate adjustment method according to any one of claims 1 to 7.

15. A storage medium having stored thereon an executable program, characterized in that The executable program is executed by the processor to implement the steps of the display screen refresh rate adjustment method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method for adjusting the adaptive screen-refresh rate and device thereof

    US20180174550A1