Control method and device

By determining the target refresh rate combination that matches the current scene in the electronic device and controlling the refresh and drawing operations of the display module based on the combination, the problem of difficulty in matching multiple scenes with high refresh rate is solved, and the problem of the electronic device being difficult to match with multiple scenes at a high refresh rate is realized. Resource saving and power consumption reduction effects.

CN119473200APending Publication Date: 2025-02-18LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411548603.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

When electronic devices support high refresh rates, they are difficult to match with multiple scenarios, resulting in problems such as waste of resources, increased power consumption and equipment heating.

Method used

By determining a target refresh rate combination that matches the current scene, including at least two refresh rates supported by the electronic device, and controlling the display module to perform refresh and draw operations based on the combination.

Benefits of technology

It realizes display effects that match multiple scenes, reduces the number of refreshes, saves equipment resources, and reduces power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119473200A_ABST
    Figure CN119473200A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a control method and device. The method comprises the steps that a target refresh rate combination matched with a current scene is determined; the target refresh rate combination comprises at least two refresh rates supported by the electronic equipment; based on the target refresh rate combination, controlling a display module of the electronic equipment to execute a refresh operation on a drawn display frame of a current scene and a drawing operation on a display frame of to-be-displayed data of the current scene; wherein for a first scene, the target refresh rate combination is a first combination, for a second scene, the target refresh rate combination is a second combination, the first scene is different from the second scene, and the first combination is different from the second combination.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to but is not limited to the field of information technology, and in particular to a control method and device. Background Art

[0002] In order to enable users to obtain more immediate and smooth visual effects when using electronic devices, the refresh rate supported by the display modules of electronic devices is getting higher and higher. However, the increase in refresh rate will bring some impacts on energy consumption and hardware limitations. The refresh rate supported by electronic devices is difficult to match the drawing and refresh operations of display frames corresponding to various scenes, resulting in multiple refreshes of the same display frame, resulting in resource waste, increased power consumption, device heating and other problems. Summary of the invention

[0003] In view of this, the embodiments of the present application at least provide a control method and device.

[0004] The technical solution of the embodiment of the present application is implemented as follows:

[0005] The present application provides a control method, including:

[0006] Determine a target refresh rate combination that matches the current scene; the target refresh rate combination includes at least two refresh rates supported by the electronic device;

[0007] Controlling the display module of the electronic device to perform a refresh operation on a drawn display frame of the current scene and a drawing operation on a display frame of data to be displayed of the current scene based on the target refresh rate combination;

[0008] Among them, for the first scene, the target refresh rate combination is the first combination, and for the second scene, the target refresh rate combination is the second combination. The first scene is different from the second scene, and the first combination is different from the second combination.

[0009] The present application provides a control device, including:

[0010] A determination module, used to determine a target refresh rate combination matching the current scene; the target refresh rate combination includes at least two refresh rates supported by the electronic device;

[0011] A control module, used to control the display module of the electronic device to perform a refresh operation on a drawn display frame of the current scene and a drawing operation on a display frame of data to be displayed of the current scene based on the target refresh rate combination;

[0012] Among them, for the first scene, the target refresh rate combination is the first combination, and for the second scene, the target refresh rate combination is the second combination. The first scene is different from the second scene, and the first combination is different from the second combination.

[0013] An embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and the processor can execute the computer program to implement the above-mentioned control method.

[0014] An embodiment of the present application provides a computer-readable storage medium, which stores a computer program. The computer program can be executed by a processor to implement the above control method.

[0015] An embodiment of the present application provides a computer program, including a computer-readable code. When the computer-readable code is executed in a computer device, a processor in the computer device executes some or all of the steps for implementing the above-mentioned control method.

[0016] An embodiment of the present application provides a computer program product, including a computer program or instructions. When the computer program or instructions are executed by a processor, some or all of the steps in the above control method are implemented.

[0017] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and are not intended to limit the technical solutions of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1A A schematic diagram of a display frame update process in the related art;

[0019] Figure 1B A schematic diagram of a control method according to an embodiment of the present application;

[0020] Figure 1C A schematic diagram of an implementation flow of performing a refresh operation and a drawing operation based on a target refresh rate combination provided in an embodiment of the present application;

[0021] Figure 1D A schematic diagram of a display frame update process provided by an embodiment of the present application;

[0022] Figure 2 A schematic diagram of an implementation process of a control method provided in an embodiment of the present application Figure 2 ;

[0023] Figure 3 A schematic diagram of the structure of a control device provided in an embodiment of the present application;

[0024] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions of the present application are further elaborated in detail below in conjunction with the drawings and embodiments. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0026] In the following description, the terms "first / second / third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It is understandable that "first / second / third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field to which this application belongs. The terms used herein are only for the purpose of describing this application and are not intended to limit this application. It should also be noted that, for ease of description, only the parts related to the relevant application are shown in the accompanying drawings.

[0027] In related technologies, based on the support of hardware manufacturers, the refresh rate of the display module can reach different values, such as 60Hz, 90Hz, 120Hz, 144Hz, 165Hz, etc. However, long-term use of high refresh rates will cause the device to heat up, and for mobile devices, long-term use of high refresh rates will also increase power consumption and consume power faster.

