Screen refresh rate adjusting method and device and computer equipment

By collecting pixel difference and sensitivity in embedded devices and dynamically adjusting the refresh weight value, the problem of frame rate decline of embedded devices is solved, the refresh rate and frame rate are increased, the user experience is improved and the cost is reduced.

CN118762633AActive Publication Date: 2024-10-11NINGBO FOTILE KITCHEN WARE CO LTD

Patent Information

Application Number
CN202410923233.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-10-11
Estimated Expiration
2044-07-10

AI Technical Summary

Technical Problem

The frame rate of embedded devices drops when displaying complex interfaces, resulting in interface lags. Existing technology cannot effectively utilize hardware resources and cannot dynamically adjust the refresh rate to adapt to changes in page content.

Method used

By collecting the pixel difference value of each pixel in the screen area to be adjusted, the pixel sensitivity is determined, and the refresh weight value is adjusted according to the regional changes, and the target refresh rate is dynamically adjusted to optimize the refresh rate in different areas.

Benefits of technology

The screen refresh rate and frame rate are increased, the user experience is improved, the cost is reduced, the waste of hardware resources is avoided, and real-time response to content changes in different areas is achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118762633A_ABST
    Figure CN118762633A_ABST
Patent Text Reader

Abstract

The invention relates to a screen refresh rate adjusting method and device and computer equipment. The method comprises the following steps: acquiring a pixel difference value of each pixel point in a to-be-adjusted screen area in a time dimension, and determining pixel point sensitivity corresponding to the pixel point according to the pixel difference value; traversing all pixel points in the to-be-adjusted screen area, and determining the area change condition of the to-be-adjusted screen area according to the pixel difference values corresponding to the pixel points and the pixel point sensitivity; and adjusting a preset refresh weight value of the to-be-adjusted screen area according to the area change condition, and determining a target refresh rate of the to-be-adjusted screen area based on the adjusted weight value. According to the optimization method provided by the invention, the optimization effects of the hardware cost, the frame rate and the refresh rate of the equipment can be considered.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of embedded devices, and in particular to a screen refresh rate adjustment method, device and computer equipment. Background Art

[0002] In embedded devices, the frame rate and refresh rate of the display screen are important indicators for measuring user experience. The stability and smoothness of the frame rate and refresh rate of the display screen will directly affect the user's perception and satisfaction with the device. However, due to hardware resource limitations, embedded devices often experience a drop in frame rate when displaying complex interfaces, resulting in a stuck and unsmooth interface, which reduces the user experience.

[0003] Traditional screen frame rate optimization methods often use a fixed refresh rate or a simple frame rate limiting strategy. However, these two methods cannot fully utilize hardware resources, nor can they dynamically adjust according to changes in page content. Fixed refresh rate methods include, for example, directly setting the screen interface to refresh 60 times per second. Although this method is simple, it cannot achieve dynamic adjustment, resulting in frame rate drops or interface freezes when the page complexity is high or the content changes frequently. Setting a simple frame rate limit, such as directly limiting the frame rate to 30fps, may result in the inability to fully utilize hardware resources when the page load is light, thereby reducing the performance of the device.

[0004] At present, there is no effective solution to the problem that the optimization methods for the frame rate and refresh rate of the interface in the prior art cannot take into account both the cost and the optimization effect. Summary of the invention

[0005] Based on this, it is necessary to provide a screen refresh rate adjustment method, device and computer equipment to address the above technical problems.

[0006] In a first aspect, the present application provides a method for adjusting a screen refresh rate. The method comprises:

[0007] Collecting the pixel difference of each pixel point in the screen area to be adjusted in the time dimension, and determining the pixel point sensitivity corresponding to the pixel point according to the pixel difference;

[0008] Traversing all pixels in the screen area to be adjusted, and determining the area change of the screen area to be adjusted according to the pixel difference and pixel sensitivity corresponding to the pixel;

[0009] The refresh weight value preset for the screen area to be adjusted is adjusted according to the area change situation, and the target refresh rate of the screen area to be adjusted is determined based on the adjusted weight value.

[0010] In one of the embodiments, before collecting the change information of each pixel point in the screen area to be adjusted in the time dimension, the method further includes:

[0011] An initial screen to be adjusted is determined, and based on a preset division scheme, the initial screen to be adjusted is divided to obtain at least one screen area to be adjusted.

[0012] In one embodiment, the method comprises:

[0013] The initial screen to be adjusted is evenly divided based on a preset division scheme to obtain a screen area to be adjusted;

[0014] Or, the initial screen to be adjusted is non-uniformly divided based on a preset division scheme to obtain the screen area to be adjusted.

