Frame rate control method and apparatus for a display device

CN122593726APending Publication Date: 2026-08-18BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510180376.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-18
Publication Date
2026-08-18

AI Technical Summary

Technical Problem

反之,当帧率不稳定时,眼睛需要不断适应画面的变化速度,可能会导致眼睛疲劳,进而影响用户的观看体验

Benefits of technology

[0054] The frame rate control method for a display device provided in this application first obtains the actual frame rate and the adapted frame rate of the display device in a first time period. Then, based on the actual frame rate and the adapted frame rate of the display device in the first time period, it obtains the cumulative frame rate error of the display device in the first time period. Next, based on the cumulative frame rate error and a preset adjustment coefficient, it obtains the frame rate control rate. Finally, in a second time period after the first time period, it controls the frame rate of the display device according to the frame rate control rate. Since the frame rate control rate in this application embodiment is obtained based on the cumulative frame rate error between the actual frame rate of the display device in the first time period and the adapted frame rate corresponding to the performance score, the frame rate control method for a display device provided in this application embodiment can control the frame rate of the display device based on the performance of the display device. Furthermore, since the frame rate control rate is determined jointly based on the cumulative frame rate error and the preset adjustment coefficient, the frame rate control method for a display device provided in this application embodiment can also avoid sudden changes in the frame rate of the display device. In summary, the frame rate control method for a display device provided in this application embodiment can control the frame rate of the display device based on its performance while avoiding sudden changes in the frame rate of the display device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122593726A_ABST
    Figure CN122593726A_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a frame rate control method and device of a display device, and relates to the technical field of frame rate control. The method comprises the following steps: acquiring an actual frame rate and an adaptive frame rate of a display device in a first period, wherein the adaptive frame rate is a frame rate corresponding to a performance score of the display device; acquiring a cumulative frame rate error of the display device in the first period according to the actual frame rate and the adaptive frame rate of the display device in the first period; acquiring a frame rate control rate according to the cumulative frame rate error and a preset adjustment coefficient; and controlling the frame rate of the display device according to the frame rate control rate in a second period after the first period. The embodiment of the present application is used for controlling the frame rate of the display device based on the performance of the display device while avoiding the frame rate mutation of the display device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of frame rate control technology, and in particular to a frame rate control method and apparatus for a display device. Background Technology

[0002] The frame rate of a display device refers to the number of times the user interface displayed on the device updates per unit of time, usually measured in frames per second (FPS). A higher frame rate means more frequent interface updates, providing smoother animations and interactive responses, resulting in a better visual experience for the user. However, a higher frame rate also requires more system resources to support it.

[0003] In some scenarios, a stable frame rate can provide a better user experience than a sudden but slightly higher frame rate. For example, in video playback, a stable frame rate allows users to smoothly enjoy the plot development, exciting scenes, and nuanced performances, avoiding stuttering that disrupts the immersive experience. Conversely, when the frame rate is unstable, the eyes need to constantly adapt to the changing speed of the image, which may lead to eye fatigue and negatively impact the user's viewing experience. Therefore, how to adjust the frame rate of display devices based on performance changes while avoiding sudden frame rate fluctuations is a pressing issue that needs to be addressed. Summary of the Invention

[0004] In view of this, embodiments of this application provide a frame rate control method and apparatus for a display device, which is used to control the frame rate of the display device based on the performance of the display device while avoiding sudden changes in the frame rate of the display device.

[0005] To achieve the above objectives, the technical solutions provided in this application are as follows:

[0006] In a first aspect, embodiments of this application provide a frame rate control method for a display device, including:

[0007] The actual frame rate and the adapted frame rate of the display device are obtained in the first time period, wherein the adapted frame rate is the frame rate corresponding to the performance score of the display device;

[0008] Based on the actual frame rate and the adapted frame rate of the display device in the first time period, the cumulative frame rate error of the display device in the first time period is obtained;

[0009] The frame rate adjustment rate is obtained based on the accumulated frame rate error and the preset adjustment coefficient.

[0010] During the second time period following the first time period, the frame rate of the display device is adjusted according to the frame rate adjustment rate.

[0011] As an optional implementation of this application, the end point of the first time period is the sampling time of the current sampling period, and the length of the first time period is less than the length of the sampling period. Obtaining the actual frame rate of the display device within the first time period includes:

[0012] A first actual frame rate and a second actual frame rate are obtained, wherein the first actual frame rate is the frame rate of the display device obtained in the current sampling period, and the second actual frame rate is the frame rate of the display device obtained in the previous sampling period;

[0013] Construct a first linear equation based on the first actual frame rate and the second actual frame rate;

[0014] The actual frame rate of the display device during the first time period is determined based on the first linear equation.

[0015] As an optional implementation of this application, the end point of the first time period is the sampling time of the current sampling period, and the length of the first time period is less than the length of the sampling period. Obtaining the adapted frame rate of the display device within the first time period includes:

[0016] A first performance score and a second performance score are obtained. The first performance score is the performance score of the display device determined based on the performance indicators and frame rate of the display device obtained in the current sampling period. The second performance score is the performance score of the display device determined based on the performance indicators and frame rate of the display device obtained in the previous sampling period.

[0017] Obtain the first adapted frame rate corresponding to the first performance score and the second adapted frame rate corresponding to the second performance score, respectively;

[0018] Construct a second linear equation based on the first adapted frame rate and the second adapted frame rate;

[0019] The adaptive frame rate of the display device during the first time period is determined according to the second linear equation.