[0028] Moreover, the refresh rate determines the upper limit of the number of frames that the display module can display per second. If the frame rate corresponding to the current scene is higher than the refresh rate of the display module, that is, the number of frames that can be displayed per second exceeds the number of times the display module refreshes, the display frames corresponding to the frames that exceed the number of times the display module refreshes will not be displayed; if the frame rate corresponding to the current scene is lower than the refresh rate of the display module, that is, the number of frames that can be displayed per second is less than the number of times the display module refreshes, the same display frame will be refreshed multiple times, resulting in waste of resources and increased power consumption.

[0029] For example, to display a video with a frame rate of 30Hz, 30 display frames need to be updated in the display module every second. When the refresh rate of the electronic device is 30Hz, the software side will draw 30 display frames at a uniform speed within 1 second, and the hardware will refresh 30 display frames at a uniform speed within 1 second, so that each display frame can be presented in the display module after being drawn, and there will be no loss of display frames or display freezes, and no extra resources will be consumed; similarly, to display a video with a frame rate of 30Hz, when the refresh rate of the electronic device is 120Hz, the software side will draw 120 display frames at a uniform speed within 1 second, and the hardware will refresh 120 display frames at a uniform speed within 1 second, so that the same display frame will be drawn and refreshed every 4 consecutive times, resulting in a waste of resources, increased power consumption, and may cause problems such as device heating and excessive power consumption.

[0030] Therefore, in the related art, Figure 1A As shown, the next display frame can be drawn after the hardware is refreshed 4 times, that is, for consecutive display frames 10 and 20, the interval between moment 11 and moment 12, the interval between moment 12 and moment 13, the interval between moment 13 and moment 14, and the interval between moment 14 and moment 21 are all 1000 / 120ms, and the interval between moment 11 and moment 21 is 1000 / 30ms. For each display frame, 3 drawing operations can be reduced. Therefore, the display module updates display frames 10, 20, 30, and 40, which can save 4*3, that is, resources and power consumption corresponding to 12 drawing operations. However, the number of refreshes on the hardware side has not changed, and the refresh interval between every two consecutive display frames is still 1000 / 120ms. However, the refresh rate of this method is single, which is greatly limited by hardware and is difficult to adapt to various scenarios.

[0031] For example, when displaying a video with a frame rate of 25Hz, but the refresh rate supported by the electronic device only includes 60Hz and 165Hz, the above solution cannot be used. Using 60Hz to get 20Hz or 30Hz still cannot fully match the 25Hz video. When refreshing and drawing with the 20Hz obtained after cutting, the display effect of the video will be reduced and the user experience will be reduced; when refreshing and drawing with the 30Hz obtained after cutting, it will cause a waste of resources and increase power consumption.

[0032] On this basis, the embodiment of the present application provides a control method that can be applied to electronic devices. The electronic devices may refer to devices with data processing capabilities such as servers, laptops, tablet computers, desktop computers, smart TVs, set-top boxes, mobile devices (such as mobile phones, portable video players, personal digital assistants, dedicated messaging devices, portable gaming devices), etc.

[0033] like Figure 1B As shown, the control method includes the following steps S101 to S102:

[0034] Step S101, determining a target refresh rate combination that matches the current scene; the target refresh rate combination includes at least two refresh rates supported by the electronic device.

[0035] Here, the current scene may be a usage scene corresponding to the electronic device at the current moment, and may include but is not limited to at least one of an office scene, an audio-visual scene, a game scene, and the like.

[0036] In some implementations, the current scene may be determined based on applications currently running in the electronic device.

[0037] For example, when the application running in the foreground of the electronic device is a game application, the current scene can be determined to be a game scene.

[0038] For another example, when, in a display interface of a display module of an electronic device, the largest number of applications of the same type displayed are document applications, it is determined that the current scene is an office scene.

[0039] The target refresh rate combination may be a refresh rate combination consisting of multiple refresh rates and matching the display parameters of the current scene, wherein the display parameters of the current scene may include but are not limited to at least one of a frame rate, a single frame display period, and the like.

[0040] In some implementations, the scene type of the current scene is different, and the display parameters of the current scene are different.

[0041] For example, when the current scene is an office scene, the frame rate of the current scene can be a preset lower frame rate, such as 25Hz; the single frame display period for updating the display module based on the target refresh rate combination matching the current scene is equal to or approximately equal to the single frame display period corresponding to 25Hz, that is, 1000 / 25ms.

[0042] For example, when the current scene is an audio-visual scene and the frame rate of the played video is 60Hz, the single-frame display period of the current scene can be 1000 / 60ms; the single-frame display period for updating the display module based on the target refresh rate combination matching the current scene is equal to or approximately equal to the single-frame display period corresponding to 60Hz, that is, 1000 / 60ms.

[0043] In some embodiments, the target refresh rate combination includes a first refresh rate and a second refresh rate, and the first refresh rate and the second refresh rate are in a non-integer multiple relationship.

[0044] For example, the target refresh rate combination may be a refresh rate combination of 60 Hz and 90 Hz, wherein 60 Hz is the first refresh rate and 90 Hz is the second refresh rate.