[0015] In one embodiment, determining the pixel sensitivity corresponding to the pixel point according to the pixel difference includes:

[0016] Obtaining a mapping relationship between a preset initial pixel sensitivity and a pixel difference;

[0017] The pixel difference corresponding to each pixel point is determined, and the pixel point sensitivity corresponding to each pixel point is determined in the initial pixel point sensitivity based on the mapping relationship.

[0018] In one embodiment, determining the area change of the screen area to be adjusted according to the pixel difference value and the pixel sensitivity corresponding to the pixel point includes:

[0019] The change range of the screen area to be adjusted is determined according to the pixel differences and pixel sensitivities corresponding to all the pixels in the screen area to be adjusted.

[0020] In one of the embodiments, determining the area change of the screen area to be adjusted according to the pixel difference value and the pixel sensitivity corresponding to the pixel point also includes:

[0021] Based on the change of the change amplitude in the time dimension, the change rate of the screen area to be adjusted is determined.

[0022] In one embodiment, adjusting the preset refresh weight value of the screen area to be adjusted according to the area change includes:

[0023] Obtaining a preset weight adjustment area;

[0024] If it is detected that the change amplitude corresponding to the screen area to be adjusted is less than the minimum value of the weight adjustment area, the refresh weight value is reduced based on the preset minimum value adjustment parameter to obtain the adjusted weight value;

[0025] If it is detected that the change amplitude corresponding to the screen area to be adjusted is greater than the maximum value of the weight adjustment area, the refresh weight value is increased based on the preset maximum value adjustment parameter to obtain the adjusted weight value;

[0026] If it is detected that the change range corresponding to the screen area to be adjusted is within the weight adjustment area, the refresh weight value is kept unchanged.

[0027] In one embodiment, adjusting the preset refresh weight value of the screen area to be adjusted according to the area change includes:

[0028] Get the preset frequency value;

[0029] If it is detected that the change frequency corresponding to the screen area to be adjusted is less than the preset frequency value, the adjusted weight value is obtained based on the superposition of the preset first frequency value and the refresh weight value;

[0030] If it is detected that the change frequency corresponding to the screen area to be adjusted is greater than or equal to the preset frequency value, the adjusted weight value is obtained based on the superposition of the preset second frequency value and the refresh weight value.

[0031] In a second aspect, the present application also provides a screen refresh rate adjustment device. The device comprises:

[0032] An acquisition module is used to collect the pixel difference of each pixel point in the screen area to be adjusted in the time dimension, and determine the pixel point sensitivity corresponding to the pixel point according to the pixel difference;

[0033] A calculation module, used for traversing all pixels in the screen area to be adjusted, and determining the area change of the screen area to be adjusted according to the pixel difference and pixel sensitivity corresponding to the pixel;

[0034] The generation module is used to adjust the refresh weight value preset in the screen area to be adjusted according to the area change situation, and determine the target refresh rate of the screen area to be adjusted based on the adjusted weight value.

[0035] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0036] Collecting the pixel difference of each pixel point in the screen area to be adjusted in the time dimension, and determining the pixel point sensitivity corresponding to the pixel point according to the pixel difference;

[0037] Traversing all pixels in the screen area to be adjusted, and determining the area change of the screen area to be adjusted according to the pixel difference and pixel sensitivity corresponding to the pixel;

[0038] The refresh weight value preset for the screen area to be adjusted is adjusted according to the area change situation, and the target refresh rate of the screen area to be adjusted is determined based on the adjusted weight value.

[0039] The above-mentioned screen refresh rate adjustment method, device and computer equipment first collect the pixel difference of each pixel in the screen area to be adjusted in the time dimension, and determine the pixel sensitivity corresponding to the pixel according to the pixel difference, and then traverse all the pixels in the screen area to be adjusted, and determine the regional change of the screen area to be adjusted according to the pixel interpolation and pixel sensitivity corresponding to each pixel; finally, adjust the preset refresh weight value of the screen area to be adjusted according to the regional change, and determine the target refresh rate of the screen area to be adjusted based on the adjusted weight value. Through this application, the screen can be monitored in different regions, and the refresh rate can be adjusted in real time according to the user interaction and the changes in the regional content, so that the user can obtain the required information faster, and due to the increase in the screen refresh rate, the final frame rate is also correspondingly higher, which effectively improves the user experience. And further, this application does not need to introduce additional hardware equipment, and can completely optimize the refresh rate and frame rate based on the software level, which effectively reduces the cost required for frame rate optimization on the basis of ensuring that there is no need for excessive equipment cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 A diagram showing an application environment of a method for adjusting a screen refresh rate in an embodiment;

