Performance adjustment method and apparatus, terminal device, and storage medium

By acquiring and calculating the difference in screen data of terminal devices, and adjusting the processor performance strategy, the problem that the processor performance adjustment in the existing technology cannot meet the needs of different interfaces is solved, and more efficient utilization of processor resources is achieved.

WO2026026779A1PCT designated stage Publication Date: 2026-02-05REALME MOBILE TELECOMM SHENZHEN CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/111220
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-07-29
Filing Date
2025-07-29
Publication Date
2026-02-05

AI Technical Summary

Technical Problem

In existing technologies, the processor performance adjustment of terminal devices during the display process is mainly based on the frame rate adjustment of the application, which cannot meet the needs of different interfaces and is prone to problems such as insufficient performance or wasted performance.

Method used

By acquiring the image data of the current frame and the image data of its adjacent N consecutive frames, the target data difference is calculated, and the processor's performance strategy is adjusted when the difference exceeds a preset threshold to adapt to the needs of different application images.

Benefits of technology

It improves the accuracy and adaptability of terminal devices in adjusting processor performance, avoids insufficient or wasted performance, and meets the rendering needs of different application screens.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025111220_05022026_PF_FP_ABST
    Figure CN2025111220_05022026_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of terminals, and discloses a performance adjustment method and apparatus, a terminal device, and a storage medium. The method is applied to a terminal device, and comprises: acquiring image data of a current image and respective image data of N consecutive images adjacent to the current image; on the basis of the image data of the current image and the respective image data of the N consecutive images adjacent to the current image, acquiring a target data difference; and when the target data difference is greater than a preset difference threshold, adjusting a performance strategy of a processor of the terminal device on the basis of the image data of the current image. In the present application, the image data is used to indicate the amount of data for rendering the image, and if the target data difference is greater than the preset difference threshold, this indicates that the amount of rendering data has changed significantly. In this case, the terminal device can promptly adjust the performance strategy of the processor on the basis of the image data of the current image, thereby improving the accuracy of the terminal device in adjusting processor performance.
Need to check novelty before this filing date? Find Prior Art

Description

Performance adjustment method and device, terminal equipment and storage medium

[0001] The present application claims priority to the Chinese patent application No. CN 202411028731.7 filed on July 29, 2024 and entitled "Performance adjustment method and device, terminal equipment and storage medium", the whole content of which is incorporated herein by reference. TECHNICAL FIELD

[0002] The present application relates to the technical field of terminal, in particular to a performance adjustment method and device, terminal equipment and storage medium. BACKGROUND

[0003] With the development of science and technology, various terminal devices appear in people's daily life, and people can use terminal devices for learning, work, life, etc.

[0004] Among them, various functions provided by the terminal device are mainly controlled by the internal processor, and the performance of the processor directly affects the user experience. For example, in a terminal device with a display screen, the terminal device usually needs to display various application screens, and in the application screen display process, the processor needs to render the screen to be displayed and other processes, and finally complete the display on the display screen. Currently, the adjustment of the processor performance in the display process of the terminal device is usually based on the frame rate adjustment of the application program, and the terminal device adjusts the performance of the processor according to the frame rate of the currently running application program, and then displays the corresponding application screen. However, the application screen to be displayed in the process of running an application program by the terminal device is diverse, so the above adjusted processor performance cannot meet the needs of different interfaces, and the problems of insufficient performance or performance waste are prone to occur. SUMMARY

[0005] The present application provides a performance adjustment method and device, terminal equipment and storage medium. The technical solution is as follows:

[0006] In one aspect, the present application provides a performance adjustment method applied to a terminal device, the method comprising:

[0007] obtaining picture data of a current frame picture and picture data of each of N continuous frame pictures adjacent to the current frame picture, the picture data being used to indicate the data amount of rendering a frame picture by the terminal device, N being a positive integer;

[0008] obtaining a target data difference value according to the picture data of the current frame picture and the picture data of each of the N continuous frame pictures adjacent to the current frame picture, the target data difference value being the maximum difference value between the picture data of the current frame picture and the picture data of each of the N frame pictures;

[0009] adjust, according to the picture data of the current frame picture, a performance policy of a processor of the terminal device, in a case that the target data difference is greater than a preset difference threshold.

[0010] In one aspect, the present application provides a performance adjustment apparatus applied to a terminal device, the apparatus comprising:

[0011] a first obtaining module, configured to obtain picture data of a current frame picture and picture data of each of N continuous frame pictures adjacent to the current frame picture, the picture data being used to indicate an amount of data for the terminal device to render a frame picture, N being a positive integer;

[0012] a second obtaining module, configured to obtain a target data difference according to the picture data of the current frame picture and the picture data of each of the N continuous frame pictures adjacent to the current frame picture, the target data difference being a maximum difference between the picture data of the current frame picture and the picture data of each of the N frame pictures;

[0013] a first adjusting module, configured to adjust, according to the picture data of the current frame picture, a performance policy of a processor of the terminal device, in a case that the target data difference is greater than a preset difference threshold.

[0014] In another aspect, the present application provides a terminal device, the terminal device comprising a processor and a memory, the memory storing a computer program, the computer program being executed by the processor to implement the performance adjustment method according to one aspect described above.

[0015] In another aspect, the present application provides a computer readable storage medium, the storage medium storing a computer program, the computer program being executed by a processor to implement the performance adjustment method according to one aspect described above.

[0016] In another aspect, an embodiment of the present application provides a computer program product, when the computer program product runs on a computer, causing the computer to execute to implement the performance adjustment method according to one aspect described above.

[0017] In another aspect, an embodiment of the present application provides an application publishing platform, the application publishing platform being used to publish a computer program product, wherein, when the computer program product runs on a computer, causing the computer to execute to implement the performance adjustment method according to one aspect described above.

[0018] Details of one or more embodiments of the present application are presented in the following drawings and description. Other features and advantages of the present application will be apparent from the description, drawings and claims. BRIEF DESCRIPTION OF DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly introduced. Obviously, the drawings in the following description only constitute some embodiments of the present application, and for those skilled in the art, other drawings can be obtained without creative labor.

[0020] FIG. 1 is a structural schematic diagram of a terminal device according to an example embodiment of the present application;

[0021] FIG. 2 is a method flowchart of a performance adjustment method according to an example embodiment of the present application;

[0022] FIG. 3 is a method flowchart of a performance adjustment method according to an example embodiment of the present application;

[0023] FIG. 4 is a structural block diagram of a performance adjustment apparatus according to an example embodiment of the present application;

[0024] FIG. 5 is a structural schematic diagram of another example of a performance adjustment apparatus according to an example embodiment of the present application. DETAILED DESCRIPTION

[0025] The example embodiments will be described in detail below with reference to the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following example embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of apparatuses and methods consistent with some aspects of the present application as detailed in the appended claims.