[0045] It is understandable that, when the first refresh rate and the second refresh rate are integer multiples, the refresh rates can be cut to obtain another refresh rate based on one of the refresh rates.

[0046] Step S102, based on the target refresh rate combination, controlling the display module of the electronic device to perform a refresh operation on the drawn display frames of the current scene and a drawing operation on the display frames of the data to be displayed of the current scene; wherein, for the first scene, the target refresh rate combination is a first combination, and for the second scene, the target refresh rate combination is a second combination, the first scene is different from the second scene, and the first combination is different from the second combination.

[0047] Here, the drawn display frame may be a display frame that has been drawn among the data that needs to be displayed in the current scene, and may be a display frame that has been displayed or a display frame that has not been displayed.

[0048] For example, after the drawing of the display frame that has not been displayed is completed, when the display module performs a refresh operation for the first time, the drawn display frame may be the display frame that has not been displayed.

[0049] For another example, in the case where the display module performs multiple refresh operations within the drawing interval between two consecutive display frames, the drawn display frame may be the displayed display frame.

[0050] It can be understood that by performing refresh operations and drawing operations based on a target refresh rate combination that matches the current scene, the drawing operation on the software side can be matched with the refresh operation on the hardware, thereby achieving a screen update of the display module that matches the current scene.

[0051] In some embodiments, the current scene may include a first scene and a second scene, and the display parameters of the first scene are different from the display parameters of the second scene; the refresh rate type in the first combination and the refresh rate type in the second combination may be the same or different; the first combination matches the scene parameters of the first scene, and the second combination matches the scene parameters of the second scene. In this way, different target refresh rate combinations match different current scenes, which can improve the adaptability of the refresh rate combinations supported by the electronic device to multiple scenes.

[0052] In an embodiment of the present application, a target refresh rate combination matching the current scene is determined, and based on the target refresh rate combination, the display module of the electronic device is controlled to perform a refresh operation on the drawn display frame of the current scene and a drawing operation on the display frame of the data to be displayed of the current scene; wherein the target refresh rate combination includes at least two refresh rates supported by the electronic device. In this way, on the one hand, the drawing frequency corresponding to the drawing operation performed based on the target refresh rate combination can be matched with the current scene, thereby improving the adaptability of the electronic device to different scenes and further improving the visual effect; on the other hand, within the drawing cycle of a single display frame, compared with refreshing based on a single high refresh rate, the number of refreshes can be reduced, device resources can be saved, and power consumption can be reduced.

[0053] In some embodiments, the target refresh rate combination includes a first refresh rate and a second refresh rate, and there is a first time difference between a first duration of performing a refresh operation on a single drawn display frame based on the target refresh rate combination and a single frame display period of the current scene, and the first time difference satisfies a matching condition for performing the refresh operation and the drawing operation.

[0054] Here, the first duration may be the update interval duration between two consecutive display frames, which may be determined by the number of refreshes performed by the hardware and the single refresh duration corresponding to each refresh.

[0055] In some implementations, when the first time difference is not greater than a preset difference threshold, it may be determined that the first time difference satisfies a matching condition for performing a refresh operation and a drawing operation.

[0056] For example, when the first duration is 1300 / 33ms, the single frame display period of the current scene is 1000 / 25ms, and the difference threshold is 1ms, the first time difference is approximately 0.61ms, which is no more than 1ms. It can be determined that the first duration is approximately equal to the single frame display period of the current scene.

[0057] In some embodiments, when the first time difference is the minimum time difference between the duration of performing a refresh operation on a single drawn display frame based on the refresh rate and refresh rate combination supported by the electronic device and the time difference between the single frame display period of the current scene, it can be determined that the first time difference satisfies the matching condition for performing the refresh operation and the drawing operation. In this way, while ensuring the performance of the device, the visual effect after performing the refresh operation and the drawing operation based on the target refresh rate combination is closest to the visual effect expected to be achieved in the current scene.

[0058] In some embodiments, there is a second time difference between the second duration of performing a refresh operation on a single drawn display frame based on the first refresh rate and the single frame display period of the current scene, there is a third time difference between the third duration of performing a refresh operation on a single drawn display frame based on the second refresh rate and the single frame display period of the current scene, and the first time difference is smaller than the second time difference and the third time difference. In this way, the visual effect after performing a refresh operation and a drawing operation based on the target refresh rate combination is better than the visual effect after performing a refresh operation and a drawing operation based only on the first refresh rate or the second refresh rate.

[0059] In the embodiment of the present application, the target refresh rate combination includes a first refresh rate and a second refresh rate, and there is a first time difference between the first duration of the refresh operation performed on a single drawn display frame based on the target refresh rate combination and the single frame display cycle of the current scene, and the first time difference satisfies the matching condition for performing the refresh operation and the drawing operation. In this way, since the difference between the refresh duration in a single frame of the target refresh rate combination and the single frame display cycle of the current scene satisfies the matching condition, the refresh operation and the drawing operation can be performed based on the target refresh rate combination, thereby improving the visual effect of the display module updating the display frame and the adaptability to the current scene.

[0060] In some embodiments, Figure 1C As shown, the above step S102 may include the following steps S111 to S112:

[0061] Step S111 : within a display period of a single drawn display frame of the current scene, controlling the display module of the electronic device to perform a refresh operation based on a target refresh rate combination through a first component of the electronic device.

[0062] Here, the first component may be hardware in the electronic device for controlling the display module to perform a refresh operation.

[0063] The display period of a single drawn display frame may correspond to the single frame display period of the above-mentioned current scene.

[0064] Based on the target refresh rate combination, within the display period of a single drawn display frame of the current scene, the display module is controlled to perform a refresh operation, so that the single frame display period of the current scene matches the refresh duration of the display module within the single frame.

[0065] Step S112: In response to the first component performing a round of refresh operation according to the target refresh rate combination, the second component of the electronic device draws the next display frame of the single drawn display frame.

[0066] Here, the second component may be software in the electronic device for drawing the display frame.

[0067] After the first component performs a round of refresh operation according to the target refresh rate combination, the display frame refreshed by this round of refresh operation has been displayed and needs to be switched to display the next display frame. The next display frame is further drawn by the second component of the electronic device, so that the visual effect of the current scene in the display screen of the display module matches the frame rate corresponding to the current scene.

[0068] In an embodiment of the present application, within the display cycle of a single drawn display frame of the current scene, the display module of the electronic device is controlled to perform a refresh operation based on the target refresh rate combination through the first component of the electronic device, and in response to the first component performing a round of refresh operations according to the target refresh rate combination, the next display frame of the single drawn display frame is drawn through the second component of the electronic device. In this way, the duration corresponding to the refresh operation of the display frame by the first component can be matched with the display cycle of the single drawn display frame of the current scene, and the duration corresponding to the drawing operation of the display frame by the second component can be matched with the duration corresponding to the refresh operation of the display frame by the first component. Further combining the refresh operation and the drawing operation, the visual effect achieved by the display module displaying the current scene is improved to be compatible with the current scene.

[0069] In some embodiments, the above step S101 may include the following steps S121 to S122:

[0070] Step S121: determine the target frame rate and / or single frame display period of the current scene.

[0071] In some implementations, after determining the target frame rate of the current scene, the single frame display period can be determined based on the target frame rate, or after determining the single frame display period of the current scene, the target frame rate can be determined based on the single frame display period, and the two are reciprocals of each other.

[0072] In some implementations, the target frame rate and / or single frame display period may be determined based on a target application in the current scene.

[0073] For example, a preset frame rate corresponding to an application running in the current scene may be determined as the target frame rate.

[0074] For another example, the frame rate corresponding to the display data applied in the current scene may be determined as the target frame rate, and based on the target frame rate, the single-frame display period of the current scene may be determined.

[0075] Step S122: determining a target refresh rate combination based on the target frame rate and / or the single frame display period; wherein each refresh rate in the refresh number combination corresponding to the target refresh rate combination has its own corresponding refresh number.

[0076] Here, the refresh number combination may be a combination consisting of the refresh number of each refresh rate in the target refresh rate combination.

[0077] In some implementations, the target refresh rate combination may be determined from a refresh rate set supported by the electronic device based on the target frame rate and / or the single frame display period, wherein the refresh rate set may include at least one refresh rate or refresh rate combination.

[0078] For example, based on the target frame rate and / or the single frame display period, the target refresh rate combination corresponding to the target frame rate and / or the single frame display period can be searched in a preset table by looking up the table. The preset table includes at least one mapping relationship between the target frame rate and / or the single frame display period and the target refresh rate combination.

[0079] In some embodiments, before determining the target refresh rate combination based on the target frame rate and / or single frame display period, the method may further include: determining a refresh rate set supported by the electronic device based on all single refresh rates supported by the electronic device.

[0080] In some embodiments, determining a refresh rate set supported by the electronic device based on all single refresh rates supported by the electronic device may include: determining a refresh rate set supported by the electronic device based on a single refresh cycle corresponding to all single refresh rates supported by the electronic device.

[0081] For example, at a refresh rate of 165Hz, the image is refreshed 165 times in 1 second, and the average interval between each refresh is 1000 / 165ms. At a refresh rate of 60Hz, the image is refreshed 60 times in 1 second, and the average interval between each refresh is 1000 / 60ms.

[0082] like Figure 1D As shown, after display frame 50 is drawn once at time 51, it is refreshed once based on the refresh rate of 165 Hz, and refreshed once at time 52 based on the refresh rate of 60 Hz, and then refreshed once at time 53 based on the refresh rate of 60 Hz. The total refresh time from time 51 to time 61 is 1000 / 165ms+1000 / 60ms+1000 / 60ms, that is, 1300 / 33ms, which is approximately equal to 39.394ms, which is approximately equal to 40ms; after display frame 60 is drawn once at time 61, it is refreshed once based on the refresh rate of 165 Hz, and refreshed twice based on the refresh rate of 60 Hz, and then display frame 70 is drawn and refreshed at time 71; similarly, at time 71, after one drawing, one refresh based on the refresh rate of 165 Hz, and two refreshes based on the refresh rate of 60 Hz, display frame 80 is drawn and refreshed at time 81.