[0020] As an optional implementation of this application, the step of obtaining the first adapted frame rate corresponding to the first performance score and the second adapted frame rate corresponding to the second performance score includes:

[0021] Determine the first frame rate value space of the first performance score and the second frame rate value space of the second performance score;

[0022] Obtain the first probability of each frame rate in the first frame rate value space. The first probability of any frame rate is the probability that the frame rate of the display device is that the performance score is the first performance score.

[0023] The frame rate with the highest probability in the first frame rate value space is determined as the first adapted frame rate;

[0024] Obtain the second probability of each frame rate in the second frame rate value space. The second probability of any frame rate is the probability that the frame rate of the display device is that the performance score is the second performance score.

[0025] The frame rate with the highest probability in the second frame rate value space is determined as the second adapted frame rate.

[0026] As an optional implementation of this application, the length of the second time period is less than or equal to the sampling period of the actual frame rate.

[0027] As an optional implementation of this application, the method further includes:

[0028] The performance score of the display device obtained in the next sampling period is predicted to obtain a predicted performance score;

[0029] Obtain the third adapted frame rate corresponding to the predicted performance score;

[0030] The frame rate of the display device is adjusted according to the third adapted frame rate.

[0031] As an optional implementation of this application, the step of predicting the performance score of the display device obtained in the next sampling period to obtain a predicted performance score includes:

[0032] Obtain the transition matrix corresponding to each performance index of the display device. The element in the i-th row and j-th column of the transition matrix corresponding to any performance index is the probability that the performance index is transferred from the i-th interval to the j-th interval.

[0033] Based on the transition matrix corresponding to each performance index of the display device and the performance index of the display device obtained in the current acquisition cycle, predict the performance index of the display device to be obtained in the next acquisition cycle.

[0034] The predicted performance score is obtained based on the performance metrics of the display device obtained in the predicted next adoption cycle.

[0035] As an optional implementation of this application, the step of predicting the performance score of the display device obtained in the next sampling period to obtain a predicted performance score includes:

[0036] Obtain the performance scores of the display device obtained in the most recent preset number of cycles;

[0037] The performance scores of the display device obtained in the most recent preset number of adoption periods are weighted and summed according to the weight of the most recent preset number of adoption periods in order to predict the predicted performance score.

[0038] Secondly, this application provides a frame rate control device for a display device, comprising:

[0039] A sampling unit is used to obtain the actual frame rate and the adapted frame rate of the display device in the first time period, wherein the adapted frame rate is the frame rate corresponding to the performance score of the display device;

[0040] The processing unit is configured to obtain the cumulative frame rate error of the display device during the first time period based on the actual frame rate and the adapted frame rate of the display device during the first time period.

[0041] The acquisition unit is used to acquire the frame rate adjustment rate based on the accumulated frame rate error and the preset adjustment coefficient.

[0042] The control unit is used to control the frame rate of the display device according to the frame rate control rate during a second time period after the first time period.

[0043] As an optional implementation of this application, the end point of the first time period is the sampling time of the current sampling period, and the length of the first time period is less than the length of the sampling period. The sampling unit is specifically used to obtain a first actual frame rate and a second actual frame rate. The first actual frame rate is the frame rate of the display device obtained in the current sampling period, and the second actual frame rate is the frame rate of the display device obtained in the previous sampling period. A first linear equation is constructed based on the first actual frame rate and the second actual frame rate. The actual frame rate of the display device in the first time period is determined based on the first linear equation.

[0044] As an optional implementation of this application, the end point of the first time period is the sampling time of the current sampling period, and the length of the first time period is less than the length of the sampling period. The sampling unit is specifically used to obtain a first performance score and a second performance score. The first performance score is the performance score of the display device determined based on the performance indicators and frame rate of the display device obtained in the current sampling period, and the second performance score is the performance score of the display device determined based on the performance indicators and frame rate of the display device obtained in the previous sampling period. The unit also obtains a first adapted frame rate corresponding to the first performance score and a second adapted frame rate corresponding to the second performance score, respectively; constructs a second linear equation based on the first adapted frame rate and the second adapted frame rate; and determines the adapted frame rate of the display device in the first time period based on the second linear equation.

[0045] As an optional implementation of this application, the sampling unit is specifically used to determine a first frame rate value space for the first performance score and a second frame rate value space for the second performance score; obtain a first probability for each frame rate in the first frame rate value space, wherein the first probability of any frame rate is the probability that the display device's frame rate is that frame rate when the performance score is the first performance score; determine the frame rate with the highest first probability in the first frame rate value space as the first adapted frame rate; obtain a second probability for each frame rate in the second frame rate value space, wherein the second probability of any frame rate is the probability that the display device's frame rate is that frame rate when the performance score is the second performance score; and determine the frame rate with the highest second probability in the second frame rate value space as the second adapted frame rate.

[0046] As an optional implementation of this application, the length of the second time period is less than or equal to the sampling period of the actual frame rate.

[0047] As an optional implementation of this application, the processing unit is further configured to predict the performance score of the display device obtained in the next sampling period to obtain a predicted performance score; and obtain the third adapted frame rate corresponding to the predicted performance score.

[0048] The control unit is also used to control the frame rate of the display device according to the third adapted frame rate.