[0026] “Multiple” mentioned herein refers to two or more. “And / or” describes the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B can represent the following three cases: A exists alone, A and B exist together, and B exists alone. The character “ / ” generally represents that the associated objects before and after it are in an “or” relationship.

[0027] The scheme provided by the present application can be used in real scenarios involving application screen display during the use of terminal devices in daily life. In order to facilitate understanding, some terms and application scenarios related to the embodiments of the present application will be introduced briefly as follows.

[0028] Vulkan is a low-overhead, cross-platform two-dimensional graphics, three-dimensional graphics and computing application program interface (Application Programming Interface, API).

[0029] Scheduling priority: refers to a process in which a terminal device improves the performance resource execution frequency in application optimization. The performance resource includes resources such as a central processing unit (CPU), a graphics processing unit (GPU), a double data rate (DDR) synchronous dynamic random access memory, and the like.

[0030] With the development of science and technology, various terminal devices appear in people's daily life, and people can use terminal devices for work, entertainment, learning, and the like. Generally, most terminal devices include a display screen, and various application screens of application programs are displayed through the display screen.

[0031] Please refer to FIG. 1, which shows a structural schematic diagram of a terminal device provided by an example embodiment of the present application. As shown in FIG. 1, the terminal device includes a processor 110, a memory 120, a transceiver 130, a display unit 140, an input unit 150, a sensor 160, an audio circuit 170, and a power module 180, and the like.

[0032] The processor 110 is the control center of the terminal device, and connects each part of the entire terminal device through various interfaces and lines. The processor 110 executes various functions and processes data of the terminal device by running or executing software programs and / or modules stored in the memory 120 and calling data stored in the memory 120, thereby monitoring the terminal device as a whole. Optionally, the processor 110 can include one or more processing units; optionally, the processor 110 can integrate an application processor, which mainly processes operation devices, user interfaces, and application programs, and can also include other processors, which are not listed here.

[0033] The memory 120 can be used to store software programs and modules. The processor 110 executes various functions and data processing of the terminal device by running the software programs and modules stored in the memory 120. The memory 120 can mainly include a program storage area and a data storage area. The program storage area can store application programs required by at least one function (such as a sound playing function, an image playing function, and the like) and the like; the data storage area can store data created according to the use of the terminal device (such as audio data, a phonebook, and the like) and the like. In addition, the memory 120 can include a high-speed random access memory, and can also include a non-volatile memory, for example, at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device.

[0034] The transceiver 130 can provide a wireless communication solution applied on the terminal device, including wireless local area networks (WLAN) (for example, wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. The transceiver 130 can be one or more devices integrated with at least one communication processing module, for example, an antenna and a baseband processor integrated transceiver 130, or an antenna and a modem processor integrated transceiver 130, etc., which is not limited here.

[0035] The display unit 140 can be used to display information input by the user or information provided to the user and various menus of the terminal device. The display unit 140 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc., which is not limited here.

[0036] The input unit 150 can be used to receive input digital or character information, and generate key signal input related to user settings and function control of the terminal device. Specifically, the input unit 150 can collect the operation of the user thereon or therearound, and drive the corresponding connection device according to the pre-set program. In addition, the input unit 150 can include a touch panel, which can be implemented in various types such as a resistive type, a capacitive type, an infrared type, and a surface acoustic wave type. In addition to the touch panel, the input unit 150 can further include other input devices. Specifically, the other input devices can include one or more of a function key (such as a volume control button, a switch button, etc.), a trackball, an operation lever, etc.

[0037] The terminal device can further include at least one sensor 160, such as a gyroscope sensor, a motion sensor, and other sensors. The motion sensor can include an acceleration sensor for detecting the size of acceleration in each direction, detecting the size and direction of gravity when at rest, and can be used for applications such as horizontal and vertical screen switching, related games, magnetometer posture calibration, etc. The terminal device can also be configured with a manometer, a barometer, a hygrometer, a thermometer, an infrared sensor, and other sensors, which are not described here.

[0038] The audio circuit 170 can include a speaker and a microphone, and can provide an audio interface between a user and the terminal device. The audio circuit 170 can convert received audio data into an electrical signal and transmit the electrical signal to the speaker, which converts the electrical signal into a sound signal and outputs the sound signal. On the other hand, the microphone collects a sound signal and converts the sound signal into an electrical signal, which is received by the audio circuit 170 and converted into audio data. The audio data is output to the processor 110 for processing, and then transmitted to another terminal device via the video circuit, or output to the memory 120 for further processing.

[0039] The terminal device also includes a power supply module 180 for supplying power to each component. Optionally, the power supply module 180 can be logically connected to the processor 110 via a power management device, so that the power management device can manage charging, discharging, power consumption management, and the like.

[0040] Although not shown, the terminal device can also include a camera. Optionally, the camera can be front-facing or rear-facing, and the embodiments of the present application do not limit the position of the camera on the terminal device.

[0041] It can be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the terminal device. In other embodiments of the present application, the terminal device can include more or fewer components than those illustrated, or some components can be combined, or some components can be split, or different components can be arranged. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.

[0042] Optionally, the terminal device described above can include, but is not limited to, a wearable device (such as a smart bracelet, a smart watch, smart glasses, etc.), a mobile phone, a tablet computer, a notebook computer, smart glasses, a smart watch, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), a desktop computer, a laptop computer, etc.

[0043] In general, the terminal device shown in FIG. 1 described above needs to be equipped with a corresponding operating system and run based on the operating system. For example, the operating system of the terminal device can be an Android system, an iOS system, a Linux system, etc.

[0044] In the process that the display unit displays the application picture, the processor needs to perform rendering and other processes on the picture to be displayed, and finally complete the display on the display screen. At present, the adjustment of the processor performance in the display process of the terminal device is usually based on the frame rate adjustment of the application program. The terminal device adjusts the performance of the processor according to the frame rate of the currently running application program, and then displays the corresponding application picture. However, the application pictures to be displayed in the process that the terminal device runs an application program are various, and therefore the processor performance after the above adjustment cannot meet the requirements of different interfaces, and problems such as insufficient performance or performance waste are prone to occur.

[0045] In order to solve the problems in the related art, improve the accuracy of the terminal device in adjusting the performance of the processor, and improve the adaptability of the scheme for adjusting the performance of the processor to different application pictures, the present application provides a performance adjustment method, which can compare the picture data of a current frame picture with the picture data of adjacent continuous N frame pictures by acquiring the picture data of the picture, and timely adjust the performance of the processor when it is found that the difference is greater than a preset threshold.

[0046] Please refer to FIG. 2, which shows a method flowchart of a performance adjustment method provided by an example embodiment of the present application, which can be applied to a terminal device. As shown in FIG. 2, the performance adjustment method can include the following steps:

[0047] Step 201: Acquire the picture data of a current frame picture and the picture data of each of N continuous frame pictures adjacent to the current frame picture. The picture data is used to indicate the data amount of rendering a frame picture by the terminal device, and N is a positive integer.

[0048] Optionally, the current frame picture is an application picture currently to be displayed by the terminal device. The N continuous frame pictures adjacent to the current frame picture are N frame pictures that have been displayed by the terminal device before the current frame picture. For example, for the terminal device, in the process of displaying an application picture, each frame of the application picture is displayed in turn. In the display process, the picture data of each frame of the application picture can be recorded. When the performance adjustment of the present scheme needs to be performed, the picture data of the current frame picture and the picture data of each of the N continuous frame pictures adjacent to the current frame picture that have been recorded are acquired.

[0049] Optionally, in the present scheme, the picture data can be used to indicate the data amount of rendering a frame picture by the terminal device. For example, if a frame picture is more complex, the data amount of rendering the frame picture by the terminal device is greater. Optionally, the picture data can be the number of layers or the number of brushes. The terminal device can acquire the picture data by setting a corresponding collector to collect and record the picture data.

[0050] Optionally, the N is a positive integer which can be designed by the developer or the user, for example, N = 1, the terminal device can obtain the picture data of the current frame picture and the picture data of the adjacent previous frame picture. If N = 2, the terminal device obtains the picture data of the current frame picture and the picture data of the adjacent previous two frame pictures. Similarly, details are not repeated here.

[0051] In step 202, the target data difference value is obtained according to the picture data of the current frame picture and the picture data of the adjacent continuous N frame pictures, and the target data difference value is the maximum difference between the picture data of the current frame picture and the picture data of each of the N frame pictures.

[0052] Optionally, the terminal device can obtain the target data difference value in the following manner. For example, the terminal device can perform difference operation on the picture data of the current frame picture and the picture data of the continuous N frame pictures in sequence, and obtain the maximum difference value as the target data difference value. Alternatively, the terminal device can also uniformly regard the picture data of the current frame picture and the picture data of the continuous N frame pictures adjacent to the current frame picture as a set, the set contains N+1 picture data, and the maximum difference value is obtained as the target data difference value by performing difference operation on the set in pairs.

[0053] In step 203, when the target data difference value is greater than the preset difference threshold value, the performance strategy of the processor of the terminal device is adjusted according to the picture data of the current frame picture.

[0054] Optionally, the greater the target data difference value, the greater the difference between the current frame picture and the adjacent continuous N frame pictures, and the greater the difference in the amount of data rendered by the terminal device. When the target data difference value is greater than the preset difference threshold value, it means that the amount of data to be rendered by the terminal device has changed greatly, and the terminal device needs to adjust the performance strategy of the processor of the terminal device according to the picture data of the current frame picture, so as to meet the demand of the processor performance for the current frame picture.

[0055] Optionally, different performance strategies correspond to different power consumptions of the processor of the terminal device. When the picture data of the current frame picture is large, the performance of the processor to be used is higher, and when the picture data of the current frame picture is small, the performance of the processor to be used is lower. That is, the greater the picture data of the current frame picture, the more the amount of data rendered by the terminal device, and the higher the demand for the performance of the processor, so the terminal device needs to improve the performance of the processor to bring higher power consumption, and the smaller the picture data of the current frame picture, the less the amount of data rendered by the terminal device, and the lower the demand for the performance of the processor, so the terminal device needs to reduce the performance of the processor to save power consumption.

[0056] In summary, the terminal device acquires the picture data of the current frame picture and the picture data of each of the continuous N frame pictures adjacent to the current frame picture, the picture data is used to indicate the data amount of rendering a frame picture by the terminal device, N is a positive integer; the terminal device acquires a target data difference value according to the picture data of the current frame picture and the picture data of each of the continuous N frame pictures adjacent to the current frame picture, the target data difference value is the maximum difference value between the picture data of the current frame picture and the picture data of each of the N frame pictures; and the terminal device adjusts the performance strategy of the processor of the terminal device according to the picture data of the current frame picture in the case that the target data difference value is greater than a preset difference threshold. The terminal device of the present application can acquire the picture data of a picture, the picture data is used to indicate the data amount of rendering the frame picture, the target data difference value is calculated according to the picture data of the current frame picture and the picture data of each of the continuous N frame pictures adjacent to the current frame picture, in the case that the target data difference value is greater than the preset difference threshold, it is indicated that the data amount of rendering changes greatly, at this time, the terminal device can adjust the performance strategy of the processor according to the picture data of the current frame picture in time, so as to meet the requirement of the current frame picture on the performance of the processor, thereby avoiding the problems of insufficient performance or performance waste, improving the accuracy of the terminal device in adjusting the performance of the processor, and making the scheme of adjusting the performance of the processor more suitable for various application pictures.

[0057] In a possible implementation manner, the terminal device stores different performance strategies corresponding to different data ranges, and the performance strategy of the processor of the terminal device is adjusted based on the data range in which the picture data of the current frame picture is located, thereby improving the accuracy of the terminal device in adjusting the performance of the processor.

[0058] Please refer to FIG. 3, which shows a method flowchart of a performance adjustment method provided by an example embodiment of the present application, and the performance adjustment method can be applied to a terminal device. As shown in FIG. 3, the performance adjustment method can include the following steps:

[0059] In step 301, the picture data of the current frame picture and the picture data of each of the continuous N frame pictures adjacent to the current frame picture are acquired, the picture data is used to indicate the data amount of rendering a frame picture by the terminal device, N is a positive integer.

[0060] Optionally, the current frame picture is an application picture currently required to be displayed by the terminal device. For example, the application picture required to be displayed in the terminal device is picture one, and the picture one is the current frame picture. The continuous N frame pictures adjacent to the current frame picture are the pictures displayed before the picture one.

[0061] Generally, the continuous N frames of pictures adjacent to the current frame of picture are the adjacent continuous N frames of pictures that have been displayed before, but in some terminal devices, if the terminal device can cache some pictures that have not been displayed in advance, the continuous N frames of pictures here can include some pictures that have not been displayed and are adjacent to the current frame of picture. For example, in the process that a user uses a terminal device, the application pictures displayed by the terminal device include picture one, picture two, picture three and picture four in turn, if N is 3 and the current frame of picture is picture four, then the adjacent continuous 3 frames of pictures here are the picture one, picture two and picture three that have been displayed before. In the terminal device with the function of caching pictures, the displayed application pictures include picture one, picture two and picture three, the current frame of picture is picture four, and the application pictures that have not been displayed include picture five and picture six, if N is 2, then the adjacent continuous 3 frames of pictures here are the picture two, picture three that have been displayed before and the cached picture five and picture six.