[0083] Thus, the frame rate corresponding to 40ms is 25Hz. Therefore, when the refresh rates supported by the electronic device include 60Hz and 165Hz, but do not include the refresh rates that are integer multiples of 25Hz, such as Figure 1D As shown, by controlling the display module based on the refresh rate combination of 60Hz and 165Hz, only 3 refresh operations and 1 drawing operation are completed within a single frame display cycle, and finally about 25 times of drawing are performed per second, and about 3*25, i.e. 75 times of refreshing are performed, so as to achieve a display effect matching the frame rate of 25Hz. In the related art, by cutting the refresh rate of 60Hz to 30Hz, and then refreshing and drawing based on 30Hz, 2 refresh operations and 1 drawing operation are completed within a single frame display cycle, and finally 30 times of drawing are performed per second, and 2*30, i.e. 60 times of refreshing are performed, and repeated drawn display frames are drawn 5 times per second. The above control method reduces the number of drawing times and saves equipment resources on the basis of improving the adaptability of the display effect of the display module to the current scene.

[0084] The above-mentioned step S102 of controlling the display module of the electronic device to perform a refresh operation on the drawn display frame of the current scene based on the target refresh rate combination may include the following step S123:

[0085] Step S123: performing a refresh operation based on the refresh number combination corresponding to the target refresh rate combination.

[0086] Here, the refresh operation may be performed based on the number of refreshes corresponding to each refresh rate in the target refresh combination, and the refresh order of each refresh rate is not limited during the refresh.

[0087] In the embodiment of the present application, the target frame rate and / or single frame display period of the current scene is determined, and then based on the target frame rate and / or single frame display period, the target refresh rate combination is determined; the refresh operation is performed based on the refresh number combination corresponding to the target refresh rate combination. In this way, the display effect can be further improved to be compatible with the current scene after the display module performs the refresh operation and the drawing operation based on the target refresh rate combination.

[0088] In some embodiments, among the refresh rate sets supported by the electronic device, the difference between the duration of a refresh operation on a single drawn display frame based on the target refresh rate combination and the single frame display period is the smallest, and the total refresh count of the refresh count combination corresponding to the target refresh rate combination is the smallest.

[0089] Here, in the refresh rate set supported by the electronic device, there may be multiple refresh rates or refresh rate combinations whose duration for performing a refresh operation on a single rendered display frame is equal to or approximately equal to a single frame display period.

[0090] In some embodiments, the refresh rate combination with the smallest difference between the duration of performing a refresh operation on a single drawn display frame and the single frame display cycle can be determined as the candidate refresh rate combination in the refresh rate set supported by the electronic device; the candidate refresh rate combination with the smallest total refresh times of the corresponding refresh times combination can be determined as the target refresh rate combination. In this way, after the display module performs a refresh operation and a drawing operation based on the candidate refresh rate combination, the display effect of the current scene can be the best, and the total number of refreshes in the single frame display cycle can be the smallest.

[0091] In the embodiment of the present application, based on the total number of refreshes in a single frame display cycle and the difference between the duration of the refresh operation for a single drawn display frame and the single frame display cycle, a target refresh rate combination is determined from the refresh rate set. In this way, the total number of hardware refreshes in a single frame display cycle can be reduced on the basis of improving the display effect of the display module and the adaptability of the current scene, thereby saving device resources and reducing power consumption.

[0092] In some embodiments, among the refresh rate sets supported by the electronic device, the difference between the duration of performing a refresh operation on a single drawn display frame based on the target refresh rate combination and the single frame display period is minimized, and the number of refresh rates included in the target refresh rate combination is the least.

[0093] In some embodiments, the refresh rate combination with the smallest difference between the duration of performing a refresh operation on a single drawn display frame and the single frame display period can be determined as the candidate refresh rate combination in the refresh rate set supported by the electronic device; and the candidate refresh rate combination with the least number of refresh rates can be determined as the target refresh rate combination. In this way, after the display module performs a refresh operation and a drawing operation based on the candidate refresh rate combination, the display effect of the current scene can be the best, and the number of switching between different refresh rates within a single frame display period can be minimized.

[0094] In the embodiment of the present application, based on the number of different refresh rates in the refresh rate combination and the difference between the duration of the refresh operation for a single drawn display frame and the single frame display cycle, a target refresh rate combination is determined from the refresh rate set. In this way, the number of switching times of different refresh rates in a single frame display cycle can be reduced on the basis of improving the display effect of the display module and the adaptability of the current scene, thereby reducing the adjustment cost, saving equipment resources, and reducing power consumption.

[0095] In some embodiments, the refresh duration of the target refresh rate combination is obtained by adding up the single refresh periods corresponding to at least two different refresh rates in the target refresh rate combination as accumulation factors and the number of accumulations corresponding to each refresh rate; the first refresh duration of the first combination is equal to or approximately equal to the first single frame display period of the first scene, the second refresh duration of the second combination is equal to or approximately equal to the second single frame display period of the second scene, and the first single frame display period is different from the second single frame display period.

