Refresh rate adjustment method and apparatus, application, electronic device, and storage medium
By adjusting the base frame and inserted frame in electronic devices, the stuttering problem of high refresh rate devices when switching refresh rates is solved, enabling the addition of refresh rate levels in the same display mode, reducing power consumption and improving battery life.
Patent Information
- Application Number
- CN202310841008.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-10
- Publication Date
- 2026-01-02
- Estimated Expiration
- 2043-07-10
AI Technical Summary
Existing high refresh rate electronic devices are prone to stuttering when switching refresh rates, which cannot effectively reduce power consumption and cannot meet user needs, especially when the refresh rate is not divisible by the highest refresh rate.
By determining the base frame and the inserted frame, the refresh rate of the screen module is adjusted to switch to any non-integer multiple between 1 and the highest refresh rate, ensuring that the refresh rates of the screen module and the application are synchronized, and maintaining the consistency and smoothness of the displayed content.
It achieves reduced screen and overall device power consumption and increased battery life without affecting visual smoothness, and without increasing hardware costs.
Smart Images

Figure CN116778877B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of screen display, in particular to a refresh rate adjustment method and device, an application program, an electronic device and a storage medium. BACKGROUND
[0002] There are many high refresh rate (referring to the highest refresh rate of the screen exceeding 60Hz) electronic devices on the market, which are divided into two types: LTPO mobile phones supporting adaptive refresh rate and LTPS mobile phones not supporting adaptive refresh rate. The advantage of the former is that it can intelligently reduce the current refresh rate of the screen according to the current screen display content, so as to achieve the purpose of saving energy consumption without affecting the user experience. In mobile phones supporting adaptive refresh rate, the mobile phone can generally only be reduced to a multiple of the highest refresh rate, such as a mobile phone with a highest refresh rate of 120Hz, which can be reduced to 60Hz / 40Hz / 30Hz / 24Hz / 10Hz / 1Hz and the like. Because the above-mentioned gears can be evenly divided by 120. However, these gear distributions are sparse and cannot actually meet the user's use requirements. When switching gears, there may be a sense of lag, affecting the smoothness of the visual experience. For example, the 120Hz and 60Hz gear span is large, and if it is reduced to 60Hz, although the power consumption is reduced, it will bring obvious lag. If 120Hz is always maintained during sliding to ensure smoothness, the advantage of adaptive refresh rate cannot be brought into play. SUMMARY
[0003] In order to solve the above technical problems, the embodiments of the present application provide a refresh rate adjustment method, device, application program, electronic device and storage medium.
[0004] In a first aspect, the embodiments of the present application provide a refresh rate adjustment method, which comprises:
[0005] determining a basic frame according to the highest refresh rate of a screen module;
[0006] determining an insertion frame according to the basic frame and a first target refresh rate, the first target refresh rate being any refresh rate within 1 to the highest refresh rate, and the highest refresh rate not being an integer multiple of the first target refresh rate; the basic frame and the insertion frame correspond to each other one by one;
[0007] adjusting the refresh rate of the screen module to the first target refresh rate according to the basic frame and the insertion frame.
[0008] In an embodiment, the determining of the insertion frame according to the basic frame and the first target refresh rate comprises:
[0009] determining a display duration of a complete frame according to the first target refresh rate, the complete frame comprising a base frame and a corresponding inserted frame; obtaining a maintaining display duration of the inserted frame according to the display duration of the complete frame and a base display duration of the base frame, or,
[0010] obtaining a refresh rate difference between the highest refresh rate and the first target refresh rate, and determining the maintaining display duration of the inserted frame according to a base display duration of the base frame and the refresh rate difference;
[0011] wherein the inserted frame has the same display content as the corresponding base frame.
[0012] In an embodiment, the method further comprises:
[0013] obtaining a preset refresh rate of a currently running application in a display interface;
[0014] adjusting the refresh rate of the currently running application to the first target refresh rate in a case where the preset refresh rate is different from the first target refresh rate;
[0015] adjusting the refresh rate of the screen module to the preset refresh rate of the currently running application in a case where the preset refresh rate is different from the first target refresh rate.
[0016] In an embodiment, the adjusting of the refresh rate of the screen module to the first target refresh rate according to the base frame and the inserted frame comprises:
[0017] maintaining the pixel charging state in the base display duration and the pixel charging state in the maintaining display duration in the display duration of each complete frame to be the same; or,
[0018] maintaining the pixel charging state in the maintaining display duration of the next complete frame and the pixel charging state in the base display duration of the previous complete frame in two adjacent complete frames to be the same.
[0019] In an embodiment, the adjusting of the refresh rate of the screen module to the first target refresh rate according to the base frame and the inserted frame comprises:
[0020] maintaining the pixel charging state in the base display duration and the pixel charging state in the maintaining display duration in the display duration of each complete frame to be the same; or,
[0021] maintaining the pixel charging state in the maintaining display duration of the next complete frame and the pixel charging state in the base display duration of the previous complete frame in two adjacent complete frames to be the same.
[0022] In an embodiment, the method further comprises:
[0023] determining a page sliding speed according to the sliding operation;
[0024] obtaining a third target refresh rate matching the page sliding speed from a refresh rate range from 1 to the highest refresh rate of the screen module.
[0025] In a second aspect, an embodiment of the present application provides a refresh rate adjustment device, and the device comprises:
[0026] a first determination module configured to determine a basic frame according to a highest refresh rate of a screen module;
[0027] a second determination module configured to determine an inserted frame according to the basic frame and a first target refresh rate, the first target refresh rate being any refresh rate within a range from 1 to the highest refresh rate, and the highest refresh rate not being an integer multiple of the first target refresh rate; the basic frame and the inserted frame corresponding to each other one by one;
[0028] an adjustment module configured to adjust the refresh rate of the screen module to the first target refresh rate according to the basic frame and the inserted frame.
[0029] In a third aspect, an embodiment of the present application provides an application program, and the application program comprises:
[0030] an obtaining module configured to obtain a current refresh rate of a screen module, wherein the current refresh rate of the screen module is obtained according to the refresh rate adjustment method of the first aspect;
[0031] a processing module configured to adjust display content according to the current refresh rate of the screen module.
[0032] In a fourth aspect, an embodiment of the present application provides an electronic device, and the electronic device comprises a memory, a processor and a screen module, the memory stores a computer program, and the computer program executes the refresh rate adjustment method of the first aspect when running on the processor.
[0033] In an embodiment, during the refresh rate adjustment of the screen module, an application program running is unchanged, and a display mode of the screen module is unchanged.
[0034] In a fifth aspect, an embodiment of the present application provides a computer readable storage medium, and the computer readable storage medium stores a computer program, and the computer program executes the refresh rate adjustment method provided by the first aspect when running on a processor.
[0035] The refresh rate adjustment method, device, application program, electronic device and storage medium provided by the present application determine a basic frame according to the maximum refresh rate of the screen module; determine an inserted frame according to the basic frame and a first target refresh rate, the first target refresh rate is any refresh rate within 1 to the maximum refresh rate, and the maximum refresh rate is not an integer multiple of the first target refresh rate; the basic frame and the inserted frame correspond to each other; and the refresh rate of the screen module is adjusted to the first target refresh rate according to the basic frame and the inserted frame, so that switching to any refresh rate within the maximum refresh rate of the screen can be realized. BRIEF DESCRIPTION OF DRAWINGS
[0036] In order to more clearly illustrate the technical solutions of the present application, the following will briefly introduce the drawings needed to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and therefore should not be regarded as limiting the scope of protection of the present application. In the various drawings, similar components are denoted by similar reference numerals.
[0037] Figure 1 A flowchart of a refresh rate adjustment method provided by an embodiment of the present application is shown;
[0038] Figure 2 A schematic diagram of a scanning frame and a maintaining frame of the prior art is shown;
[0039] Figure 3 A schematic diagram of a complete frame provided by an embodiment of the present application is shown;
[0040] Figure 4 Another flowchart of a refresh rate adjustment method provided by an embodiment of the present application is shown;
[0041] Figure 5 A structural diagram of a refresh rate adjustment device provided by an embodiment of the present application is shown.
[0042] Icon: 500-refresh rate adjustment device, 501-first determination module, 502-second determination module, 503-adjustment module. DETAILED DESCRIPTION
[0043] The technical solutions in the embodiments of the present application will be described clearly and completely in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, not all the embodiments.
[0044] The components of the application embodiments described and illustrated herein can be arranged and designed in a wide variety of different configurations. Therefore, the following detailed description of the application, read in connection with the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of
[0045] Hereinafter, the terms "include", "have", and their conjugates, used in the various embodiments of the present application, merely indicate the presence of the features, numbers, steps, operations, elements, components, or combinations thereof, and do not exclude the possibilities of the presence or addition of one or more other features, numbers, steps, operations, elements, components, or combinations thereof.
[0046] In addition, the terms "first", "second", "third", and the like are used only to distinguish descriptions, and are not to be understood as indicating or implying relative importance.
[0047] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the various embodiments of the present application belong. The terms (such as terms defined in commonly used dictionaries) should be interpreted as having a meaning that is identical to the contextual meaning in the relevant art and should not be interpreted in an idealized or overly formal sense, unless clearly defined in the various embodiments of the present application.
[0048] The embodiments of the present application provide a refresh rate adjustment method.
[0049] Referring to Figure 1 The refresh rate adjustment method includes steps S101-S103, and the method is applied to an electronic device including a screen module. The highest refresh rate of the screen can be 120Hz, 240Hz, etc., which is not limited here. The electronic device can be a mobile phone, a notebook computer, a tablet computer, etc., which is not limited here. The steps are described below.
[0050] Step S101, determining a basic frame according to the highest refresh rate of the screen module.
[0051] In the present embodiment, the screen module can only have one display mode, or can have multiple display modes. In different display modes, different display configuration parameters are corresponded. For the screen module, it can switch from one display mode to another display mode. The switching of the display mode will involve the adjustment of the display configuration parameters, which will cause the display effects such as color and brightness to be different in different display modes.
[0052] It should be noted that different display modes can correspond to different maximum refresh rates, which can be determined by the factory settings of the screen module. Dividing 1 second by the maximum refresh rate can obtain the basic display duration of the basic frame. For example, the maximum refresh rate of the first display mode is 120Hz, and the basic display duration corresponding to the basic frame is 1 / 120 seconds, i.e. 8.3 milliseconds. The maximum refresh rate of the second display mode is 240Hz, and the basic display duration corresponding to the basic frame is 1 / 240 seconds, i.e. 4.2 milliseconds.
[0053] In step S102, an insertion frame is determined according to the basic frame and the first target refresh rate.
[0054] In this embodiment, the first target refresh rate is any refresh rate within 1 to the maximum refresh rate, and the maximum refresh rate is not an integer multiple of the first target refresh rate. The basic frame and the insertion frame correspond one by one.
[0055] For example, if the maximum refresh rate is 120Hz, the first target refresh rate is any refresh rate within 1-120Hz, and 120Hz cannot be divided by the first target refresh rate, for example, the first target refresh rate is 7Hz, 9Hz, 11Hz, 23Hz, 33Hz, 63Hz, etc.
[0056] In this embodiment, the maintenance display duration of the insertion frame and the display content of the insertion frame need to be determined according to the basic frame and the first target refresh rate.
[0057] In this embodiment, step S102 includes:
[0058] According to the display duration of the complete frame, the maintenance display duration of the insertion frame is obtained according to the display duration of the complete frame and the basic display duration of the basic frame, or,
[0059] The refresh rate difference between the maximum refresh rate and the first target refresh rate is obtained, and the maintenance display duration of the insertion frame is determined according to the basic display duration of the basic frame and the refresh rate difference;
[0060] Wherein, the display content of the insertion frame is the same as that of the corresponding basic frame.
[0061] As an example, the display duration of a complete frame can be determined by dividing 1 second by the first target refresh rate, and the basic display duration of the base frame can be determined by dividing 1 second by the highest refresh rate. The difference between the display duration of the complete frame and the basic display duration of the base frame can be determined as the duration of the inserted frame. For example, if the highest refresh rate is 120Hz and the first target refresh rate is 90Hz, 1 second divided by 120Hz equals 8.3 milliseconds, and the quotient of 1 second divided by 90Hz is 11.1 milliseconds. 11.1 - 8.3 = 2.8 milliseconds. 11.1 milliseconds is the display duration of the complete frame, 8.3 milliseconds is the basic display duration of the base frame, and 2.8 milliseconds is the duration of the inserted frame.
[0062] In this embodiment, determining the maintenance display duration of the inserted frame based on the base display duration of the base frame and the refresh rate difference includes:
[0063] The duration of the inserted frame's display is determined based on the base frame's display duration, the refresh rate difference, and the first target refresh rate.
[0064] As an example, the product of the base display duration of the base frame and the difference in refresh rate can be calculated, and the product can be divided by the first target refresh rate to obtain the sustained display duration of the inserted frame.
[0065] For example, if the highest refresh rate is 120Hz and the first target refresh rate is 90Hz, the refresh rate difference between the two is 30Hz, and the duration of the base frame is 8.3 milliseconds. Therefore, 30 × 8.3 ÷ 90 = 2.8 milliseconds. As another example, if the highest refresh rate is 120Hz and the first target refresh rate is 63Hz, the refresh rate difference between the two is 57Hz, and the duration of the base frame is 8.3 milliseconds. Therefore, 57 × 8.3 ÷ 63 = 7.6 milliseconds.
[0066] join Figure 2 For electronic devices with a maximum refresh rate of 120Hz, each frame refreshes 120 times per second, and the dwell time of each frame is 1 second / 120 = 8.3 milliseconds. Each 8.3-millisecond time frame is considered a scan frame. Traditional solutions adjust the refresh rate by directly changing scan frames to hold frames, achieving a refresh rate divisible by 120Hz. For scan frames, the panel data lines are in a pixel charging state during the current time period. For hold frames, the panel data lines are not charging during the current time period; the display content is maintained by the charge of the CST capacitors inside the panel. Figure 2As shown, if the highest refresh rate is 120Hz, using the traditional scheme, the refresh rates of 1Hz, 24Hz, 30Hz, 60Hz, etc. can be adjusted. If adjusted to 1Hz, the number of maintenance frames corresponding to one scanning frame is 119. If adjusted to 60Hz, the number of maintenance frames corresponding to one scanning frame is 1. If adjusted to 30Hz, the number of maintenance frames corresponding to one scanning frame is 3. If adjusted to 24Hz, the number of maintenance frames corresponding to one scanning frame is 4. However, the traditional scheme cannot adjust the refresh rate that cannot be evenly divided by 120Hz, for example, the traditional scheme cannot adjust the refresh rate of 63Hz or 90Hz.
[0067] In addition, if the screen module of the electronic device is to implement 80 / 90Hz refresh rate adjustment according to the foregoing traditional scheme, the screen module supporting 240Hz refresh rate is directly purchased, and then 120 / 80 / 60 / 40 gears can be used for rendering. Although similar 80Hz refresh rate support can be achieved on the surface, the hardware cost is significantly increased.
[0068] In addition, in order to achieve a 90Hz refresh effect on a screen with a highest refresh rate of 120Hz, two sets of display parameters of a scanning frame of 8.3 milliseconds (120Hz) and a scanning frame of 11.1 milliseconds (90Hz) can be directly issued. However, due to the difference between different display parameters in terms of color, brightness, etc., when switching between 120Hz and 90Hz, the overall color consistency of the screen cannot be guaranteed, and significant color, color temperature and brightness changes can be observed. Therefore, the screen using this scheme cannot usually achieve automatic switching of 120 / 90Hz refresh rate without user awareness. That is, the traditional scheme switches from a display mode with a refresh rate of 120Hz to another display mode with a refresh rate of 90Hz. For example, using the method of directly setting screen effect parameters, the entire screen may be black for several seconds when switching from 120Hz to 90Hz, and the white level of the screen before and after the switching of the refresh rate may be different, resulting in color difference.
[0069] In order to adjust the refresh rate that cannot be evenly divided by the highest refresh rate (for example, adjust from the highest refresh rate of 120Hz to 90Hz), after determining the maintenance display duration of the inserted frame, the display content of the inserted frame needs to be determined, which is related to the display content of the base frame.
[0070] If the inserted frame appears before the base frame in the display duration of one complete frame, the display content of the inserted frame of the next complete frame of the adjacent two complete frames is the same as that of the base frame of the previous complete frame, that is, the pixel charging state of the inserted frame of the next complete frame of the adjacent two complete frames is the same as that of the base frame of the previous complete frame, so as to realize the same display content and achieve the purpose of adjusting to the first target refresh rate.
[0071] If the base frame appears first and the insertion frame appears later in a complete frame, the display content of the base frame and the insertion frame of each complete frame is kept the same, and the display content of the adjacent interval period is different, so as to achieve the purpose of adjusting to the first target refresh rate. It should be noted that the insertion frame can be divided into multiple subframes, and the insertion frame can be added before or after the base frame.
[0072] By adopting the scheme of the embodiment, for a screen with a highest refresh rate of 120Hz, in the same display mode, a refresh rate gear that cannot be evenly divided by 120Hz, for example, a 90Hz gear, is added, so that the refresh rate switching in the same display mode can be realized, the balance between smoothness and energy consumption is ensured, especially in the information flow scene of vertical sliding of the user, the power consumption of the screen and the whole machine can be significantly reduced on the premise of almost no loss of visual smoothness, the core load of the electronic device is reduced, and the endurance time is improved.
[0073] In step S103, the refresh rate of the screen module is adjusted to the first target refresh rate according to the base frame and the insertion frame.
[0074] Referring to Figure 3 , if the highest refresh rate is 120Hz, the duration of the base frame is 8.3ms, if the first target refresh rate is 90Hz, the display time of the complete frame is 11.1ms, the maintenance display duration of the insertion frame is 2.8ms, if the 2.8ms insertion frame appears first and the 8.3ms base frame appears later within the display time 11.1ms of the complete frame, the pixel charging states of the insertion frame of the next complete frame and the base frame of the previous complete frame are the same. In another embodiment, if the 8.3ms base frame appears first and the 2.8ms insertion frame appears later within the display time 11.1ms of the complete frame, the pixel charging states of the 2.8ms insertion frame and the 8.3ms base frame in the same complete frame are the same.
[0075] In the embodiment, step S103 includes:
[0076] the pixel charging state in the base display duration and the pixel charging state in the maintenance display duration in the display duration of each complete frame are kept the same; or,
[0077] the pixel charging state in the maintenance display duration of the next complete frame and the pixel charging state in the base display duration of the previous complete frame in the adjacent two complete frames are kept the same.
[0078] demonstratively, referring to Figure 3If the highest refresh rate is 120Hz and the first target refresh rate is 90Hz, the interval period corresponding to 90Hz is 11.1 milliseconds, the basic display duration of the basic frame is 8.3 milliseconds, and the maintenance display duration of the inserted frame is 2.8 milliseconds. If the 2.8 milliseconds of the inserted frame is inserted before the 8.3 milliseconds of the basic frame, the pixel charge state in the 2.8 milliseconds of the inserted frame of the current complete frame and the 8.3 milliseconds of the basic frame of the previous complete frame is the same, and the screen is adjusted to 90Hz. In this way, the 90Hz refresh rate realized on the basis of 120Hz hardware does not need to purchase 240Hz hardware with high hardware cost, and automatic switching can be realized between 120Hz and 90Hz without feeling, and the screen color temperature, brightness and color parameters cannot be observed. Significant changes, on the premise of not affecting the smoothness, saving power consumption.
[0079] Since the hardware and software need to synchronize the refresh rate to achieve better display effect, after adjusting the refresh rate of the screen, the refresh rate of the application program also needs to be adjusted.
[0080] Participate Figure 4 The refresh rate adjustment method further includes:
[0081] Step S104, acquiring the current refresh rate of the currently running application program.
[0082] Step S105, in the case where the current refresh rate is different from the first target refresh rate, adjusting the refresh rate of the currently running application program to the first target refresh rate; or adjusting the refresh rate of the screen module to the preset refresh rate of the currently running application program.
[0083] When the current refresh rate is inconsistent with the first target refresh rate, the refresh rate of the screen can be adjusted to make the refresh rate of the screen consistent with the refresh rate of the currently running application program, or the currently running application program can be adjusted to the first target refresh rate, to achieve the purpose of making the refresh rate of the screen consistent with the currently running application program, so as to achieve better display effect. In the case where the current refresh rate is the same as the first target refresh rate, no refresh rate adjustment is performed, and power consumption is reduced.
[0084] It should be noted that the currently running application can be of different types, such as a video application, a social application, a camera application, and an instant communication application, and the refresh rate corresponding to different types of applications can be different. The corresponding refresh rate can be set in advance for different applications, or the appropriate refresh rate can be determined according to the use scene characteristics of the application to achieve better display effect. For example, in the video scene of a social application and a video playing application, the corresponding refresh rate can be determined according to the video content in the video scene to adapt the playing video content to the optimal refresh rate. For example, in the photographing scene, the refresh rate needs to be determined according to the speed of the user moving the lens or the picture change, the moving speed of the electronic device can be detected according to the speed sensor, and then the refresh rate of the lens picture movement refresh is determined according to the moving speed to achieve the dynamic display effect of the optimal display effect for the changing moving speed. For the user interaction scene of a social application, for example, the user operates the social application through a sliding operation, and the operation speed of the sliding operation can be matched with the corresponding refresh rate. In addition, the appropriate refresh rate can also be determined according to the current display content of the application, and the display content includes browsing text, drawing, video editing, and other display scenes. Since different types of display content have different requirements for display parameters such as color and brightness, the appropriate refresh rate can be matched according to different types of display content to ensure the display effect of the application while reducing power consumption.
[0085] In an embodiment, it can be determined whether the refresh rate of the currently running application can be set to the first target refresh rate; if yes, the refresh rate of the currently running application is adjusted to the first target refresh rate; if no, the refresh rate of the screen is adjusted to the current refresh rate of the currently running application.
[0086] It should be noted that the refresh rate supported by the currently running application can be different from the refresh rate supported by the screen. When the currently running application can support the first target refresh rate, the currently running application can be adjusted to the first target refresh rate to ensure that the software and hardware refresh rates are consistent and improve the display effect. In this embodiment, when the currently running application does not support the first target refresh rate, the refresh rate of the screen is adjusted to the current refresh rate of the currently running application to ensure that the software and hardware refresh rates are consistent and improve the display effect.
[0087] In addition, the refresh rate adjustment method further includes:
[0088] determining the minimum power consumption of the currently running application at any refresh rate within 1 to the highest refresh rate;
[0089] determining the second target refresh rate corresponding to the minimum power consumption;
[0090] adjust the refresh rate of the screen module and the currently running application to the second target refresh rate respectively.
[0091] To further reduce power consumption, the power consumption of the currently running application at each refresh rate can be calculated, and the second target refresh rate corresponding to the minimum power consumption is selected, and steps S101-103 similar processes are taken to adjust the refresh rate of the screen to the second target refresh rate. In addition, the refresh rate of the currently running application is also adjusted to the second target refresh rate, realizing the synchronization of the refresh rate of the screen module and the currently running application, ensuring the display effect while reducing power consumption.
[0092] For example, for a screen module with a maximum refresh rate of 120Hz, compare the display page power consumption of the currently running application at various refresh rates in the range of 1-120Hz, for example, the refresh rates are P1, P2,..., P119, P120 respectively. If the minimum is P118, then 118Hz is selected as the second target refresh rate.
[0093] In addition, several frequencies in the range of 1-120Hz can also be selected for comparison, for example, the refresh rates of 60 frames and 57 frames are selected for comparison, and the display page power consumption corresponding to the refresh rates of 60 frames and 57 frames is obtained. If the power consumption of 60 frames is smaller (easier to calculate), then the refresh rate of 60 frames with the smallest power consumption is matched as the refresh rate of the screen and the currently running application. However, in special requirements, for example, in a certain scene, the power consumption of 57 frames is smaller, then 57 is used as the refresh rate of the screen and the currently running application.
[0094] In addition, the refresh rate adjustment method also includes:
[0095] determining the page sliding speed according to the sliding operation;
[0096] obtaining a third target refresh rate matching the page sliding speed from the refresh rate range from 1 to the maximum refresh rate;
[0097] adjusting the refresh rate of the screen module to the third target refresh rate.
[0098] In the embodiment, if the user changes the operation speed of the sliding operation on the electronic device, the page sliding speed of the electronic device can be affected according to the sliding operation. The greater the page sliding speed, the greater the corresponding refresh rate should be to obtain a better display effect, so that the corresponding third target refresh rate is determined based on the page sliding speed, and the third target refresh rate is in a positive correlation with the page sliding speed. The page sliding speed can change from fast to slow or from slow to fast. When the page sliding speed changes from fast to slow, the refresh rate can be gradually reduced based on the sliding speed, for example, starting from the highest refresh rate, according to the rule that 1 Hz is reduced corresponding to each unit of the sliding speed, or according to the rule that N Hz is reduced corresponding to each unit of the sliding speed, where N is a positive integer. For example, N is 10, 20, or the like. Thus, the refresh rate is gradually reduced with a gradient, the display effect is improved, and the power consumption is reduced.
[0099] When the page sliding speed changes from slow to fast, the refresh rate can be gradually increased based on the sliding speed, for example, starting from the lowest refresh rate, according to the rule that 1 Hz is increased corresponding to each unit of the sliding speed, or according to the rule that N Hz is increased corresponding to each unit of the sliding speed, where N is a positive integer. For example, N is 10, 20, or the like. Thus, the refresh rate is gradually increased with a gradient, the display effect is improved, and the power consumption is reduced.
[0100] The refresh rate adjustment method provided in the embodiment determines a basic frame according to the highest refresh rate of a screen module; determines an inserted frame according to the basic frame and a first target refresh rate, the first target refresh rate being any refresh rate within 1 to the highest refresh rate, and the highest refresh rate not being an integer multiple of the first target refresh rate; the basic frame and the inserted frame correspond to each other in a one-to-one manner; and the refresh rate of the screen module is adjusted to the first target refresh rate according to the basic frame and the inserted frame, so that switching to any refresh rate within the highest refresh rate of the screen can be implemented.
[0101] In addition, the embodiment of the present application provides a refresh rate adjustment device.
[0102] As shown in Figure 5 The refresh rate adjustment device 500 includes:
[0103] A first determination module 501 is configured to determine a basic frame according to the highest refresh rate of a screen module.
[0104] A second determination module 502 is configured to determine an inserted frame according to the basic frame and a first target refresh rate, the first target refresh rate being any refresh rate within 1 to the highest refresh rate, and the highest refresh rate not being an integer multiple of the first target refresh rate; the basic frame and the inserted frame correspond to each other in a one-to-one manner.
[0105] The adjusting module 503 is configured to adjust the refresh rate of the screen module to the first target refresh rate according to the base frame and the inserted frame.
[0106] In an embodiment, the second determining module 502 is configured to determine a display duration of a complete frame according to the first target refresh rate, the complete frame comprising a base frame and a corresponding inserted frame; and obtain a maintaining display duration of the inserted frame according to the display duration of the complete frame and a base display duration of the base frame, or,
[0107] obtain a refresh rate difference between the highest refresh rate and the first target refresh rate, and determine the maintaining display duration of the inserted frame according to a base display duration of the base frame and the refresh rate difference;
[0108] The inserted frame has the same display content as the corresponding base frame.
[0109] In an embodiment, the refresh rate adjusting apparatus 500 further comprises:
[0110] The obtaining module is configured to obtain a preset refresh rate of a currently running application in a display interface;
[0111] In a case where the preset refresh rate is different from the first target refresh rate, the refresh rate of the currently running application is adjusted to the first target refresh rate, or the refresh rate of the screen module is adjusted to the preset refresh rate of the currently running application.
[0112] In an embodiment, the adjusting module 503 is further configured to keep the pixel charging state in the base display duration and the pixel charging state in the maintaining display duration of each complete frame the same; or,
[0113] keep the pixel charging state in the maintaining display duration of a next complete frame and the pixel charging state in the base display duration of a previous complete frame the same.
[0114] In an embodiment, the refresh rate adjusting apparatus 500 comprises:
[0115] The first processing module is configured to determine a minimum power consumption of a display interface of a current application at any refresh rate within 1 to the highest refresh rate.
[0116] The second target refresh rate corresponding to the minimum power consumption is determined.
[0117] The refresh rates of the screen module and the currently running application are adjusted to the second target refresh rate respectively.
[0118] In an embodiment, the refresh rate adjusting apparatus 500 comprises:
[0119] a second processing module configured to determine a page sliding speed according to the sliding operation;
[0120] obtain a third target refresh rate matching the page sliding speed from a refresh rate range from 1 to the highest refresh rate of the screen module;
[0121] adjust the refresh rate of the screen module to the third target refresh rate.
[0122] The refresh rate adjustment apparatus 500 provided in this embodiment can implement the refresh rate adjustment method provided in this embodiment, and thus repeated descriptions are omitted here.
[0123] The refresh rate adjustment apparatus provided in this embodiment determines a basic frame according to the highest refresh rate of the screen module, determines an inserted frame according to the basic frame and a first target refresh rate, the first target refresh rate is any refresh rate within 1 to the highest refresh rate, and the highest refresh rate is not an integer multiple of the first target refresh rate, the basic frame and the inserted frame correspond to each other, and the refresh rate of the screen module is adjusted to the first target refresh rate according to the basic frame and the inserted frame, so that switching to any refresh rate within the highest refresh rate of the screen can be implemented.
[0124] In addition, the present application provides an application program, comprising:
[0125] an obtaining module configured to obtain a current refresh rate of a screen module, wherein the current refresh rate of the screen module is obtained according to the refresh rate adjustment method provided in this embodiment;
[0126] a processing module configured to adjust display content according to the current refresh rate of the screen module.
[0127] The application program provided in this embodiment can implement the steps of the refresh rate adjustment method provided in this embodiment, and thus repeated descriptions are omitted here.
[0128] In addition, the present application provides an electronic device, comprising a memory, a processor and a screen module, the memory stores a computer program, and the computer program executes the refresh rate adjustment method provided in this embodiment when the processor runs.
[0129] In an embodiment, during the refresh rate adjustment of the screen module, the running application program is unchanged, and the display mode of the screen module is unchanged.
[0130] The electronic device provided in this embodiment further comprises a display screen, and thus the refresh rate adjustment method provided in this embodiment can be implemented, and thus repeated descriptions are omitted here.
[0131] The application further provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the refresh rate adjustment method provided in the embodiments.
[0132] In the embodiments, the computer readable storage medium can be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, etc.
[0133] The computer readable storage medium provided in the embodiments can implement the refresh rate adjustment method provided in the embodiments, and details are not described herein again to avoid repetition.
[0134] It should be noted that, in the present document, the terms "comprising", "containing" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such a process, method, article or terminal. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of another identical element in the process, method, article or terminal including the element.
[0135] From the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment method can be realized by means of software and necessary general hardware platform, of course, it can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes a plurality of instructions for making a terminal (which can be a mobile phone, computer, server, air conditioner or network device, etc.) execute the methods described in the embodiments of the present application.
[0136] The embodiments of the present application are described above in combination with the drawings, but the present application is not limited to the above-mentioned specific embodiments, and the above-mentioned specific embodiments are only illustrative, not restrictive, and those skilled in the art can make many forms under the inspiration of the present application without departing from the scope of the present application and the protection scope of the claims.
Claims
1. A refresh rate adjustment method, characterized in that, The method includes: The base frame is determined based on the highest refresh rate of the screen module; The insertion frame is determined based on the base frame and the first target refresh rate, wherein the first target refresh rate is any refresh rate from 1 to the highest refresh rate, and the highest refresh rate is not an integer multiple of the first target refresh rate; the base frame and the insertion frame correspond one-to-one. The refresh rate of the screen module is adjusted to the first target refresh rate based on the base frame and the inserted frame. The step of determining the inserted frame based on the base frame and the first target refresh rate includes: The display duration of a complete frame is determined based on the first target refresh rate. The complete frame includes a base frame and its corresponding inserted frame. The sustained display duration of the inserted frame is obtained based on the display duration of the complete frame and the base display duration of the base frame. Obtain the refresh rate difference between the highest refresh rate and the first target refresh rate, and determine the maintenance display duration of the inserted frame based on the base display duration of the base frame and the refresh rate difference; The inserted frame displays the same content as the corresponding base frame.
2. The method according to claim 1, characterized in that, The method further includes: Get the preset refresh rate of the currently running application in the display interface; If the preset refresh rate differs from the first target refresh rate, the refresh rate of the currently running application is adjusted to the first target refresh rate; or, the refresh rate of the screen module is adjusted to the preset refresh rate of the currently running application.
3. The method according to claim 1, characterized in that, Adjusting the refresh rate of the screen module to the first target refresh rate based on the base frame and the inserted frame includes: Keep the pixel charging state during the base display duration of each complete frame the same as the pixel charging state during the sustained display duration; or, The pixel charging state during the display duration of the next complete frame in two adjacent complete frames is kept the same as the pixel charging state during the basic display duration of the previous complete frame.
4. The method according to claim 1, characterized in that, The method further includes: Determine the minimum power consumption of the current application's display interface at any refresh rate from 1 to the highest refresh rate; Determine the second target refresh rate corresponding to the minimum power consumption; Adjust the refresh rates of the screen module and the currently running application to the second target refresh rate.
5. The method according to claim 1, characterized in that, The method further includes: The page scrolling speed is determined based on the scrolling operation. Obtain a third target refresh rate that matches the page scrolling speed from a refresh rate range of 1 to the highest refresh rate; The refresh rate of the screen module is adjusted to the third target refresh rate.
6. A refresh rate adjustment device, characterized in that, The device includes: The first determining module is used to determine the base frame based on the highest refresh rate of the screen module; The second determining module is used to determine the insert frame based on the base frame and the first target refresh rate, wherein the first target refresh rate is any refresh rate from 1 to the highest refresh rate, and the highest refresh rate is not an integer multiple of the first target refresh rate; the base frame and the insert frame correspond one-to-one. An adjustment module is used to adjust the refresh rate of the screen module to the first target refresh rate based on the base frame and the inserted frame. The second determining module is used to determine the display duration of a complete frame based on the first target refresh rate, wherein the complete frame includes a base frame and a corresponding inserted frame; and to obtain the maintenance display duration of the inserted frame based on the display duration of the complete frame and the base display duration of the base frame, or... Obtain the refresh rate difference between the highest refresh rate and the first target refresh rate, and determine the maintenance display duration of the inserted frame based on the base display duration of the base frame and the refresh rate difference; The inserted frame displays the same content as the corresponding base frame.
7. An application product, characterized in that, include: The acquisition module is used to acquire the current refresh rate of the screen module, wherein the current refresh rate of the screen module is obtained by adjusting the refresh rate adjustment method according to any one of claims 1 to 5; The processing module is used to adjust the displayed content according to the current refresh rate of the screen module.
8. An electronic device, characterized in that, The device includes a memory processor and a screen module, wherein the memory stores a computer program that executes the refresh rate adjustment method according to any one of claims 1 to 5 when the processor is running.
9. The electronic device according to claim 8, characterized in that, During the refresh rate adjustment of the screen module, the running application remains unchanged, and the display mode of the screen module remains unchanged.
10. A computer-readable storage medium, characterized in that, It stores a computer program that, when run on a processor, executes the refresh rate adjustment method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Frequency conversion method and assembly, time sequence processing device and readable storage medium
CN111105766A