[0062] Of course, in actual application, the value of N can be set by the developer or the user. And whether the continuous N frames of pictures adjacent to the current frame of picture are taken from the adjacent N frames of historical picture frames or the adjacent N frames of cached picture frames that have not been displayed can be changed flexibly, which is not limited here. Taking the case of taking the adjacent N frames from the cached picture frames that have not been displayed as an example, in a possible implementation, N is 5, in the terminal device with the function of caching pictures, the displayed application pictures include picture one, picture two and picture three, the current frame of picture is picture four, and the cached picture frames that have not been displayed include picture five and picture six, the terminal device can take picture five and picture six as two frames of the continuous N frames of pictures adjacent to the current frame of picture, and take the adjacent (N-2) frames of historical picture frames, i.e. picture one, picture two and picture three, as the remaining three frames of the continuous N frames of pictures adjacent to the current frame of picture, so as to obtain the picture data of the continuous 5 frames of pictures adjacent to the current frame of picture.

[0063] Optionally, the picture data of each frame of picture is used to indicate the data amount of rendering a frame of picture by the terminal device; that is, the complexity of each frame of picture can be reflected. The larger the picture data of a frame of picture is, the higher the complexity of the frame of picture is, and the larger the data amount of rendering the frame of picture by the terminal device is. For example, for a frame of picture to be rendered by the terminal device, the terminal device can obtain the number of layers of the frame of picture, the more the number of layers is, the higher the complexity of the frame of picture is, and the larger the data amount of rendering the frame of picture by the terminal device is. Alternatively, the terminal device can obtain the number of brushes included in the frame of picture, the more the number of brushes is, the more the color types of the frame of picture are, the higher the complexity of the frame of picture is, and the larger the data amount of rendering the frame of picture by the terminal device is.

[0064] That is, for a frame of picture, the amount of data of the terminal device rendering the picture can be described by the number of angles, and the terminal device can acquire one of the numbers of angles as picture data and record, and acquire from the recorded data when needed.

[0065] Taking the number of layers of picture data of each frame of picture as an example, the terminal device can acquire the picture data of the current frame of picture and the picture data of the continuous N frames of picture adjacent to the current frame of picture in the following way: recording and storing the number of layers of each frame of picture in real time by a counter; acquiring the number of layers of the current frame of picture and the number of layers of the continuous N frames of picture adjacent to the current frame of picture.

[0066] For example, a counter can be used in the terminal device to record the number of layers of the displayed picture frames, and a piece of memory is pre-divided from the memory space to store the recorded number of layers, and the number of layers of the continuous N frames of picture adjacent to the current frame of picture recorded in the memory is acquired when needed. For example, in the process of the user using the terminal device, taking the terminal device acquiring the continuous N frames of picture adjacent to the current frame of picture in the history as an example, the application picture displayed by the terminal device includes picture one, picture two, picture three and picture four in turn, if N is 3 and the current frame of picture is picture four, the terminal device has stored the number of layers of each picture (L1, L2, L3 and L4 respectively) in the display process, and the continuous 3 frames of picture adjacent to the current frame of picture are picture one, picture two and picture three, and the picture data of the current frame of picture that can be acquired by the terminal device is L4, and the picture data of the continuous 3 frames of picture adjacent to the current frame of picture is L1, L2 and L3.

[0067] In a possible implementation, the picture data of each frame of picture is the number of brushes of the picture; the terminal device can also record and store the number of brushes of each frame of picture in real time by a counter; and when acquiring the picture data, the number of brushes of the current frame of picture and the number of brushes of the continuous N frames of picture adjacent to the current frame of picture can be acquired. The specific implementation details can be referred to the above-mentioned manner of the number of layers, which will not be described here.

[0068] It should be noted that other parameters (one or more) of the picture frame can also be used to reflect the amount of data of the terminal device rendering a frame of picture in actual application, which will not be exemplified one by one here.

[0069] In step 302, the target data difference value is acquired according to the picture data of the current frame of picture and the picture data of the continuous N frames of picture adjacent to the current frame of picture, and the target data difference value is the maximum difference between the picture data of the current frame of picture and the picture data of each of the N frames of picture.

[0070] Optionally, after the terminal device acquires the picture data of the current frame picture and the picture data of each of the N continuous frame pictures adjacent to the current frame picture, the terminal device can calculate the difference between each pair of picture data, obtain each difference value between the picture data of the current frame picture and the picture data of each frame picture, and select the maximum difference value from the difference values to obtain the target data difference value. For example, when N is 3, the picture data of the current frame picture and the picture data of each of the N frame pictures obtained above are [Y1, Y2, Y3, Y4], the terminal device calculates the difference between Y1 and each of Y2, Y3, and Y4, obtains (Y1-Y2), (Y1-Y3), and (Y1-Y4), and obtains the maximum difference value as the target data difference value.

[0071] Optionally, to avoid the negative value of the difference value, the absolute value of the difference value can be obtained, and the maximum difference value can be obtained from the absolute values of the difference values. That is, the maximum difference value refers to the maximum value of the absolute values of the difference values.

[0072] In a possible implementation, the execution of the above scheme can be periodic, that is, the terminal device starts to execute step 301 to acquire the picture data of each frame picture and complete the subsequent adjustment of the performance strategy every fixed period. In this case, when the terminal device executes step 302, the terminal device can obtain the target data difference value in the following manner: the terminal device can also uniformly regard the picture data of the current frame picture and the picture data of each of the N continuous frame pictures adjacent to the current frame picture as a set, the set includes N+1 picture data, the terminal device calculates the difference between each pair of picture data in the set, and obtains the maximum difference value as the target data difference value. For example, when N is 2, the picture data of the current frame picture and the picture data of each of the N frame pictures obtained above are [Y1, Y2, Y3], the terminal device calculates the difference between each pair of picture data, obtains the absolute values of (Y1-Y2), (Y1-Y3), and (Y2-Y3), and obtains the maximum difference value as the target data difference value.

[0073] In a possible implementation, the picture data includes multiple data types, and different data types correspond to different weights. The terminal device can obtain the target data difference value in the following manner according to the picture data of the current frame picture and the picture data of each of the N continuous frame pictures adjacent to the current frame picture: for each data type, the terminal device obtains a type data difference value from the picture data of the current frame picture and the picture data of each of the N frame pictures. The type data difference value is the maximum difference value between the picture data of the current frame picture and the picture data of each of the N frame pictures in the same data type. The terminal device calculates the target data difference value according to each type data difference value and the weight of each data type.

[0074] That is, there can be multiple types of picture data. Taking the above picture data as an example, the picture data includes the number of layers and the number of brushes, for a frame of picture, the terminal device can record the number of layers and the number of brushes, then the picture data of each frame of picture includes two types of data, the terminal device can also obtain the corresponding two types of picture data when obtaining, and the terminal device calculates the type data difference value according to each type of data. For example, the maximum difference value of the number of layers is calculated according to the number of layers of the current frame of picture and the number of layers of the N continuous frames of picture adjacent to the current frame of picture, and the maximum difference value of the number of brushes is calculated according to the number of brushes of the current frame of picture and the number of brushes of the N continuous frames of picture adjacent to the current frame of picture. The maximum difference value of the number of layers and the maximum difference value of the number of brushes are the type data difference values, and the terminal device calculates the target data difference value by combining the weights corresponding to each type of data.