[0096] Here, the refresh duration of different refresh rate combinations is adapted to different single-frame display cycles. Therefore, different refresh rate combinations composed of the same type of refresh rate can correspond to different refresh durations based on the different accumulated times of each refresh rate, so that based on the same type of single refresh rate, a variety of different scenarios can be adapted.

[0097] In some embodiments, the number of single refresh rates that the electronic device can support that are not integer multiples is m, the first number of refresh rates has an nth non-repetitive factor, and the number of combinations of i randomly selected from the m refresh rates and n non-repetitive factors is p. Then, the refresh rate set supported by the electronic device includes a total of m+n+p refresh rates and / or refresh rate combinations; wherein, i∈[2,m+n], i is a positive integer.

[0098] In the embodiment of the present application, the refresh durations of different refresh rate combinations match the single-frame display cycles in different scenes. In this way, the refresh rate combination adapted to the current scene can be determined based on the refresh duration that is equal to or approximately equal to the single-frame display cycle of the current scene, thereby improving the accuracy of the determined target refresh rate combination in adapting to the current scene and further improving the display effect of the display module in adapting to the current scene.

[0099] In some embodiments, the above step S102 of controlling the display module of the electronic device to perform a refresh operation on the drawn display frame of the current scene based on the target refresh rate combination may include the following step S131:

[0100] Step S131: During a display cycle of a single drawn display frame of the current scene, after refreshing the drawn display frame at one refresh rate in the target refresh rate combination according to the number of refreshes corresponding to the refresh rate, the drawn display frame is switched to another refresh rate in the target refresh rate combination according to the number of refreshes corresponding to the other refresh rate, until the first component traverses a round of each refresh rate in the target refresh rate combination.

[0101] Here, for a single drawn display frame, based on the number of refreshes corresponding to each refresh rate in the target refresh rate combination, after refreshing one refresh rate, other refresh rates can be switched to reduce the extra workload of the first component when switching different refresh rates. At the same time, traversing each refresh rate in a round of the target refresh rate combination can improve the accuracy of displaying based on the refresh duration corresponding to the refresh operation.

[0102] In an embodiment of the present application, during the display cycle of a single drawn display frame of the current scene, after refreshing the drawn display frame at one refresh rate in the target refresh rate combination according to the number of refreshes corresponding to the refresh rate through the first component of the electronic device, the drawn display frame is switched to another refresh rate in the target refresh rate combination according to the number of refreshes corresponding to the other refresh rate, until the first component has traversed through a round of each refresh rate in the target refresh rate combination. In this way, the accuracy of the display module performing the refresh operation based on the target refresh rate combination can be improved while saving device resources by reducing the extra workload when the first component switches between different refresh rates.

[0103] In some embodiments, controlling the display module of the electronic device to perform a drawing operation on a display frame of the to-be-displayed data of the current scene based on the target refresh rate combination may include the following steps S141 to S142:

[0104] Step S141: in response to the first component of the electronic device completing a refresh operation on a drawn display frame of the current scene, a target refresh signal is sent through the first component.

[0105] Here, the target refresh signal may indicate that the first component has completed a refresh operation on the drawn display frame of the current scene.

[0106] In some implementations, each time the first component is refreshed, a clock signal is released.

[0107] In the related art, when no refresh rate cutting method is applied, each time the hardware releases a clock signal, it will perform a refresh and drawing.

[0108] For example, for Figure 1A At time 11, time 12, time 13, time 14, time 21, time 31 and time 41, the first component sends a target refresh signal.

[0109] For example, for Figure 1D At time 51, time 52, time 53, time 61, time 62, time 71 and time 81, the first component sends a target refresh signal.

[0110] Step S142: In response to the target refresh signal and after the first component has traversed all refresh rates in a round of target refresh rate combinations, a second component of the electronic device draws a next display frame of the drawn display frame.

[0111] In some embodiments, the second component can determine whether to draw the next display frame of the drawn display frame based on the number of received target refresh signals and whether the first component has traversed all refresh rates in a round of target refresh rate combinations.

[0112] For example, the second component can draw the next display frame after receiving a fixed number of target refresh signals and the first component has traversed each refresh rate in a round of target refresh rate combinations and determined that the drawn display frame has been refreshed and displayed according to the target refresh rate combination.

[0113] For example, for Figure 1A , the second component can start to confirm the receipt of 4 target refresh signals at time 11, and then perform a drawing at time 21, and the same applies to time 31 and time 41.

[0114] For example, for Figure 1D , the second component can start to confirm the receipt of three target refresh signals at time 51, and then perform a drawing at time 61, and the same applies to time 71 and time 81.

[0115] In the embodiment of the present application, in response to the first component of the electronic device completing a refresh operation on the drawn display frame of the current scene, the first component sends a target refresh signal; in response to the target refresh signal and the first component has traversed each refresh rate in a round of the target refresh rate combination, the second component of the electronic device draws the next display frame of the drawn display frame. In this way, the accuracy of the cycle drawn by the second component to fit the refresh cycle of the target refresh rate combination can be improved, and the display effect of the display module can be further improved. The adaptability of the current scene.

[0116] An embodiment of the present application provides a control method for improving the adaptability of a display effect of a display module to a current scene, which can be executed by an electronic device.