[0049] As an optional implementation of this application, the processing unit is specifically used to obtain the transition matrix corresponding to each performance index of the display device, wherein the element in the i-th row and j-th column of the transition matrix corresponding to any performance index is the probability that the performance index transitions from the i-th interval to the j-th interval; predict the performance index of the display device to be obtained in the next acquisition cycle based on the transition matrix corresponding to each performance index of the display device and the performance index of the display device obtained in the current acquisition cycle; and obtain the predicted performance score based on the predicted performance index of the display device to be obtained in the next acquisition cycle.

[0050] As an optional implementation of this application, the processing unit is specifically used to obtain the performance score of the display device obtained in the most recent preset number of adoption periods; and to perform a weighted summation of the performance scores of the display device obtained in the most recent preset number of adoption periods according to the weight of the most recent preset number of adoption periods, so as to predict the predicted performance score.

[0051] Thirdly, embodiments of this application provide an electronic device, including: a memory and a processor, wherein the memory is used to store a computer program and the processor is used to cause the electronic device to implement the frame rate control method of the display device described in any of the above embodiments when executing the computer program.

[0052] Fourthly, embodiments of this application provide a computer-readable storage medium that, when executed by a computing device, causes the computing device to implement the frame rate control method for a display device as described in any of the above embodiments.

[0053] Fifthly, embodiments of this application provide a computer program product that, when run on a computer, enables the computer to implement the frame rate control method for the display device described in any of the above embodiments.

[0054] The frame rate control method for a display device provided in this application first obtains the actual frame rate and the adapted frame rate of the display device in a first time period. Then, based on the actual frame rate and the adapted frame rate of the display device in the first time period, it obtains the cumulative frame rate error of the display device in the first time period. Next, based on the cumulative frame rate error and a preset adjustment coefficient, it obtains the frame rate control rate. Finally, in a second time period after the first time period, it controls the frame rate of the display device according to the frame rate control rate. Since the frame rate control rate in this application embodiment is obtained based on the cumulative frame rate error between the actual frame rate of the display device in the first time period and the adapted frame rate corresponding to the performance score, the frame rate control method for a display device provided in this application embodiment can control the frame rate of the display device based on the performance of the display device. Furthermore, since the frame rate control rate is determined jointly based on the cumulative frame rate error and the preset adjustment coefficient, the frame rate control method for a display device provided in this application embodiment can also avoid sudden changes in the frame rate of the display device. In summary, the frame rate control method for a display device provided in this application embodiment can control the frame rate of the display device based on its performance while avoiding sudden changes in the frame rate of the display device. Attached Figure Description

[0055] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings referenced in the description of the embodiments or the prior art will be briefly introduced below. Obviously, those skilled in the art can obtain other drawings based on these drawings without any creative effort.

[0056] Figure 1 This is one of the flowcharts of the frame rate control method for a display device provided in the embodiments of this application;

[0057] Figure 2 The graphs showing the changes in actual frame rate and adapted frame rate are provided for embodiments of this application.

[0058] Figure 3The second flowchart of the frame rate control method for the display device provided in this application embodiment;

[0059] Figure 4 The third flowchart of the frame rate control method for a display device provided in this application embodiment;

[0060] Figure 5 A schematic diagram of the frame rate control device for a display device provided in an embodiment of this application;

[0061] Figure 6 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0062] To better understand the above-mentioned objectives, features, and advantages of this application, the solution of this application will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.

[0063] Many specific details are set forth in the following description in order to provide a full understanding of this application, but this application may also be implemented in other ways different from those described herein. Obviously, the embodiments in the specification are only some embodiments of this application, and not all embodiments.

[0064] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner. Furthermore, in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.

[0065] This application provides a frame rate control method for a display device. The execution entity of this frame rate control method can be a display device such as a mobile phone, personal computer (PC), tablet computer, wearable device, or in-vehicle device, or a frame rate control device integrated into the display device. (Refer to...) Figure 1 As shown, the frame rate control method of this display device includes the following steps S11 to S14:

[0066] S11. Obtain the actual frame rate and adapted frame rate of the display device in the first time period.

[0067] The adapted frame rate is the frame rate corresponding to the performance score of the display device.

[0068] In some embodiments, the end point of the first time period is the sampling moment of the current sampling period, and the length of the first time period is less than the length of the sampling period. Step S11 above, obtaining the actual frame rate of the display device within the first time period, includes the following steps 1 to 3:

[0069] Step 1: Obtain the first actual frame rate and the second actual frame rate.

[0070] Wherein, the first actual frame rate is the frame rate of the display device obtained in the current sampling period, and the second actual frame rate is the frame rate of the display device obtained in the previous sampling period.

[0071] Step 2: Construct a first linear equation based on the first actual frame rate and the second actual frame rate.

[0072] For example, the first actual frame rate is f 实际1 The second actual frame rate is f 实际2 The first linear equation constructed based on the first actual frame rate and the second actual frame rate is:

[0073]

[0074] Where t1 is the sampling time of the current sampling period, and t2 is the sampling time of the previous sampling period.

[0075] Step 3: Determine the actual frame rate of the display device during the first time period based on the first linear equation.

[0076] For example, when the first time period is [t3,t2], substituting [t3,t2] into the first linear equation can obtain the actual frame rate at any time within the first time period.

[0077] In some embodiments, the end point of the first time period is the sampling moment of the current sampling period, and the length of the first time period is less than the length of the sampling period. The step S11 above, obtaining the adapted frame rate of the display device within the first time period, includes the following steps a to d:

[0078] Step a: Obtain the first performance score and the second performance score.

[0079] Wherein, the first performance score is the performance score of the display device determined based on the performance indicators and frame rate of the display device obtained in the current sampling period, and the second performance score is the performance score of the display device determined based on the performance indicators and frame rate of the display device obtained in the previous sampling period.