[0075] Taking the maximum difference value of the number of layers Lmax and the maximum difference value of the number of brushes Hmax calculated above as an example, the weight corresponding to the number of layers in the terminal device is θ1, and the weight corresponding to the number of brushes is θ2, then the terminal device calculates the target data difference value according to the following formula: target data difference value = Lmax*θ1+Hmax*θ2. Optionally, the different weights corresponding to different types of data can be flexibly set by the developer or the user.

[0076] Step 303, in the case that the target data difference value is greater than the preset difference threshold, determining the data range in which the picture data of the current frame of picture is located.

[0077] Step 304, determining the performance strategy corresponding to the data range according to the data range.

[0078] Step 305, adjusting the current performance strategy of the processor to the performance strategy corresponding to the data range.

[0079] Optionally, after obtaining the target data difference value, the target data difference value is compared with the preset difference threshold, if the target data difference value is greater than the preset difference threshold, steps 303 to 305 are executed to adjust the performance strategy of the processor, if the target data difference value is not greater than the preset difference threshold, no processing is performed and the current performance strategy of the processor continues to run.

[0080] Optionally, the target data difference value is the maximum difference value between the picture data of the current frame of picture and the picture data of each of the N frames of picture, and the picture data is the data amount indicating that the terminal device performs rendering of a frame of picture, if the target data difference value is greater, it means that the picture changes more and the change amount of the data amount for rendering by the terminal device is greater, at this time, the performance strategy of the processor needs to be adjusted.

[0081] Optionally, the terminal device first determines a data range in which the picture data of the current picture frame is located, and determines the corresponding performance strategy through the data range. For example, refer to Table 1, which shows a correspondence table of data range and performance strategy according to an example embodiment of the present application.

[0082] Table 1: Correspondence of data range and performance strategy

[0083] If the terminal device determines that the picture data of the current picture frame is within the data range one, it means that the first performance strategy needs to be adopted. The terminal device adjusts the current performance strategy of the processor to the performance strategy corresponding to the data range.

[0084] Taking the number of picture data as an example, Table 1 can be as follows:

[0085] That is, if the number of picture data of the current frame is less than or equal to 5, the determined performance strategy is the first performance strategy, if the number of picture data of the current frame is greater than 5 and less than or equal to 10, the determined performance strategy is the second performance strategy, and if the number of picture data of the current frame is greater than 10, the determined performance strategy is the third performance strategy.

[0086] In a possible implementation manner, when performing step 305, the terminal device can perform the following: according to the determined performance strategy corresponding to the data range, obtaining a target value of a target working parameter; and adjusting the parameter value of the target working parameter to the target value, so that the processor reaches the performance strategy corresponding to the data range.

[0087] Optionally, the target working parameter includes one or more of the working frequency of the processor, the number of cores of the processor, the cache level of the processor, and the number of threads for rendering of the processor. The processor can be one or more of CPU, GPU, and DDR in the terminal device.

[0088] That is, each performance strategy set in advance in the terminal device corresponds to a target value of a target working parameter, and after the terminal device determines the performance strategy, the corresponding target value of the target working parameter can be obtained, and then the parameter value of the target working parameter of the current processor is adjusted to the target value, so that the processor reaches the performance strategy that needs to be adjusted. Taking the working frequency as an example, under the first performance strategy, the working frequency of the processor needs to be Q1 kHz, under the second performance strategy, the working frequency of the processor needs to be Q2 kHz, and under the third performance strategy, the working frequency of the processor needs to be Q3 kHz. If the terminal device determines that the performance strategy that needs to be adjusted is the second performance strategy, the working frequency of the processor can be adjusted to Q2 kHz, thereby meeting the requirement. Optionally, the adjustment of other parameters is similar, which will not be described here.

[0089] It should be noted that the power consumption of the processor of the terminal equipment corresponding to different performance strategies is different, and in the above example, the power consumption corresponding to the first performance strategy, the second performance strategy, and the third performance strategy is increasing in turn. That is, as the number of layers increases, the terminal equipment needs to render more data, and therefore consumes more power. The present scheme can adjust the performance strategy of the processor of the terminal equipment in a timely manner according to the picture data of the current frame picture when the target data difference is greater than the preset difference threshold, that is, when the application picture displayed by the terminal equipment changes greatly, and the number of pictures that the terminal equipment needs to render changes, at this time, the performance strategy of the processor of the terminal equipment can be adjusted in a timely manner according to the picture data of the current frame picture, so as to reduce the power consumption of the processor or increase the power consumption of the processor to meet the rendering requirements of the current picture.

[0090] In a possible implementation manner, when the picture data includes the number of layers, if the target data difference is greater than the preset difference threshold, the terminal equipment can further perform the following steps: if the number of layers of the current frame picture is greater than the number of layers of the adjacent N continuous frame pictures of the current frame picture, the terminal equipment can remove the target layer from the number of layers of the current frame picture and then render the current frame picture.

[0091] That is, when it is judged in the step 303 that the target data difference is greater than the preset difference threshold, the terminal equipment can further judge whether the number of layers of the current frame picture is greater than the number of layers of the adjacent N continuous frame pictures of the current frame picture, and if the number of layers of the current frame picture is greater than the number of layers of the adjacent N continuous frame pictures of the current frame picture, the terminal equipment can remove the target layer from the number of layers of the current frame picture and then render the current frame picture, thereby reducing the consumption of CPU resources and improving the rendering efficiency.

[0092] The target layer can be set by the developer in advance. For example, in a game application, the A layer can not be displayed, and therefore the developer can set the A layer as the target layer. In the present scheme, in addition to adjusting the performance strategy of the processor in the above manner, the A layer of the current frame picture can also not be rendered when the current frame picture is rendered, that is, the target layer is removed from the number of layers of the current frame picture, and then the current frame picture is rendered. The number of specific target layers is not limited herein.

[0093] Optionally, taking the implementation of the above scheme in a terminal device through Vulkan as an example. In the terminal device, a developer can insert a counter into an extended Vulkan API, the counter being used to collect the number of layers of each frame of picture in real time, and a storage area (buffer) is defined in a memory space, the storage area being used to store the collected number of layers (that is, the int value collected by the counter can be saved in the storage area). Taking the above N = 1 and the preset difference threshold = 2 as an example, the terminal device can obtain the difference between the number of layers of the current frame of picture and the number of layers of the previous frame of picture as the target data difference, if the difference is less than or equal to 2, the terminal device does not process, and the performance of the current processor is maintained, if the difference is greater than 2, the data is packaged into what form and reported to the processor for processing, so as to determine the performance strategy according to the number of layers of the current frame of picture.