[0041] Figure 2 A schematic diagram of a flow chart of a method for adjusting a screen refresh rate in one embodiment;

[0042] Figure 3 A non-uniform partitioning method in one embodiment;

[0043] Figure 4 A schematic diagram of a flow chart of a method for adjusting screen refresh rate in a preferred embodiment;

[0044] Figure 5 is a structural block diagram of a screen refresh rate adjustment device in one embodiment;

[0045] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0047] The screen refresh rate adjustment method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. First, the pixel difference of each pixel in the screen area to be adjusted in the time dimension is collected, and the pixel sensitivity corresponding to the pixel is determined according to the pixel difference, and then all the pixels in the screen area to be adjusted are traversed, and the regional change of the screen area to be adjusted is determined according to the pixel interpolation and pixel sensitivity corresponding to each pixel; finally, the refresh weight value preset for the screen area to be adjusted is adjusted according to the regional change, and the target refresh rate of the screen area to be adjusted is determined based on the adjusted weight value. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices, and the Internet of Things devices can be smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented with an independent server or a server cluster consisting of multiple servers.

[0048] It should be noted that the application scenarios of the present application are all screen interfaces that require adjusting the refresh rate or frame rate, so that the refresh rate of the screen interface to be adjusted can be adjusted in different areas through the solution in the present application. Preferably, considering that the UI interface is convenient for dividing different functional areas in actual applications, the present application is preferably used in the scenario of adjusting the refresh rate or frame rate of the UI interface.

[0049] In one embodiment, Figure 2 As shown, a screen refresh rate adjustment method is provided, which is applied to Figure 1 The server in the example is used to illustrate the following steps:

[0050] Step S210 , collecting pixel differences of each pixel point in the screen area to be adjusted in the time dimension, and determining the pixel point sensitivity corresponding to the pixel point according to the pixel difference value.

[0051] Among them, the above-mentioned pixel difference reflects the difference between the values ​​of each pixel at different times. The pixel sensitivity is proportional to the amplitude of the pixel value change. In practical applications, the pixel value sometimes changes due to environmental factors or errors in the device itself. At this time, this change is equivalent to an error, and the amplitude of the pixel value change caused by the error is usually small. Therefore, in this embodiment, the pixel sensitivity is set to reflect the degree of change of the pixel value, that is, when the degree of change of the pixel value is very small, the pixel sensitivity will also be reduced or even reduced to 0, so that the degree of change of the pixel value is reflected through the pixel sensitivity, which lays the foundation for the subsequent calculation of the overall regional change of the screen area to be adjusted.

[0052] Step S220, traverse all the pixels in the screen area to be adjusted, and determine the area change of the screen area to be adjusted according to the pixel difference and pixel sensitivity corresponding to the pixel.

[0053] After determining the pixel difference and pixel sensitivity corresponding to each pixel in the screen area to be adjusted, the pixel difference and pixel sensitivity of all pixels are combined to determine the regional change of the screen area to be adjusted, wherein the regional change is used to reflect the change of the pixel value in the corresponding area. In this embodiment, the change of each pixel value includes but is not limited to the difference of the pixel value, the frequency of change of the pixel value, the amplitude of the change of the pixel value, etc. Specifically, in some preferred embodiments, the pixel difference and the pixel sensitivity can be multiplied to obtain the above-mentioned regional change. It can be understood that if the change of one or more pixel values ​​is caused by an error, and the amplitude of the value change is small at this time, then the pixel difference and the pixel sensitivity (the pixel sensitivity is also low at this time) corresponding to each pixel in the screen area to be adjusted are multiplied to effectively reduce the impact of the error.

[0054] Step S230 , adjusting the refresh weight value preset for the screen area to be adjusted according to the area change situation, and determining the target refresh rate of the screen area to be adjusted based on the adjusted weight value.

[0055] Among them, the above-mentioned regional changes are proportional to the weight value. When the calculated regional changes are high, the weight value is increased accordingly, and when the regional changes are slow, the weight value is decreased accordingly. The above-mentioned refresh weight value is the weight of the refresh rate corresponding to the screen area to be adjusted. In actual applications, each screen area to be adjusted usually has a preset screen refresh rate, which is mostly a default refresh rate. However, this refresh rate may not be suitable for the change of screen content and user operations. Therefore, in this embodiment, according to the change of pixel value in the screen area to be adjusted, the refresh weight value corresponding to the screen area to be adjusted is adjusted, so as to determine the target refresh rate of the screen area to be adjusted according to the calculated weight value.