[0080] For example, the performance indicators of a display device may include one or more of the following: the startup data of the display device, the memory data of the display device, the CPU data of the display device, the battery level of the display device, whether the display device is charging, and whether the display device is connected to a wireless network.

[0081] In some embodiments, obtaining the first performance score and the second performance score may include: using the performance indicators of the display device obtained in the current sampling period and the performance indicators of the display device obtained in the previous sampling period, combined with the model score and performance-related profile features in the cloud, and calculating a score that reflects the current real-time performance status of the display device as the first performance score and the second performance score through processing and multi-level weighting.

[0082] Step b: Obtain the first adapted frame rate corresponding to the first performance score and the second adapted frame rate corresponding to the second performance score, respectively.

[0083] The performance score is a function of frame rate and performance metrics as dependent variables. Therefore, let the performance score be runtimescore, and the performance metrics be x1, x2, x3, ..., x n If the frame rate is: framerate, then the performance score can be expressed as the following function:

[0084] runtimescore=f(framerate,x1,x2,x3,…,x n )

[0085] For example,

[0086] runtimescore = α * Score 实时得分 +(1-α)Score 静态得分

[0087] Score 实时得分 =Score 启动 *a+Score 帧率 *b+Score 内存 *c + ... + Score 状态 *n

[0088] As shown in the above formula, the frame rate is also a function with performance score as a parameter, which can be expressed as follows:

[0089] framerate = g(runtimescore)

[0090] Therefore, the first adapted frame rate corresponding to the first performance score and the second adapted frame rate corresponding to the second performance score can be obtained respectively.

[0091] Step c: Construct a second linear equation based on the first adapted frame rate and the second adapted frame rate.

[0092] For example, the first adaptation frame rate is f 适配1 The second adapted frame rate is f 适配2 The second linear equation constructed based on the first adapted frame rate and the second adapted frame rate is:

[0093]

[0094] Where t1 is the sampling time of the current sampling period, and t2 is the sampling time of the previous sampling period.

[0095] Step d: Determine the adaptive frame rate of the display device in the first time period according to the second linear equation.

[0096] Similarly, when the first time period is [t3,t1], substituting [t3,t1] into the second straight line equation can obtain the adapted frame rate at any time within the second time period.

[0097] S12. Based on the actual frame rate and the adapted frame rate of the display device in the first time period, obtain the cumulative frame rate error of the display device in the first time period.

[0098] For example, refer to Figure 2 As shown, Figure 2 This is a graph showing the actual frame rate and the adapted frame rate of the display device, acquired periodically at preset intervals. For example... Figure 2 As shown in curve 21 (actual frame rate) and curve 22 (adapted frame rate), there is an error between the actual and adapted frame rates, and the magnitude of this error varies at different times. It should be noted that... Figure 2 The actual frame rate is always greater than the adapted frame rate, but the embodiments of this application are not limited to this. In practice, the adapted frame rate may be greater than the actual frame rate, or it may be smaller than the actual frame rate, or it may be equal to the actual frame rate.

[0099] Let e(t) denote the error between the actual frame rate and the adapted frame rate, t3 denote the start time of the first time period, and t1 denote the end time of the first time period. Then, the cumulative frame rate error of the display device in the first time period can be expressed as:

[0100]

[0101] S13. Obtain the frame rate adjustment rate based on the accumulated frame rate error and the preset adjustment coefficient.

[0102] In some embodiments, the preset adjustment coefficient is greater than 0 and less than 1.

[0103] In some embodiments, obtaining the frame rate adjustment rate based on the accumulated frame rate error and a preset adjustment coefficient includes:

[0104] The product of the accumulated frame rate error and the preset adjustment coefficient is calculated to obtain the frame rate adjustment rate. That is,

[0105]

[0106] Among them, C framerate K is the frame rate adjustment rate, and K is the preset adjustment coefficient.

[0107] It should be noted that the embodiments of this application do not limit the specific value of the preset adjustment coefficient. When the value of the preset adjustment coefficient is set to be larger, the frame rate adjustment rate is larger, and the actual frame rate can approach the adapted frame rate in a shorter time, but the frame rate of the display device changes faster. Conversely, when the value of the preset adjustment coefficient is set to be smaller, the frame rate adjustment rate is smaller, and the actual frame rate takes longer to approach the adapted frame rate, but the frame rate of the display device is more stable. Therefore, in actual use, the preset adjustment coefficient can be set according to the requirements of frame rate stability.

[0108] S14. During the second time period following the first time period, the frame rate of the display device is adjusted according to the frame rate adjustment rate.

[0109] In some embodiments, adjusting the frame rate of the display device according to the frame rate adjustment rate includes:

[0110] The target frame rate is calculated based on the frame rate adjustment rate and the current actual frame rate, and the frame rate of the display device is adjusted to the target frame rate.

[0111] The frame rate adjustment rate is expressed as C. framerate The current actual frame rate is represented as T. current Then the target frame rate T framerate The formula for calculation is:

[0112]