[0094] Taking the processor being a CPU of the terminal device as an example, through the above scheme, the preset difference threshold = 2, if the number of layers of the application picture displayed by the terminal device changes from 1 to 6, the performance strategy determined by the terminal device is adjusted from the original first-level performance strategy to the second-level performance strategy, if the number of layers of the application picture displayed by the terminal device continues to change from 6 to 12, the performance strategy determined by the terminal device is adjusted from the original second-level performance strategy to the third-level performance strategy, and the scheduling priority of the display of the application picture in the process of using the application program can be realized.

[0095] It should be noted that in the case of N = 1, the terminal device can obtain the picture data of the current frame of picture and the picture data of the previous frame of picture, and execute the present scheme, or the terminal device can obtain the picture data of a frame of picture separated by several frames, and execute the present scheme. That is, the terminal device can execute the acquisition of the picture data of the current frame of picture and the acquisition of the picture data of the previous recorded frame of picture every several frames, and obtain the difference between the two, and in the case of being greater than the preset difference threshold, the performance strategy of the processor of the terminal device is adjusted according to the picture data of the current frame of picture.

[0096] To sum up, the terminal device acquires the picture data of the current frame picture and the picture data of each of the N continuous frame pictures adjacent to the current frame picture, the picture data being used to indicate the data amount of rendering a frame picture, N being a positive integer; acquires a target data difference value according to the picture data of the current frame picture and the picture data of each of the N continuous frame pictures adjacent to the current frame picture, the target data difference value being the maximum difference value between the picture data of the current frame picture and the picture data of each of the N continuous frame pictures; and adjusts the performance strategy of the processor of the terminal device according to the picture data of the current frame picture in a case where the target data difference value is greater than a preset difference threshold. The terminal device provided in the present application can acquire the picture data of a frame picture, the picture data being used to indicate the data amount of rendering the frame picture, and can acquire a target data difference value according to the picture data of the current frame picture and the picture data of each of the N continuous frame pictures adjacent to the current frame picture. In a case where it is determined that the target data difference value is greater than a preset difference threshold, it indicates that the data amount of rendering has changed greatly, and at this time, the terminal device can adjust the performance strategy of the processor according to the picture data of the current frame picture, so as to meet the demand of the current frame picture on the performance of the processor, thereby avoiding the problems of insufficient performance or performance waste, improving the accuracy of adjusting the performance of the processor, and making the scheme of adjusting the performance of the processor more suitable for various application pictures.

[0097] In addition, for the case where the picture data contains multiple types in the present scheme, in addition to using one type to implement the acquisition of the target data difference value, the maximum difference value of each type can be calculated respectively, and then the final target data difference value required is calculated by combining the weight of each data type, so that the result of calculating the target data difference value can more accurately reflect the difference between the picture data of the current frame picture and the picture data of each of the N continuous frame pictures adjacent to the current frame picture, thereby improving the accuracy of adjusting the performance strategy of the terminal device. Moreover, the present scheme also acquires the number of layers of each frame picture in real time, and removes the target layer from the number of layers of the current frame picture in a case where the number of layers of the current frame picture is greater than the number of layers of each of the N continuous frame pictures adjacent to the current frame picture, that is, the resource pool of the GPU synthesized by the terminal device is reduced by part of the layers (target layers) to reduce the rendering pressure of the GPU, thereby further saving the power consumption of the terminal device.

[0098] The following is an apparatus embodiment of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the apparatus embodiments of the present application, please refer to the method embodiments of the present application.

[0099] Please refer to FIG. 4, which shows the structure block diagram of the performance adjustment apparatus provided in an example embodiment of the present application. The performance adjustment apparatus 400 can be used in a terminal device. The terminal device can execute all or part of the steps executed by the terminal device in the methods provided in the various method embodiments. The performance adjustment apparatus 400 comprises:

[0100] The first obtaining module 401 is configured to obtain picture data of a current frame picture and picture data of each of N continuous frame pictures adjacent to the current frame picture, the picture data being used to indicate an amount of data for the terminal device to render one frame picture, N being a positive integer;

[0101] The second obtaining module 402 is configured to obtain a target data difference value according to the picture data of the current frame picture and the picture data of each of the N continuous frame pictures adjacent to the current frame picture, the target data difference value being a maximum difference between the picture data of the current frame picture and the picture data of each of the N continuous frame pictures.

[0102] The first adjusting module 403 is configured to adjust a performance strategy of a processor of the terminal device according to the picture data of the current frame picture when the target data difference value is greater than a preset difference threshold.

[0103] In summary, the terminal device obtains picture data of a current frame picture and picture data of each of N continuous frame pictures adjacent to the current frame picture, the picture data being used to indicate an amount of data for the terminal device to render one frame picture, N being a positive integer; obtains a target data difference value according to the picture data of the current frame picture and the picture data of each of the N continuous frame pictures adjacent to the current frame picture, the target data difference value being a maximum difference between the picture data of the current frame picture and the picture data of each of the N continuous frame pictures; and adjusts a performance strategy of a processor of the terminal device according to the picture data of the current frame picture when the target data difference value is greater than a preset difference threshold. The terminal device of the present application can obtain picture data of a frame picture, the picture data being used to indicate an amount of data for rendering the frame picture, obtain a target data difference value according to the picture data of the current frame picture and the picture data of each of the N continuous frame pictures adjacent to the current frame picture, and adjust the performance strategy of the processor according to the picture data of the current frame picture when it is determined that the target data difference value is greater than a preset difference threshold, so as to meet the requirement of the current frame picture on the performance of the processor, thereby avoiding problems of insufficient performance or performance waste, improving the accuracy of the terminal device in adjusting the performance of the processor, and making the scheme of adjusting the performance of the processor more suitable for various application pictures.

[0104] Optionally, the terminal device stores different performance strategies corresponding to different data ranges, and the first adjusting module 403 includes a first determining unit, a second determining unit and a first adjusting unit.

[0105] The first determining unit is configured to determine a data range in which the picture data of the current frame picture is located.

[0106] The second determining unit is configured to determine a performance policy corresponding to the data range according to the data range.

[0107] The first adjusting unit is configured to adjust the current performance policy of the processor to the performance policy corresponding to the data range.

[0108] Optionally, the picture data of each frame of picture is a number of layers of the picture; the first obtaining module 401 comprises a first recording unit and a first obtaining unit.

[0109] The first recording unit is configured to record and store the number of layers of each frame of picture in real time by using a counter.

[0110] The first obtaining unit is configured to obtain the number of layers of the current frame of picture and the number of layers of the continuous N frames of picture adjacent to the current frame of picture.