[0056] Through step S210 to step S230, on the one hand, the present application does not require additional hardware support, and only needs to be implemented at the software level, which reduces costs and complexity and is easy to promote and apply; on the other hand, the present embodiment can dynamically adjust the regional refresh frequency according to the changes in the pixel values ​​in the screen area to be adjusted, effectively utilize the CPU performance, and thus ensure that the screen interface can be displayed at the best frame rate in each area, thereby improving the overall user experience. And further, the present application can not only intuitively reflect the degree of change of each pixel through the setting of pixel sensitivity, but also eliminate the influence of environmental interference when calculating the refresh weight value through the sensitivity, and can accurately obtain user interaction and regional content changes, so as to adjust the refresh frequency in time.

[0057] In some embodiments, the method further comprises:

[0058] An initial screen to be adjusted is determined, and based on a preset division scheme, the initial screen to be adjusted is divided to obtain at least one screen area to be adjusted.

[0059] Specifically, the initial screen to be adjusted is usually the entire screen, and each screen is regarded as an independent body. Referring to the characteristics of screen display in actual applications, the change frequencies of different areas in the interface are usually different. For example, the interface that displays the user's query content, the change of its screen content, that is, the change of pixel value is usually faster and the change amplitude is also larger, while the change frequency of the background area is relatively low. Therefore, according to the division scheme corresponding to different interfaces, the areas with different change frequencies can be divided into multiple screen areas to be adjusted, and the refresh rates can be adjusted separately, so as to ensure that the actual usage of each screen area is adapted to different conditions, and make full use of the CPU performance to effectively improve the refresh rate of the UI interface.

[0060] In some embodiments, the method further comprises:

[0061] The initial screen to be adjusted is evenly divided based on a preset division scheme to obtain a screen area to be adjusted;

[0062] Or, the initial screen to be adjusted is non-uniformly divided based on a preset division scheme to obtain the screen area to be adjusted.

[0063] Specifically, in this embodiment, the initial screen to be adjusted may be divided evenly or unevenly. Figure 3This is a non-uniform division method in an embodiment. The figure divides the screen into seven parts according to actual needs. Preferably, since different areas in the UI interface have relatively clear functional divisions, the present application can be preferably applied to devices with UI interfaces. In this embodiment, the division method mainly depends on the refresh frequency of each area of ​​the initial screen to be adjusted in the actual application. On the basis of satisfying the refresh frequency in the actual application, the screen can be divided uniformly or non-uniformly according to actual needs. The uniform division includes but is not limited to division into multiple rectangles, polygons, etc.; the non-uniform division includes but is not limited to non-uniform rectangles or polygons, or nested ring structures, etc.

[0064] In some embodiments, the method further comprises:

[0065] Obtaining a mapping relationship between a preset initial pixel sensitivity and a pixel difference;

[0066] The pixel difference corresponding to each pixel point is determined, and the pixel point sensitivity corresponding to each pixel point is determined in the initial pixel point sensitivity based on the mapping relationship.

[0067] Specifically, in this example, there is a preset mapping relationship between the initial pixel sensitivity and the pixel difference. In some preferred embodiments, the value range of the initial pixel sensitivity is usually between 0 and 1, and the pixel difference can be divided into 255 levels, among which the pixel sensitivity corresponding to the 0-20 level can be set to 0.1, the pixel sensitivity corresponding to the 20-50 level can be set to 0.3, the pixel sensitivity corresponding to the 50-125 level can be set to 0.5, and the pixel sensitivity corresponding to the 125 level and above can be set to 1. After determining the mapping relationship between the initial pixel sensitivity and the pixel difference, the corresponding pixel sensitivity is queried in the mapping relationship according to the pixel difference corresponding to each pixel. In this embodiment, the pixel sensitivity can be expressed as B(Tn+1)={B (0,0) ,B (0,1) ,……,B (x,y)}, where the subscript coordinates (x, y) represent the width and height of the region, i.e., the relative coordinates of the pixel in the corresponding region, and Tn+1 represents the Tn+1th moment, i.e., the pixel sensitivity of the region is obtained based on the pixel difference between the Tn+1th moment and the Tnth moment. Similarly, the pixel difference △(Tn+1) of the region can be expressed as △(Tn+1)={△ (0,0) ,△ (0,1) ……,△ (x,y)}, it can be understood that the pixel difference and the pixel sensitivity are in a one-to-one correspondence. By determining the pixel sensitivity corresponding to each pixel in this embodiment, the influence of the system error on the refresh rate can be effectively eliminated, and the user experience can be effectively guaranteed.

[0068] In some embodiments, the method further comprises:

[0069] The change range of the screen area to be adjusted is determined according to the pixel differences and pixel sensitivities corresponding to all the pixels in the screen area to be adjusted.

[0070] Specifically, the change range of the above-mentioned screen area to be adjusted is determined by the change range of the pixel values ​​in the area, and the area change situation includes relevant information about the change range. The calculation method of the change range in this embodiment can be set as: the change range at time Tn+1 P(Tn+1) = B(Tn+1)*△(Tn+1), where B(Tn+1) is the sensitivity of the pixel at time Tn+1, and △(Tn+1) is the difference between the pixel values ​​at time Tn+1 and time Tn. Through the calculation method in this embodiment, the change range of the pixel values ​​in the screen area to be adjusted can be comprehensively quantified, and considering the calculation combined with the pixel sensitivity, the error of the pixel values ​​caused by the influence of external factors can be excluded as much as possible while calculating the change range.

[0071] In some embodiments, the method further comprises:

[0072] Based on the change of the change amplitude in the time dimension, the change rate of the screen area to be adjusted is determined.

[0073] Specifically, in this embodiment, based on the change of the change amplitude in the time dimension, the change rate F(Tn+1)=P(Tn+1) / P(Tn) of the screen area to be adjusted can be calculated, and the area change includes relevant information of the change rate. It can be seen that the change rate F(Tn+1) of the screen area to be adjusted at time Tn+1 is calculated by the change amplitude of the pixel value between time Tn+1 and the previous time Tn. According to the change rate of the screen area to be adjusted in this embodiment, the change rate of the pixel value in the area can be clearly quantified.

[0074] In some embodiments, the method further comprises:

[0075] Obtaining a preset weight adjustment area;

[0076] If it is detected that the change amplitude corresponding to the screen area to be adjusted is less than the minimum value of the weight adjustment area, the refresh weight value is reduced based on the preset minimum value adjustment parameter to obtain the adjusted weight value;

[0077] If it is detected that the change amplitude corresponding to the screen area to be adjusted is greater than the maximum value of the weight adjustment area, the refresh weight value is increased based on the preset maximum value adjustment parameter to obtain the adjusted weight value;

[0078] If it is detected that the change range corresponding to the screen area to be adjusted is within the weight adjustment area, the refresh weight value is kept unchanged.

[0079] Specifically, in this embodiment, the refresh weight value of each area is dynamically adjusted through the detection feedback of each area. In this embodiment, the refresh weight value is dynamically adjusted mainly based on the change amplitude of the pixel value in the area. When the calculated change amplitude of the area is less than the preset minimum value Pumin of the weight adjustment area, it means that the change of the pixel value in the area during this period is small, that is, the refresh weight value of the area can be appropriately reduced at this time to avoid the waste of computer computing power, wherein Pumin can generally be set to 20*the number of pixels in the area. Therefore, when it is detected that the change amplitude in the screen area to be adjusted is less than the minimum value of the weight adjustment area, the refresh weight value of the area is correspondingly reduced. At this time, the adjusted refresh weight value is G=G-g2, wherein G is the refresh weight value of the area, and g2 is a preset adjustment parameter, which can generally be set to 0.5.

[0080] Similarly, when the calculated change amplitude of the area is greater than the preset maximum value Pumax of the weight adjustment area, it means that the pixel value of the area has changed greatly during this period of time. At this time, in order to enable users to obtain the required information faster and improve the user experience, the refresh weight value of the area can be appropriately increased, wherein the Pumax can generally be set to 200*the number of pixels in the area. Therefore, when it is detected that the change amplitude of the screen area to be adjusted is greater than the minimum value in the weight adjustment area, the refresh weight value of the area is correspondingly increased. At this time, the adjusted refresh weight value is G=G+g1, wherein g1 is a preset adjustment parameter, generally set to 0.5. Further, when it is detected that the change amplitude corresponding to the screen area to be adjusted is within the weight adjustment area, it indicates that the refresh weight value of the screen area to be adjusted at the current moment is more reasonable and can be well adapted to the pixel value change amplitude at this time, then the refresh weight value of the area remains unchanged.

[0081] Through this embodiment, the refresh weight value of the area can be dynamically adjusted according to the change amplitude of the pixel values ​​in the area. The value of the pixel points in the area changes in real time. While achieving the technical purpose of optimizing performance, it also avoids system performance problems caused by excessive refresh categories, such as freezes and overheating, thereby ensuring the stability and reliability of system operation.

[0082] In some embodiments, the method further comprises:

[0083] Get the preset frequency value;