[0113] The frame rate control method for a display device provided in this application first obtains the actual frame rate and the adapted frame rate of the display device in a first time period. Then, based on the actual frame rate and the adapted frame rate of the display device in the first time period, it obtains the cumulative frame rate error of the display device in the first time period. Next, based on the cumulative frame rate error and a preset adjustment coefficient, it obtains the frame rate control rate. Finally, in a second time period after the first time period, it controls the frame rate of the display device according to the frame rate control rate. Since the frame rate control rate in this application embodiment is obtained based on the cumulative frame rate error between the actual frame rate of the display device in the first time period and the adapted frame rate corresponding to the performance score, the frame rate control method for a display device provided in this application embodiment can control the frame rate of the display device based on the performance of the display device. Furthermore, since the frame rate control rate is determined jointly based on the cumulative frame rate error and the preset adjustment coefficient, the frame rate control method for a display device provided in this application embodiment can also avoid sudden changes in the frame rate of the display device. In summary, the frame rate control method for a display device provided in this application embodiment can control the frame rate of the display device based on its performance while avoiding sudden changes in the frame rate of the display device.

[0114] As an extension and refinement of the above embodiments, this application provides another frame rate control method for a display device, referring to... Figure 3 As shown, the frame rate control method for this display device also includes the following steps:

[0115] S301, Obtain the first actual frame rate and the second actual frame rate.

[0116] Wherein, the first actual frame rate is the frame rate of the display device obtained in the current sampling period, and the second actual frame rate is the frame rate of the display device obtained in the previous sampling period.

[0117] That is, to obtain the frame rate of the display device obtained from the current sampling period and the frame rate of the display device obtained from the previous sampling period.

[0118] S302. Construct a first linear equation based on the first actual frame rate and the second actual frame rate.

[0119] S303. Determine the actual frame rate of the display device in the first time period based on the first linear equation.

[0120] S304, obtain the first performance score and the second performance score.

[0121] Wherein, the first performance score is the performance score of the display device determined based on the performance indicators and frame rate of the display device obtained in the current sampling period, and the second performance score is the performance score of the display device determined based on the performance indicators and frame rate of the display device obtained in the previous sampling period.

[0122] S305. Obtain the first adapted frame rate corresponding to the first performance score and the second adapted frame rate corresponding to the second performance score, respectively.

[0123] In some embodiments, obtaining the first adapted frame rate corresponding to the first performance score and the second adapted frame rate corresponding to the second performance score respectively includes step ⑤ of step ①:

[0124] Step ①: Determine the first frame rate value space of the first performance score and the second frame rate value space of the second performance score.

[0125] In some embodiments, statistical analysis can be performed on all collected performance metrics and frame rates of terminal devices to obtain a performance score corresponding to each sample, thereby obtaining a series of performance scores. These performance scores can constitute a performance score value space. For each performance score in the performance score value space, the frame rate value when the performance score is that value is statistically calculated. These frame rate values ​​constitute the frame rate value space of that performance score. Based on the frame rate value spaces of each performance score in the performance score value space, a mapping relationship between each performance score and the frame rate value space can be constructed. By looking up this mapping relationship based on the first performance score and the second performance score, the first frame rate value space of the first performance score and the second frame rate value space of the second performance score can be obtained.

[0126] Step 2: Obtain the first probability of each frame rate in the first frame rate value space.

[0127] Wherein, the first probability of any frame rate is the probability that the frame rate of the display device is that when the performance score is the first performance score.

[0128] In some embodiments, the first probability of each frame rate in the first frame rate value space can be obtained by the Naive Leaf Bayes method.

[0129] When the performance score is the first performance score V1, the display device's frame rate is the frame rate f in the first frame rate value space. i The probability can be calculated using the following formula:

[0130]

[0131] Wherein, P(f i |V1) represents the first performance score, V1, when the display device's frame rate is f. i The probability (first probability), P(f) i ) represents the prior probability of the frame rate, specifically, the frame rate is f. iThe ratio of the number of samples to the total number of samples, where P(x1|V1) is the frame rate f. i The conditional probabilities of each performance index are given below. P(V1) is the prior probability of the performance score, specifically the ratio of the number of samples with a performance score of V1 to the total number of samples.

[0132] Step 3: Determine the frame rate with the highest probability in the first frame rate value space as the first adapted frame rate.

[0133] That is, P(f) will be calculated for each frame rate in the first frame rate value space. i |V1), and compare them, P(f j If |V1) is the maximum value, then f j It was determined to be the first compatible frame rate.

[0134] Step 4: Obtain the second probability of each frame rate in the second frame rate value space.

[0135] The second probability for any frame rate is the probability that the display device's frame rate is that when the performance score is the second performance score.

[0136] Similarly, the second probability of each frame rate in the second frame rate value space can be obtained using the Naive Leaf Bayes method. The implementation method for obtaining the second probability of each frame rate in the second frame rate value space using the Naive Leaf Bayes method is similar to the implementation method for obtaining the first probability of each frame rate in the first frame rate value space using the Naive Leaf Bayes method. To avoid redundancy, it will not be repeated here.

[0137] Step 5: Determine the frame rate with the highest probability in the second frame rate value space as the second adapted frame rate.

[0138] S306. Construct a second linear equation based on the first adapted frame rate and the second adapted frame rate.

[0139] S307. Determine the adaptive frame rate of the display device in the first time period according to the second linear equation.

[0140] S308. Based on the actual frame rate and the adapted frame rate of the display device in the first time period, obtain the cumulative frame rate error of the display device in the first time period.

[0141] In some embodiments, the length of the first time period is less than 1 / 2 of a sampling period.

[0142] In some embodiments, the length of the first time period is greater than 2 seconds.

[0143] S309. Obtain the frame rate adjustment rate based on the accumulated frame rate error and the preset adjustment coefficient.