[0111] Optionally, in the case that the target data difference is greater than the preset difference threshold, the device further comprises:

[0112] The first rendering module is configured to, if the number of layers of the current frame of picture is greater than the number of layers of the continuous N frames of picture adjacent to the current frame of picture, render the current frame of picture after removing a target layer from the number of layers of the current frame of picture.

[0113] Optionally, the first adjusting unit is further configured to:

[0114] obtain a target value of a target working parameter according to the determined performance policy corresponding to the data range;

[0115] adjust a parameter value of the target working parameter to the target value, so that the processor reaches the performance policy corresponding to the data range.

[0116] Optionally, the target working parameter comprises one or more of a working frequency of the processor, a number of cores of the processor, a cache level of the processor, and a number of threads for rendering of the processor.

[0117] Optionally, the picture data comprises a plurality of data types, and different data types correspond to different weights; the second obtaining module 402 comprises a second obtaining unit and a first calculating unit.

[0118] The second obtaining unit is configured to obtain a type data difference value for each type of data according to the picture data of the current frame picture and the picture data of each of the N continuous frame pictures adjacent to the current frame picture, the type data difference value being a maximum difference between the picture data of the current frame picture and the picture data of each of the N continuous frame pictures for the same type of data.

[0119] The first calculating unit is configured to calculate the target data difference value according to the type data difference value and the weight of each type of data.

[0120] Please refer to FIG. 5, which is a structural schematic diagram of another example of the performance adjustment apparatus provided in the embodiments of the present application. The performance adjustment apparatus 500 can be a terminal device, and can implement the functions in the method provided in the embodiments of the present application. The performance adjustment apparatus 500 can be a chip system. In the embodiments of the present application, the chip system can be composed of a chip, or can include a chip and other discrete devices.

[0121] In hardware implementation, the communication module can be a transceiver, which is integrated in the performance adjustment apparatus 500 to form a communication interface 503.

[0122] The performance adjustment apparatus 500 includes at least one processor 501, which is configured to implement or support the terminal device in the method provided in the embodiments of the present application. For example, the processor 501 can execute the steps of obtaining the picture data of the current frame picture and the picture data of each of the N continuous frame pictures adjacent to the current frame picture, obtaining a target data difference value according to the picture data of the current frame picture and the picture data of each of the N continuous frame pictures adjacent to the current frame picture, and adjusting the performance strategy of the processor of the terminal device according to the picture data of the current frame picture when the target data difference value is greater than a preset difference threshold. For details, please refer to the detailed description in the method examples, which will not be repeated here.

[0123] The performance adjustment apparatus 500 can further include at least one memory 502, which is configured to store program instructions and / or data. The memory 502 is coupled with the processor 501. The coupling in the embodiments of the present application is indirect coupling or communication connection between the apparatuses, units or modules, which can be electrical, mechanical or other forms, and is used for information interaction between the apparatuses, units or modules. The processor 501 can operate in cooperation with the memory 502. The processor 501 can execute the program instructions stored in the memory 502. At least one of the at least one memory can be included in the processor.

[0124] The performance adjustment apparatus 500 can further comprise a communication interface 503 for communicating with other devices through a transmission medium, so that the devices in the performance adjustment apparatus 500 can communicate with other devices. Exemplarily, the other devices can be network-side devices. The processor 501 can transceive data by using the communication interface 503. The communication interface 503 can be a transceiver in particular.

[0125] The specific connection medium between the communication interface 503, the processor 501 and the memory 502 is not limited in the embodiments of the present application. In FIG. 5, the memory 502, the processor 501 and the communication interface 503 are connected by a bus 504, which is represented by a thick line in FIG. 5, and the connection mode between other components is only illustrative and is not limited. The bus can be divided into an address bus, a data bus, a control bus and the like. In FIG. 5, only one thick line is used for representation, but it does not mean that there is only one bus or only one type of bus.

[0126] In the embodiments of the present application, the processor 501 can be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the disclosed methods, steps and logic block diagrams in the embodiments of the present application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in combination with the embodiments of the present application can be directly embodied as hardware processor execution or executed by a combination of hardware and software modules in the processor.

[0127] In the embodiments of the present application, the memory 502 can be a non-volatile memory such as a hard disk drive (HDD) or a solid-state drive (SSD), and can also be a volatile memory such as a random-access memory (RAM). The memory can be any other medium capable of carrying or storing desired program code in the form of instructions or data structures and capable of being accessed by a computer, but is not limited to this. The memory in the embodiments of the present application can also be a circuit or any other device capable of realizing a storage function, for storing program instructions and / or data.

[0128] Optionally, the embodiments of the present application further provide a terminal device, which comprises a processor and a memory having stored therein a computer program, the computer program being executed by the processor to implement all or part of the steps performed by the terminal device in the performance adjustment method according to the above various embodiments.

[0129] Optionally, the embodiment of the present application further provides a computer readable medium, which stores a computer program, and the computer program is executed by a processor to implement all or part of steps performed by a terminal device in the performance adjustment method according to various embodiments.

[0130] Optionally, the embodiment of the present application further provides a computer program product, which, when running on a computer, causes the computer to execute all or part of steps performed by a terminal device in the performance adjustment method according to various embodiments.

[0131] Optionally, the embodiment of the present application further provides an application publishing platform, which is used to publish a computer program product, and when the computer program product runs on a computer, causes the computer to execute all or part of steps performed by a terminal device in the performance adjustment method according to various embodiments.

[0132] It should be noted that: the apparatus provided by the above embodiments is only used to execute the control of the terminal device, and the above-mentioned division of each functional module is only used as an example for illustration, and in actual application, the above-mentioned functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and the specific implementation process is described in detail in the method embodiments, which will not be repeated here.

[0133] The above-mentioned serial numbers of the embodiments of the present application are only for description, and do not represent the advantages and disadvantages of the embodiments.

[0134] Those skilled in the art can understand that all or part of the steps of the above-mentioned embodiments can be completed by hardware, or by program to instruct related hardware to complete, and the program can be stored in a computer readable storage medium, and the storage medium mentioned above can be read only memory, magnetic disk or optical disk, etc.

[0135] The above-mentioned only for optional embodiments of the present application, and does not limit the present application, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application, should be included in the protection scope of the present application.

Claims

1. A performance adjustment method characterized by, The method is applied to a terminal device, and comprises the following steps: obtaining picture data of a current frame picture and picture data of N continuous frame pictures adjacent to the current frame picture, the picture data being used to indicate an amount of data for the terminal device to render a frame picture, N being a positive integer; obtaining a target data difference value according to the picture data of the current frame picture and the picture data of the N continuous frame pictures adjacent to the current frame picture, the target data difference value being a maximum difference between the picture data of the current frame picture and the picture data of each of the N continuous frame pictures; in a case where the target data difference value is greater than a preset difference threshold, adjusting a performance policy of a processor of the terminal device according to the picture data of the current frame picture.