[0084] If it is detected that the change frequency corresponding to the screen area to be adjusted is less than the preset frequency value, the adjusted weight value is obtained based on the superposition of the preset first frequency value and the refresh weight value;

[0085] If it is detected that the change frequency corresponding to the screen area to be adjusted is greater than or equal to the preset frequency value, the adjusted weight value is obtained based on the superposition of the preset second frequency value and the refresh weight value.

[0086] Specifically, in this embodiment, the refresh weight value of the area is adjusted by the frequency of change of the pixel value in each area. When it is detected that the change frequency corresponding to the screen area to be adjusted is less than the preset frequency value, it indicates that the frequency of change of the pixel value in the area during this period is small. At this time, in order to save system performance, the refresh weight value of the area can be reduced accordingly to obtain an adjusted weight value G=f2*G, wherein f2 is generally taken as 0.5, and the refresh weight value of the area can be reduced based on f2. Similarly, when it is detected that the change frequency corresponding to the screen area to be adjusted is greater than the preset frequency value, it indicates that the frequency of change of the pixel value in the area during this period is large. At this time, in order to make full use of the CPU performance and achieve the best display effect, the refresh weight value of the area can be increased accordingly to obtain an adjusted weight value G=f1*G, wherein f1 is generally taken as 0.5, and the refresh weight value of the area can be increased based on f1.

[0087] The present application also provides a preferred embodiment of a method for preventing screen sticking. Figure 4 The figure is a flowchart of a method for adjusting screen refresh rate in one embodiment.

[0088] Step S410, the initial screen to be adjusted is divided to obtain a plurality of screen areas to be adjusted. It can be understood that in this embodiment, each initial screen to be adjusted is treated as an independent body, and then the initial screen to be adjusted is divided in advance (which areas have a lower refresh rate and which areas have a higher refresh rate can be divided according to the design draft of the screen interface). In practical applications, the method of dividing the screen area to be adjusted is not limited, such as the initial screen to be adjusted can be divided uniformly or non-uniformly, and the initial screen to be adjusted can also be divided into a nested ring structure, etc.

[0089] Step S420, according to the business functions of each screen area to be adjusted, set a preset refresh rate for each area in advance, and set a corresponding initial refresh weight value for each area. The refresh weight value is used to determine the importance of the corresponding area in the overall frame rate distribution. The weight is set according to factors such as the function of the area, user interaction frequency, and content update frequency. The initial refresh weight value of each area can be set to G1, G2, G3...Gn respectively.