[0144] S310. During the second time period following the first time period, the frame rate of the display device is adjusted according to the frame rate adjustment rate.

[0145] In some embodiments, the length of the second time period is less than or equal to the sampling period of the actual frame rate. That is, the frame rate of the display device is adjusted by the frame rate control rate during the first half of each sampling period.

[0146] exist Figure 1 Based on the frame rate control method of the display device shown, when the length of the second time period is less than or equal to the sampling period of the actual frame rate, refer to Figure 4 As shown, the frame rate control method for a display device provided in this application embodiment further includes the following steps:

[0147] S401. Predict the performance score of the display device obtained in the next sampling period to obtain a predicted performance score.

[0148] In some embodiments, the performance score of the display device obtained in the next sampling period is predicted to obtain a predicted performance score, including the following steps I to III:

[0149] Step I: Obtain the transition matrix corresponding to each performance index of the display device.

[0150] In this context, the element in the i-th row and j-th column of the transition matrix corresponding to any performance index represents the probability that the performance index will transition from the i-th interval to the j-th interval.

[0151] In some embodiments, for each performance indicator, the value range of the performance indicator is divided into a preset number of value intervals, and the transition probability between each value interval is obtained based on the statistical results of the overall data, and a transition matrix is ​​generated from the transition probability between each value interval.

[0152] In some embodiments, performance indicators can be clustered using the K-means clustering method, and the range of values ​​for the performance indicators can be divided into K value intervals based on the clustering results.

[0153] That is, K points are randomly selected from the dataset as initial cluster centers. Then, for each data point in the dataset, the distance from it to the K cluster centers is calculated, and it is assigned to the cluster containing the nearest cluster center. For each cluster, the mean of all data points in the cluster is calculated as the new cluster center. This process is repeated for each data point in the dataset, calculating its distance to the K cluster centers, assigning it to the cluster containing the nearest cluster center, and calculating the mean of all data points in the cluster as the new cluster center, until the preset number of iterations is reached or the clustering result no longer changes.

[0154] For example, for the performance metric memory usage, the memory usage range can be divided into 5 intervals (interval 1, interval 2, interval 3, interval 4, and interval 5), and the following transition matrix can be generated:

[0155]

[0156] The element in the i-th row and j-th column represents the probability that memory usage will shift from interval i to interval j. For example: P 11 P represents the probability that the memory usage is currently in the interval 1 and will remain in the interval 1 in the next sampling period. 23 This indicates the probability that the current memory usage is in interval 2 and the next sampling period is in interval 3.

[0157] Step II: Based on the transition matrix corresponding to each performance index of the display device and the performance index of the display device obtained in the current acquisition cycle, predict the performance index of the display device to be obtained in the next acquisition cycle.

[0158] As shown in the example above, if the memory usage rate obtained in the current period belongs to interval 2, then compare P. 21 P 22 P 23 P 24 P 25 The size relationship, if P 23 For P 21 P 22 P 23 P 24 P 25 If the maximum value in the range is found, then the memory usage rate predicted for the next cycle will fall within the range of 3.

[0159] Step III: Obtain the predicted performance score based on the performance indicators of the display device obtained in the predicted next adoption cycle.

[0160] The method for obtaining the predicted performance score based on the performance indicators of the display device obtained in the predicted next adoption cycle can be the same as the method for obtaining the first performance score based on the performance indicators of the display device obtained in the current cycle. To avoid redundancy, it will not be repeated here.

[0161] In other implementations, the performance score of the display device acquired in the next sampling period is predicted to obtain a predicted performance score, including the following steps (i) and (ii):

[0162] Step (1): Obtain the performance scores of the display device obtained in the most recent preset number of cycles.

[0163] Step (2): The performance scores of the display device obtained in the most recent preset number of adoption periods are weighted and summed according to the weight of the most recent preset number of adoption periods to predict the predicted performance score.

[0164] In some embodiments, the weight of the period is negatively correlated with the distance from the period to the current time.

[0165] For example, when the preset quantity is 2, the formula for calculating the predicted performance score can be:

[0166] S t =β*S t-2 +(1-β)S t-1

[0167] Among them, S t S is used to score the predicted performance. t-1 S is the performance score obtained for the current sampling period. t-2 This is the performance score obtained from the previous sampling period of the current sampling period.

[0168] For example, when the preset quantity is 3, the formula for calculating the predicted performance score can be:

[0169] S t =β*S t-3 +γ*S t-2 +(1-β-γ)S t-1

[0170] Among them, S t S is used to score the predicted performance. t-1 S is the performance score obtained for the current sampling period. t-2 S is the performance score obtained from the previous sampling period of the current sampling period. t-3 The performance score is obtained from the previous two sampling periods of the current sampling period.

[0171] For example, when the preset quantity is 5, the formula for calculating the predicted performance score can be:

[0172] S t =δ*y t +(1-δ)S t-1 =δ*[(S t-5 +S t-4 +S t-3 +S t-2 ) / 4]+(1-δ)S t-1

[0173] Among them, S t S is used to score the predicted performance. t-1 S is the performance score obtained for the current sampling period.t-2 S is the performance score obtained from the previous sampling period of the current sampling period. t-3 S is the performance score obtained from the previous two sampling periods of the current sampling period. t-4 S is the performance score obtained from the first three sampling periods of the current sampling period. t-4 The performance score is obtained from the previous four sampling periods of the current sampling period.

[0174] S402, Obtain the third adapted frame rate corresponding to the predicted performance score.