[0117] like Figure 2 As shown, the method includes the following steps S201 to S203:

[0118] Step S201: Determine the target frame rate corresponding to the current scene.

[0119] Step S202: Determine a target refresh rate combination based on the target frame rate.

[0120] Step S203 : Based on the target refresh rate combination, the display module of the electronic device is controlled to perform a refresh operation on the drawn display frame of the current scene and a drawing operation on the display frame of the data to be displayed of the current scene.

[0121] In the embodiment of the present application, a target refresh rate combination matching the target frame rate corresponding to the current scene is determined, and based on the target refresh rate combination, the display module of the electronic device is controlled to perform a refresh operation on the drawn display frame of the current scene and a drawing operation on the display frame of the data to be displayed of the current scene. In this way, on the one hand, the drawing frequency corresponding to the drawing operation performed based on the target refresh rate combination can be matched with the current scene, thereby improving the adaptability of the electronic device to different scenes and further improving the visual effect; on the other hand, within the drawing cycle of a single display frame, compared with refreshing based on a single high refresh rate, the number of refreshes can be reduced, device resources can be saved, and power consumption can be reduced.

[0122] The present application provides a control device which can be applied to electronic devices such as Figure 3 As shown, the control device 300 includes:

[0123] A determination module 301 is used to determine a target refresh rate combination that matches the current scene; the target refresh rate combination includes at least two refresh rates supported by the electronic device;

[0124] A control module 302, configured to control the display module of the electronic device to perform a refresh operation on a drawn display frame of the current scene and a drawing operation on a display frame of data to be displayed of the current scene based on the target refresh rate combination;

[0125] Among them, for the first scene, the target refresh rate combination is a first combination, and for the second scene, the target refresh rate combination is a second combination. The first scene is different from the second scene, and the first combination is different from the second combination.

[0126] In some embodiments, the target refresh rate combination includes a first refresh rate and a second refresh rate, and there is a first time difference between a first duration of performing the refresh operation on a single drawn display frame based on the target refresh rate combination and a single frame display period of the current scene, and the first time difference satisfies a matching condition for performing the refresh operation and the drawing operation.

[0127] In some embodiments, the control module can also be used to: within the display period of a single drawn display frame of the current scene, control the display module of the electronic device to perform the refresh operation based on the target refresh rate combination through the first component of the electronic device; in response to the first component performing a round of refresh operation according to the target refresh rate combination, draw the next display frame of the single drawn display frame through the second component of the electronic device.

[0128] In some embodiments, the determination module may also be used to: determine the target frame rate and / or single frame display period of the current scene; determine the target refresh rate combination based on the target frame rate and / or single frame display period; wherein each refresh rate in the refresh number combination corresponding to the target refresh rate combination has a respective refresh number corresponding to it;

[0129] The control module may also be configured to: execute the refresh operation based on a refresh number combination corresponding to the target refresh rate combination.

[0130] In some embodiments, among the refresh rate set supported by the electronic device, the difference between the duration of performing the refresh operation on a single drawn display frame based on the target refresh rate combination and the single frame display period is the smallest, and the total refresh number of the refresh number combination corresponding to the target refresh rate combination is the least.

[0131] In some embodiments, among the refresh rate set supported by the electronic device, the difference between the duration of performing the refresh operation on a single drawn display frame based on the target refresh rate combination and the single frame display period is minimized, and the number of refresh rates included in the target refresh rate combination is the least.

[0132] In some embodiments, the refresh duration of the target refresh rate combination is obtained by adding up the single refresh periods corresponding to at least two different refresh rates in the target refresh rate combination as accumulation factors and the number of accumulations corresponding to each refresh rate; the first refresh duration of the first combination is equal to or approximately equal to the first single frame display period of the first scene, the second refresh duration of the second combination is equal to or approximately equal to the second single frame display period of the second scene, and the first single frame display period is different from the second single frame display period.

[0133] In some embodiments, the control module can also be used to: within the display period of a single drawn display frame of the current scene, through the first component of the electronic device, refresh the drawn display frame at one refresh rate in the target refresh rate combination according to the number of refreshes corresponding to the refresh rate, and then switch to another refresh rate in the target refresh rate combination to refresh the drawn display frame according to the number of refreshes corresponding to the other refresh rate, until the first component traverses a round of each refresh rate in the target refresh rate combination.

[0134] In some embodiments, the control module can also be used to: in response to the first component of the electronic device completing a refresh operation on a drawn display frame of the current scene, send a target refresh signal through the first component; in response to the target refresh signal and the first component having traversed a round of each refresh rate in the target refresh rate combination, draw the next display frame of the drawn display frame through the second component of the electronic device.

[0135] The present application embodiment provides an electronic device, including: a memory and a processor. Figure 4 As shown, the electronic device 400 includes:

[0136] Memory 401, used to store computer programs that can be run on processor 402;

[0137] The processor 402 is used to execute the program stored in the memory 401 to implement the above control method applied to the control device.

[0138] An embodiment of the present application provides a computer program, including a computer-readable code. When the computer-readable code is executed in a computer device, a processor in the computer device executes some or all of the steps for implementing the above control method.