[0090] Step S430, collecting the pixel difference of each pixel point in the screen area to be adjusted in the time dimension, and determining the pixel point sensitivity corresponding to the pixel point according to the pixel difference. In some preferred embodiments, the refresh weight value of each area is obtained, and the detection frequency of the area with a high weight value is high, and vice versa. Collecting the pixel difference of each pixel point in the screen area to be adjusted in the time dimension includes first collecting the pixel point data of the area at time Tn, and D(Tn)={D (0,0) ,D (0,1) ,D (1,0) ...D (x,y)}, where x and y are the width and height of the region, i.e., the resolution of the region. Similarly, at time Tn+1, the pixel data corresponding to the region is also recorded, and D(Tn+1)={D (0,0) ,D (0,1) ,D (1,0) ...D (x,y)}, and then calculate the pixel difference of each pixel at different times. Further, in this embodiment, after calculating the pixel difference of the pixel, the corresponding pixel sensitivity is determined based on the pixel difference, so as to obtain the pixel sensitivity B(Tn+1)={B (0,0) ,B (0,1) ,……,B (x,y) In some preferred embodiments, the setting of pixel sensitivity includes but is not limited to, when the pixel difference is 0-20, the corresponding pixel sensitivity can be set to 0.1, when the pixel difference is 20-50, the corresponding pixel sensitivity can be set to 0.3, when the pixel difference is 50-125, the corresponding pixel sensitivity can be set to 0.5, when the pixel difference is 125 and above, the corresponding pixel sensitivity can be set to 1 or 0.8, etc., thereby effectively reducing the influence of external factors on pixel values ​​by setting the pixel sensitivity.

[0091] Step S440, the pixel difference and pixel sensitivity are combined to determine the change amplitude P and change rate F of the pixel. The above change amplitude and change rate are the change amplitude and change rate of the overall pixel value of the region, the change amplitude P(Tn+1)=B(Tn+1)×△(Tn+1), and the change rate F(Tn+1)=P(Tn+1) / P(Tn) of the region can be calculated by the change amplitude.

[0092] Step S450, dynamically adjust the refresh weight of the entire region according to the change amplitude and change rate of the above-mentioned region, that is, the weight value of the region can be adjusted in two directions according to the change amplitude and change rate. Wherein, when the refresh weight is adjusted according to the change amplitude, if P(Tn+1) is greater than the maximum value of the preset weight adjustment area (which can be set to Pumax), then the refresh weight value is increased based on the preset maximum value adjustment parameter (which can be set to g1), and the adjusted weight value is G=G+g1, conversely, if P(Tn+1) is less than the minimum value of the preset weight adjustment area (which can be set to Pumin), then the refresh weight value is reduced based on the preset minimum value adjustment parameter (which can be set to g2), and the adjusted weight value is G=G-g2, if P(Tn+1) is between the two, then the refresh weight value is kept unchanged. On the basis of adjusting the refresh weight value based on the change amplitude, the change rate is superimposed as a coefficient, that is, if F(Tn+1) is greater than the preset frequency value Fumax, then G=f1×G, where f1 is the preset second frequency value, preferably set to 0.5. Similarly, if F(Tn+1) is less than the preset Fumax, then G=f2×G, where f2 is the preset first frequency value, preferably set to 0.5. At the same time, the refresh weight value is also limited by a maximum value and a minimum value, which can be adjusted according to the performance of the device, that is, the refresh rate after adjustment according to the refresh weight value cannot be greater than the maximum value or less than the minimum value, thereby avoiding the phenomenon that the refresh weight value is too high or too low, resulting in the area not being refreshed.

[0093] Step S460, according to the adjusted weight value of each area, in the page refresh, the refresh rate of each area is adjusted, so that the areas with frequent changes can be refreshed in time, and the areas with slow changes can reduce the refresh, and finally the resources of the embedded platform are reasonably and fully utilized to achieve the best display effect. Further, it can be understood by those skilled in the art that the refresh rate of the screen is the vertical scanning frequency of the display screen, that is, the number of times the screen can be refreshed within a unit time (one unit time is usually one second), and the frame rate of the screen is the static rendering rate generated by the content displayed on the screen per unit time, that is, the refresh rate of the screen determines the upper limit of the final picture, such as a picture with a frame rate of 120 on a display with a refresh rate of 60, and its final display effect is only 60 frames at most. Therefore, the refresh rate of the display screen is optimized in this application, which is also equivalent to optimizing and adjusting the frame rate of the screen.

[0094] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0095] Based on the same inventive concept, the embodiment of the present application also provides a screen refresh rate adjustment device for implementing the screen refresh rate adjustment method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more embodiments of the screen refresh rate adjustment device provided below can refer to the limitations of the screen refresh rate adjustment method above, and will not be repeated here.

[0096] In one embodiment, Figure 5 As shown, a screen refresh rate adjustment device is provided, comprising: an acquisition module 51, a calculation module 52 and a generation module 53, wherein:

[0097] An acquisition module 51 is used to collect pixel differences of each pixel point in the screen area to be adjusted in the time dimension, and determine the pixel point sensitivity corresponding to the pixel point according to the pixel difference value;

[0098] The calculation module 52 is used to traverse all the pixels in the screen area to be adjusted, and determine the area change of the screen area to be adjusted according to the pixel difference and pixel sensitivity corresponding to the pixel;

[0099] The generating module 53 is used to adjust the refresh weight value preset in the screen area to be adjusted according to the area change situation, and determine the target refresh rate of the screen area to be adjusted based on the adjusted weight value.

[0100] Specifically, the acquisition module 51 collects the pixel difference of each pixel in the screen area to be adjusted in the time dimension, and determines the pixel sensitivity according to the pixel difference, and then sends the pixel difference and the pixel sensitivity to the calculation module 52, the calculation module 52 traverses all the pixels in the screen area to be adjusted, and determines the regional change of the screen area to be adjusted according to the pixel difference and the pixel sensitivity corresponding to the pixel; then the generation module 53 adjusts the refresh weight value preset for the screen area to be adjusted based on the regional change, and determines the target refresh rate of the screen area to be adjusted based on the adjusted weight value. This embodiment can dynamically adjust the refresh frequency of the area, effectively utilize the CPU performance, and ensure that the screen interface can be displayed at the best frame rate in each area, thereby improving the overall user experience, and further, this embodiment can be implemented at the software level without adding additional hardware, and is suitable for different types of embedded devices and UI interfaces. It can flexibly adjust the area division and weight setting according to specific application scenarios and requirements to achieve the purpose of performance optimization.

[0101] Each module in the above screen refresh rate adjustment device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0102] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data related to screen refresh rate adjustment. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a screen refresh rate adjustment method is implemented.