[0175] The method for obtaining the third adapted frame rate corresponding to the predicted performance score is similar to the method for obtaining the first adapted frame rate corresponding to the first performance score and the second adapted frame rate corresponding to the second performance score. To avoid redundancy, it will not be repeated here.

[0176] S403. Adjust the frame rate of the display device according to the third adapted frame rate.

[0177] In some embodiments, adjusting the frame rate of the display device according to the third adaptive frame rate includes: controlling the frame rate of the display device to gradually reach the third adaptive frame rate at the beginning of the next sampling period.

[0178] Based on the same inventive concept, as an implementation of the above method, this application embodiment also provides a frame rate control device for a display device. This embodiment corresponds to the aforementioned method embodiment. For ease of reading, this embodiment will not repeat the details of the aforementioned method embodiment one by one, but it should be clear that the frame rate control device for a display device in this embodiment can correspondingly implement all the contents of the aforementioned method embodiment.

[0179] This application provides a frame rate control device for a display device. Figure 5 This is a schematic diagram of the frame rate control device for the display device, as shown below. Figure 5 As shown, the frame rate control device 500 of the display device includes:

[0180] Sampling unit 51 is used to obtain the actual frame rate and the adapted frame rate of the display device in the first time period, wherein the adapted frame rate is the frame rate corresponding to the performance score of the display device;

[0181] Processing unit 52 is used to obtain the cumulative frame rate error of the display device in the first time period based on the actual frame rate and the adapted frame rate of the display device in the first time period;

[0182] The acquisition unit 53 is used to acquire the frame rate adjustment rate based on the accumulated frame rate error and the preset adjustment coefficient.

[0183] The control unit 54 is used to control the frame rate of the display device according to the frame rate control rate during a second time period after the first time period.

[0184] As an optional implementation of this application, the end point of the first time period is the sampling time of the current sampling period, and the length of the first time period is less than the length of the sampling period. The sampling unit 51 is specifically used to obtain a first actual frame rate and a second actual frame rate. The first actual frame rate is the frame rate of the display device obtained in the current sampling period, and the second actual frame rate is the frame rate of the display device obtained in the previous sampling period. A first linear equation is constructed based on the first actual frame rate and the second actual frame rate. The actual frame rate of the display device in the first time period is determined based on the first linear equation.

[0185] As an optional implementation of this application, the end point of the first time period is the sampling time of the current sampling period, and the length of the first time period is less than the length of the sampling period. The sampling unit 51 is specifically used to obtain a first performance score and a second performance score. The first performance score is the performance score of the display device determined based on the performance indicators and frame rate of the display device obtained in the current sampling period, and the second performance score is the performance score of the display device determined based on the performance indicators and frame rate of the display device obtained in the previous sampling period. The unit also obtains a first adapted frame rate corresponding to the first performance score and a second adapted frame rate corresponding to the second performance score, respectively. A second linear equation is constructed based on the first adapted frame rate and the second adapted frame rate. The unit determines the adapted frame rate of the display device in the first time period based on the second linear equation.

[0186] As an optional implementation of this application, the sampling unit 51 is specifically used to determine a first frame rate value space for the first performance score and a second frame rate value space for the second performance score; obtain a first probability for each frame rate in the first frame rate value space, wherein the first probability of any frame rate is the probability that the frame rate of the display device is that frame rate when the performance score is the first performance score; determine the frame rate with the largest first probability in the first frame rate value space as the first adapted frame rate; obtain a second probability for each frame rate in the second frame rate value space, wherein the second probability of any frame rate is the probability that the frame rate of the display device is that frame rate when the performance score is the second performance score; and determine the frame rate with the largest second probability in the second frame rate value space as the second adapted frame rate.

[0187] As an optional implementation of this application, the length of the second time period is less than or equal to the sampling period of the actual frame rate.

[0188] As an optional implementation of this application, the processing unit 52 is further configured to predict the performance score of the display device obtained in the next sampling period to obtain a predicted performance score; and obtain the third adapted frame rate corresponding to the predicted performance score.

[0189] The control unit is also used to control the frame rate of the display device according to the third adapted frame rate.

[0190] As an optional implementation of this application, the processing unit 52 is specifically used to obtain the transition matrix corresponding to each performance index of the display device, wherein the element in the i-th row and j-th column of the transition matrix corresponding to any performance index is the probability that the performance index transitions from the i-th interval to the j-th interval; predict the performance index of the display device to be obtained in the next acquisition cycle based on the transition matrix corresponding to each performance index of the display device and the performance index of the display device obtained in the current acquisition cycle; and obtain the predicted performance score based on the predicted performance index of the display device to be obtained in the next acquisition cycle.

[0191] As an optional implementation of this application, the processing unit 52 is specifically used to obtain the performance score of the display device obtained in the most recent preset number of adoption periods; and to perform a weighted summation of the performance scores of the display device obtained in the most recent preset number of adoption periods according to the weight of the most recent preset number of adoption periods, so as to predict the predicted performance score.

[0192] The frame rate control device for the display device provided in this application embodiment can execute the frame rate control method for the display device provided in any of the above embodiments. Its implementation principle and technical effect are similar, and will not be described again here.

[0193] Based on the same inventive concept, embodiments of this application also provide an electronic device. Figure 6 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application, such as... Figure 6 As shown, the electronic device provided in this embodiment includes a memory 601 and a processor 602. The memory 601 is used to store a computer program, and the processor 602 is used to execute the frame rate control method of the display device provided in the above embodiment when executing the computer program.