[0139] An embodiment of the present application provides a computer program product, including a computer program or instructions, which, when executed by a processor, implements some or all of the steps in the above control method.

[0140] An embodiment of the present application provides a computer-readable storage medium, which stores a computer program. The computer program can be executed by a processor to implement the above control method.

[0141] The present application is described with reference to the flowchart and / or block diagram of the method, device and equipment according to the embodiment of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, and the combination of the process and / or box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the function specified in one process or multiple processes in the flowchart and / or one box or multiple boxes in the block diagram.

[0142] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0143] These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0144] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed in the present application should be included in the protection scope of the present application.

[0145] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0146] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.

[0147] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

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

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

[0150] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0151] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0152] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0153] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. A control method, comprising: Determine the target refresh rate combination that matches the current scene; The target refresh rate combination includes at least two refresh rates supported by the electronic device; Controlling the display module of the electronic device to perform a refresh operation on a drawn display frame of the current scene and a drawing operation on a display frame of data to be displayed of the current scene based on the target refresh rate combination; Among them, for the first scene, the target refresh rate combination is a first combination, and for the second scene, the target refresh rate combination is a second combination. The first scene is different from the second scene, and the first combination is different from the second combination.

2. According to the method according to claim 1, the target refresh rate combination includes a first refresh rate and a second refresh rate, and there is a first time difference between a first duration of performing the refresh operation on a single drawn display frame based on the target refresh rate combination and a single frame display period of the current scene, and the first time difference satisfies a matching condition for performing the refresh operation and the drawing operation.

3. The method according to claim 1, wherein the controlling the display module of the electronic device to perform a refresh operation on a drawn display frame of the current scene and a drawing operation on a display frame of data to be displayed of the current scene based on the target refresh rate combination comprises: Controlling the display module of the electronic device to perform the refresh operation based on the target refresh rate combination through the first component of the electronic device within a display cycle of a single drawn display frame of the current scene; In response to the first component performing a round of refresh operation according to the target refresh rate combination, a next display frame of the single drawn display frame is drawn by a second component of the electronic device.

4. The method according to claim 1, wherein determining a target refresh rate combination matching the current scene comprises: Determining a target frame rate and / or a single frame display period of the current scene; Based on the target frame rate and / or the single frame display period, the target refresh rate combination is determined; wherein each refresh rate in the refresh number combination corresponding to the target refresh rate combination has a respective refresh number corresponding to it; The controlling the display module of the electronic device to perform a refresh operation on the drawn display frame of the current scene based on the target refresh rate combination includes: The refresh operation is performed based on a refresh number combination corresponding to the target refresh rate combination.

5. According to the method of claim 4, in the refresh rate set supported by the electronic device, the difference between the duration of performing the refresh operation on a single drawn display frame based on the target refresh rate combination and the single frame display period is the smallest, and the total refresh number of the refresh number combination corresponding to the target refresh rate combination is the least.

6. According to the method of claim 4, in the refresh rate set supported by the electronic device, the difference between the duration of performing the refresh operation on a single drawn display frame based on the target refresh rate combination and the single frame display period is minimized, and the number of refresh rates included in the target refresh rate combination is the least.

7. According to the method described in any one of claims 1 to 6, the refresh duration of the target refresh rate combination is obtained by adding up the single refresh periods corresponding to at least two different refresh rates in the target refresh rate combination as accumulation factors and the number of accumulations corresponding to each of the refresh rates; the first refresh duration of the first combination is equal to or approximately equal to the first single-frame display period of the first scene, the second refresh duration of the second combination is equal to or approximately equal to the second single-frame display period of the second scene, and the first single-frame display period is different from the second single-frame display period.

8. The method according to any one of claims 1 to 6, wherein the step of controlling the display module of the electronic device to perform a refresh operation on the drawn display frame of the current scene based on the target refresh rate combination comprises: During a display cycle of a single drawn display frame of the current scene, after refreshing the drawn display frame at one refresh rate in the target refresh rate combination according to a number of refreshes corresponding to the refresh rate, the drawn display frame is switched to another refresh rate in the target refresh rate combination according to a number of refreshes corresponding to the another refresh rate, until the first component traverses a round of each refresh rate in the target refresh rate combination.

9. The method according to any one of claims 1 to 6, controlling the display module of the electronic device to perform a drawing operation on a display frame of the to-be-displayed data of the current scene based on the target refresh rate combination, comprising: In response to the first component of the electronic device completing a refresh operation on a drawn display frame of a current scene, sending a target refresh signal through the first component; In response to the target refresh signal and the first component having traversed a round of each refresh rate in the target refresh rate combination, a next display frame of the drawn display frame is drawn by a second component of the electronic device.

10. A control device comprising: A determination module, used to determine a target refresh rate combination that matches the current scene; The target refresh rate combination includes at least two refresh rates supported by the electronic device; A control module, configured to control the display module of the electronic device to perform a refresh operation on a drawn display frame of the current scene and a drawing operation on a display frame of data to be displayed of the current scene based on the target refresh rate combination; Among them, for the first scene, the target refresh rate combination is a first combination, and for the second scene, the target refresh rate combination is a second combination. The first scene is different from the second scene, and the first combination is different from the second combination.