2. The method of claim 1, wherein, The terminal device stores different performance policies corresponding to different data ranges, and the adjusting of the performance policy of the processor of the terminal device according to the picture data of the current frame picture comprises the following steps: determining a data range in which the picture data of the current frame picture is located; determining a performance policy corresponding to the data range according to the data range; adjusting a current performance policy of the processor to the performance policy corresponding to the data range.

3. The method of claim 1, wherein, The picture data of each frame picture is a number of layers of the picture. The obtaining of the picture data of the current frame picture and the picture data of the N continuous frame pictures adjacent to the current frame picture comprises the following steps: real-time recording and storing of the number of layers of each frame picture by a counter; obtaining the number of layers of the current frame picture and the number of layers of the N continuous frame pictures adjacent to the current frame picture.

4. The method of claim 3, wherein, In the case where the target data difference value is greater than the preset difference threshold, the method further comprises the following steps: if the number of layers of the current frame picture is greater than the number of layers of each of the N continuous frame pictures adjacent to the current frame picture, rendering the current frame picture after removing a target layer from the number of layers of the current frame picture.

5. The method of claim 1, wherein, The picture data of each frame picture is a number of brushes of the picture. The obtaining of the picture data of the current frame picture and the picture data of the N continuous frame pictures adjacent to the current frame picture comprises the following steps: real-time recording and storing of the number of brushes of each frame picture by a counter; obtaining the number of brushes of the current frame picture and the number of brushes of the N continuous frame pictures adjacent to the current frame picture.

6. The method of claim 2, wherein, The adjusting of the current performance policy of the processor to the performance policy corresponding to the data range comprises the following steps: obtaining a target value of a target working parameter according to the determined performance policy corresponding to the data range; adjusting a parameter value of the target working parameter to the target value, so that the processor reaches the performance policy corresponding to the data range.

7. The method of claim 6, wherein, The target working parameter comprises one or more of a working frequency of the processor, a number of cores of the processor, a cache level of the processor, and a number of threads for rendering of the processor.

8. The method according to any one of claims 1 to 7, characterized in that, The picture data comprises multiple data types, and different data types correspond to different weights, and the target data difference is obtained according to the picture data of the current frame picture and the picture data of each of the continuous N frame pictures adjacent to the current frame picture, and the target data difference comprises: According to each data type, the picture data of the current frame picture and the picture data of each of the continuous N frame pictures adjacent to the current frame picture are obtained to obtain a type data difference; the type data difference is the maximum difference between the picture data of the current frame picture and the picture data of each of the N frame pictures under the same data type; The target data difference is calculated according to the type data difference and the weight of each data type.

9. The method of claim 1, wherein, The target data difference is obtained according to the picture data of the current frame picture and the picture data of each of the continuous N frame pictures adjacent to the current frame picture, and the target data difference comprises: The picture data of the current frame picture is sequentially subtracted from the picture data of each of the continuous N frame pictures, and the maximum difference is obtained as the target data difference; or Each element in a set composed of the picture data of the current frame picture and the picture data of each of the continuous N frame pictures adjacent to the current frame picture is subtracted from each other, and the maximum difference is obtained as the target data difference.

10. The method of claim 1, wherein, The terminal device has a picture buffering function, and the picture data of each of the continuous N frame pictures adjacent to the current frame picture comprises: adjacent N frame pictures in a history picture frame, or adjacent N frame pictures in a non-displayed buffer picture frame, or N frame pictures composed of the history picture frame and the non-displayed buffer picture frame.

11. The method of claim 1, wherein, Different performance strategies correspond to different power consumptions of the processor of the terminal device, the larger the picture data of the current frame picture, the higher the demand for the performance of the processor, and the smaller the picture data of the current frame picture, the lower the demand for the performance of the processor.

12. The method of claim 1, wherein, The method further comprises: If the target data difference is not greater than the preset difference threshold, the performance strategy of the current processor is kept to continue running.

13. A performance adjustment apparatus, characterized by comprising: The device is applied to a terminal device, and the device comprises: A first obtaining module is configured to obtain picture data of a current frame picture and picture data of each of continuous N frame pictures adjacent to the current frame picture, wherein the picture data is used to indicate the data amount of rendering a frame picture by the terminal device, and N is a positive integer. A second obtaining module is configured to obtain a target data difference according to the picture data of the current frame picture and the picture data of each of the continuous N frame pictures adjacent to the current frame picture, wherein the target data difference is the maximum difference between the picture data of the current frame picture and the picture data of each of the N frame pictures. A first adjusting module is configured to adjust the performance strategy of the processor of the terminal device according to the picture data of the current frame picture if the target data difference is greater than a preset difference threshold.

14. The apparatus of claim 13, wherein, The terminal device stores different performance strategies corresponding to different data ranges, and the first adjusting module comprises a first determining unit, a second determining unit and a first adjusting unit. The first determining unit is configured to determine a data range in which picture data of the current frame picture is located. The second determining unit is configured to determine, according to the data range, a performance policy corresponding to the data range. The first adjusting unit is configured to adjust a current performance policy of the processor to the performance policy corresponding to the data range.

15. The apparatus of claim 13, wherein, The picture data of each frame picture is a number of layers of the picture; the first obtaining module comprises a first recording unit and a first obtaining unit. The first recording unit is configured to record and store the number of layers of each frame picture in real time by using a counter. The first obtaining unit is configured to obtain the number of layers of the current frame picture and the number of layers of the continuous N frame pictures adjacent to the current frame picture.

16. The apparatus of claim 15, wherein, The device further comprises: The first rendering module is configured to, if the number of layers of the current frame picture is greater than the number of layers of the continuous N frame pictures adjacent to the current frame picture, remove a target layer from the number of layers of the current frame picture, and render the current frame picture.

17. The apparatus of claim 14, wherein, The first adjusting unit is further configured to: obtain a target value of a target working parameter according to the determined performance policy corresponding to the data range; and adjust a parameter value of the target working parameter to the target value, so that the processor reaches the performance policy corresponding to the data range. The target working parameter comprises one or more of a working frequency of the processor, a core number of the processor, a cache level of the processor, and a thread number of the processor for performing rendering.

18. The apparatus of claim 17, wherein, The terminal device comprises a processor and a memory, and the memory stores a computer program which is executed by the processor to implement the performance adjustment method according to any one of claims 1 to 12.

19. A terminal device, comprising: The computer readable storage medium stores a computer program which is executed by the processor to implement the performance adjustment method according to any one of claims 1 to 12.

20. A computer-readable storage medium, characterized in that, ​

Citation Information

Patent Citations

  • Frame rate control method and device, terminal and storage medium

    CN110798738A

  • Video data rendering method and device and electronic equipment

    CN117724836A

  • Adaptive frame rate control

    US20140002730A1