[0103] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0104] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0105] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0106] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0107] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A screen refresh rate adjustment method, characterized in that: The method comprises: Collecting pixel differences of each pixel point in the screen area to be adjusted in the time dimension, and determining the pixel point sensitivity corresponding to the pixel point according to the pixel difference value; Traversing all the pixel points in the screen area to be adjusted, and determining the area change of the screen area to be adjusted according to the pixel difference values ​​corresponding to the pixel points and the pixel point sensitivities; The refresh weight value preset for the screen area to be adjusted is adjusted according to the area change, and the target refresh rate of the screen area to be adjusted is determined based on the adjusted weight value.

2. The method according to claim 1, characterized in that Before collecting the change information of each pixel point in the screen area to be adjusted in the time dimension, the method further includes: An initial screen to be adjusted is determined, and based on a preset division scheme, the initial screen to be adjusted is divided to obtain at least one screen area to be adjusted.

3. The method according to claim 2, characterized in that The method further comprises: Uniformly dividing the initial screen to be adjusted based on a preset division scheme to obtain the screen area to be adjusted; Or, the initial screen to be adjusted is non-uniformly divided based on a preset division scheme to obtain the screen area to be adjusted.

4. The method according to claim 1, characterized in that: The step of determining the pixel point sensitivity corresponding to the pixel point according to the pixel difference includes: Obtaining a mapping relationship between a preset initial pixel point sensitivity and the pixel difference; The pixel difference corresponding to each pixel point is determined, and the pixel point sensitivity corresponding to each pixel point is determined in the initial pixel point sensitivity based on the mapping relationship.

5. The method according to claim 1, characterized in that: The determining the area change of the screen area to be adjusted according to the pixel difference corresponding to the pixel point and the pixel point sensitivity includes: The change range of the screen area to be adjusted is determined according to the pixel differences and the pixel sensitivities corresponding to all the pixels in the screen area to be adjusted, wherein the area change condition includes the change range.

6. The method according to claim 5, characterized in that The determining the area change of the screen area to be adjusted according to the pixel difference corresponding to the pixel point and the pixel point sensitivity also includes: Based on the change of the change amplitude in the time dimension, the change rate of the screen area to be adjusted is determined, wherein the area change condition includes the change rate.

7. The method according to claim 5, characterized in that The adjusting the preset refresh weight value of the screen area to be adjusted according to the area change situation includes: Obtaining a preset weight adjustment area; If it is detected that the change amplitude corresponding to the screen area to be adjusted is less than the minimum value of the weight adjustment area, the refresh weight value is reduced based on a preset minimum value adjustment parameter to obtain an adjusted weight value; If it is detected that the change amplitude corresponding to the screen area to be adjusted is greater than the maximum value of the weight adjustment area, the refresh weight value is increased based on a preset maximum value adjustment parameter to obtain an adjusted weight value; If it is detected that the change amplitude corresponding to the screen area to be adjusted is within the weight adjustment area, the refresh weight value is kept unchanged.

8. The method according to claim 6, characterized in that The adjusting the preset refresh weight value of the screen area to be adjusted according to the area change situation includes: Get the preset frequency value; If it is detected that the change rate corresponding to the screen area to be adjusted is less than the preset frequency value, the adjusted weight value is obtained based on the superposition of the preset first frequency value and the refresh weight value; If it is detected that the change frequency corresponding to the screen area to be adjusted is greater than or equal to the preset frequency value, the adjusted weight value is obtained based on the superposition of the preset second frequency value and the refresh weight value.

9. A screen refresh rate adjustment device, characterized in that: The device comprises: An acquisition module, used for collecting pixel difference values ​​of each pixel point in the screen area to be adjusted in the time dimension, and determining the pixel point sensitivity corresponding to the pixel point according to the pixel difference value; A calculation module, used for traversing all the pixel points in the screen area to be adjusted, and determining the area change of the screen area to be adjusted according to the pixel difference values ​​corresponding to the pixel points and the pixel point sensitivities; A generating module is used to adjust the refresh weight value preset for the screen area to be adjusted according to the area change, and determine the target refresh rate of the screen area to be adjusted based on the adjusted weight value.

10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Regulating circuit and regulating method capable of reducing power consumption of screen

    CN102592555A

  • Method and device for adjusting picture of MINI LED backlight television

    CN110473504A

  • Variable refresh rate video capture and playback

    US20180061364A1

  • Techniques for determining an adjustment for a visual output

    US20180286353A1

  • Driving method and driving system of display panel

    US20220223093A1

Cited By

  • Information processing apparatus and control method

    JP2026080408A

  • Information processing device and control method

    JP7844589B1