[0194] Based on the same inventive concept, this application also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the computing device implements the frame rate control method for the display device provided in the above embodiments.

[0195] Based on the same inventive concept, this application also provides a computer program product that, when run on a computer, enables the computing device to implement the frame rate control method for the display device provided in the above embodiments.

[0196] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program code.

[0197] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.

[0198] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0199] Computer-readable media include both permanent and non-permanent, removable and non-removable storage media. Storage media can store information using any method or technology; the information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0200] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some or all of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A frame rate control method for a display device, characterized in that, include: The actual frame rate and the adapted frame rate of the display device are obtained in the first time period, wherein the adapted frame rate is the frame rate corresponding to the performance score of the display device; Based on the actual frame rate and the adapted frame rate of the display device in the first time period, the cumulative frame rate error of the display device in the first time period is obtained; The frame rate adjustment rate is obtained based on the accumulated frame rate error and the preset adjustment coefficient. During the second time period following the first time period, the frame rate of the display device is adjusted according to the frame rate adjustment rate.

2. The method according to claim 1, characterized in that, The end point of the first time period is the sampling time of the current sampling period. The length of the first time period is less than the length of the sampling period. Obtaining the actual frame rate of the display device within the first time period includes: A first actual frame rate and a second actual frame rate are obtained, wherein the first actual frame rate is the frame rate of the display device obtained in the current sampling period, and the second actual frame rate is the frame rate of the display device obtained in the previous sampling period; Construct a first linear equation based on the first actual frame rate and the second actual frame rate; The actual frame rate of the display device during the first time period is determined based on the first linear equation.

3. The method according to claim 1, characterized in that, The end point of the first time period is the sampling time of the current sampling period. The length of the first time period is less than the length of the sampling period. Obtaining the adapted frame rate of the display device within the first time period includes: A first performance score and a second performance score are obtained. The first performance score is the performance score of the display device determined based on the performance indicators and frame rate of the display device obtained in the current sampling period. The second performance score is the performance score of the display device determined based on the performance indicators and frame rate of the display device obtained in the previous sampling period. Obtain the first adapted frame rate corresponding to the first performance score and the second adapted frame rate corresponding to the second performance score, respectively; Construct a second linear equation based on the first adapted frame rate and the second adapted frame rate; The adaptive frame rate of the display device during the first time period is determined according to the second linear equation.

4. The method according to claim 3, characterized in that, The step of obtaining the first adapted frame rate corresponding to the first performance score and the second adapted frame rate corresponding to the second performance score includes: Determine the first frame rate value space of the first performance score and the second frame rate value space of the second performance score; Obtain the first probability of each frame rate in the first frame rate value space. The first probability of any frame rate is the probability that the frame rate of the display device is that the performance score is the first performance score. The frame rate with the highest probability in the first frame rate value space is determined as the first adapted frame rate; Obtain the second probability of each frame rate in the second frame rate value space. The second probability of any frame rate is the probability that the frame rate of the display device is that the performance score is the second performance score. The frame rate with the highest probability in the second frame rate value space is determined as the second adapted frame rate.

5. The method according to claim 1, characterized in that, The length of the second time period is less than or equal to the sampling period of the actual frame rate.

6. The method according to claim 5, characterized in that, The method further includes: The performance score of the display device obtained in the next sampling period is predicted to obtain a predicted performance score; Obtain the third adapted frame rate corresponding to the predicted performance score; The frame rate of the display device is adjusted according to the third adapted frame rate.

7. The method according to claim 6, characterized in that, The step of predicting the performance score of the display device obtained in the next sampling period to obtain a predicted performance score includes: Obtain the transition matrix corresponding to each performance index of the display device. The element in the i-th row and j-th column of the transition matrix corresponding to any performance index is the probability that the performance index is transferred from the i-th interval to the j-th interval. Based on the transition matrix corresponding to each performance index of the display device and the performance index of the display device obtained in the current acquisition cycle, predict the performance index of the display device to be obtained in the next acquisition cycle. The predicted performance score is obtained based on the performance metrics of the display device obtained in the predicted next adoption cycle.

8. The method according to claim 6, characterized in that, The step of predicting the performance score of the display device obtained in the next sampling period to obtain a predicted performance score includes: Obtain the performance scores of the display device obtained in the most recent preset number of cycles; The performance scores of the display device obtained in the most recent preset number of adoption periods are weighted and summed according to the weight of the most recent preset number of adoption periods in order to predict the predicted performance score.

9. A frame rate control device for a display device, characterized in that, include: A sampling unit is used to obtain the actual frame rate and the adapted frame rate of the display device in the first time period, wherein the adapted frame rate is the frame rate corresponding to the performance score of the display device; The processing unit is configured to obtain the cumulative frame rate error of the display device during the first time period based on the actual frame rate and the adapted frame rate of the display device during the first time period. The acquisition unit is used to acquire the frame rate adjustment rate based on the accumulated frame rate error and the preset adjustment coefficient. The control unit is used to control the frame rate of the display device according to the frame rate control rate during a second time period after the first time period.

10. An electronic device, characterized in that, include: A memory and a processor, wherein the memory is used to store a computer program and the processor is used to cause the electronic device to implement the frame rate control method of the display device according to any one of claims 1-8 when executing the computer program.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a computing device, causes the computing device to implement the frame rate control method for the display device according to any one of claims 1-8.

12. A computer program product, characterized in that, When the computer program product is run on a computer, the computer enables the computer to implement the frame rate control method of the display device according to any one of claims 1-8.