Interface processing method, and electronic device and computer-readable storage medium

WO2026199996A1PCT designated stage Publication Date: 2026-10-01HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/138156
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-03-27
Filing Date
2025-11-27
Publication Date
2026-10-01

Smart Images

  • Figure CN2025138156_01102026_PF_FP_ABST
    Figure CN2025138156_01102026_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of terminals. Provided are an interface processing method, an electronic device and a computer-readable storage medium. In the present application, a deviation value between a device temperature during the running of an application program and a target temperature and / or a deviation value between an actual temperature rise rate corresponding to the device temperature and a target temperature rise rate is acquired, and on the basis of configuration information corresponding to the deviation value, an application interface of the application program is rendered and / or displayed. Since hardware resources corresponding to different configuration information are different, when the application interface of the application program is rendered and / or displayed on the basis of the configuration information corresponding to the deviation value, the hardware resources for rendering and / or displaying the application interface of the application program can be adjusted, such that the power consumption of a terminal is adjusted and thus the device temperature during the running of the application program is adjusted, thereby effectively reducing the probability of the device temperature exceeding a temperature control line and thus triggering frame rate reduction.
Need to check novelty before this filing date? Find Prior Art

Description

Interface processing methods, electronic devices and computer-readable storage media

[0001] This application claims priority to Chinese Patent Application No. 202510380085.9, filed on March 27, 2025, entitled "Interface Processing Method, Electronic Device and Computer-Readable Storage Medium", the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of terminal technology, and in particular to an interface processing method, electronic device, and computer-readable storage medium. Background Technology

[0003] With the widespread adoption of smart devices, the variety of applications installed on these devices is increasing. When these applications run, they consume hardware resources, such as the central processing unit (CPU) and graphics processing unit (GPU), leading to increased power consumption and higher device temperature.

[0004] When the terminal's temperature exceeds a certain threshold, it will trigger frequency throttling and frame rate reduction to lower power consumption. However, this can affect application performance, causing lag and reduced responsiveness (the time from when a user touches the screen to when the application screen changes), thus impacting the user experience. Therefore, regulating the terminal's temperature during application operation is a problem that urgently needs improvement. Summary of the Invention

[0005] Based on the above research, this application provides an interface processing method, an electronic device, and a computer-readable storage medium, which can effectively reduce the probability of the device temperature exceeding the temperature control line and triggering a frame rate reduction, and improve the problem of poor user thermal experience caused by high device temperature and rapid device temperature rise.

[0006] To achieve the above objectives, this application adopts the following technical solution:

[0007] In a first aspect, an interface processing method is provided, applied to a terminal, the method comprising: obtaining a first device temperature during application runtime; and rendering and / or displaying the application interface of the application according to configuration information corresponding to the first deviation value, provided that the temperature deviation value corresponding to the first device temperature is a first deviation value; wherein, the temperature deviation value includes the deviation value between the first device temperature and the target temperature and / or the deviation value between the actual temperature rise rate corresponding to the first device temperature and the target temperature rise rate; different temperature deviation values ​​correspond to different configuration information, and different configuration information corresponds to different hardware resources required.

[0008] The solution provided in the first aspect above involves the terminal obtaining the deviation between the device temperature and the target temperature during application runtime, and / or the deviation between the actual temperature rise rate and the target temperature rise rate corresponding to the device temperature. Based on the configuration information corresponding to the deviation value, the terminal renders and / or displays the application interface. Since different configuration information corresponds to different hardware resources, the hardware resources used for rendering and / or displaying the application interface can be adjusted when rendering and / or displaying the application interface based on the configuration information corresponding to the deviation value. This adjusts the terminal's power consumption, thereby regulating the device temperature during application runtime. This effectively reduces the probability of the device temperature exceeding the temperature control threshold and triggering a frame rate reduction, and also improves the poor user thermal experience caused by high device temperature and rapid temperature rise.

[0009] For example, different temperature deviation values ​​refer to two temperature deviation values ​​whose difference exceeds a set threshold. The set threshold can be set according to actual needs. For example, if the difference between the first deviation value and the second deviation value is greater than the set threshold, the first deviation value and the second deviation value are different temperature deviation values.

[0010] As one possible implementation, the method further includes: acquiring a second device temperature during application runtime, wherein the first and second device temperatures are device temperatures acquired at different times; and, if the temperature deviation value corresponding to the second device temperature is a second deviation value, rendering and / or displaying the application's interface based on configuration information corresponding to the second deviation value. Thus, by rendering and / or displaying the application's interface based on configuration information corresponding to temperature deviation values ​​at different times, the device temperature remains below the forced temperature control threshold during application use, ensuring a consistently good thermal experience and smooth, responsive operation.

[0011] For example, if the difference between the first deviation value and the second deviation value is less than or equal to a set threshold, the terminal can continue to render and / or display the application interface of the application using the configuration information corresponding to the first deviation value. If the difference between the first deviation value and the second deviation value is greater than the set threshold, the terminal can render and / or display the application interface of the application using the configuration information corresponding to the second deviation value.

[0012] As one possible implementation, the configuration information corresponding to the first deviation value is the configuration information of the target gear, and the configuration information is different for different gears. Before rendering and / or displaying the application interface based on the configuration information corresponding to the first deviation value, the method further includes: determining the gear change amount corresponding to the first deviation value, wherein the magnitude of the temperature deviation value is positively correlated with the gear change amount; and determining the target gear corresponding to the gear change amount. Thus, by determining the gear change amount based on the temperature deviation value, the adjustment amount of the configuration information can be accurately quantified, effectively reducing the probability of triggering forced temperature control. This ensures that the device temperature remains below the temperature control threshold during application use and does not affect the smooth and responsive user experience of the application until the device temperature reaches the temperature control threshold.

[0013] As one possible implementation, the target level is the level among multiple levels of the target power consumption adjustment method that corresponds to the level change. By dynamically adjusting the power consumption adjustment level through temperature negative feedback control, the probability of triggering forced temperature control can be reduced, ensuring that the device temperature remains below the temperature control threshold during application use, and that the smoothness and responsiveness of the application are not affected until the device temperature reaches the temperature control threshold.

[0014] As one possible implementation, the target power consumption adjustment method is the power consumption adjustment method that applies to the application among the power consumption adjustment methods supported by the terminal; different applications may have different power consumption adjustment methods applied, or different applications may have partially the same power consumption adjustment method applied. In this way, by applying different power consumption adjustment methods to different applications, different applications can run with an adapted power consumption adjustment method, thereby greatly improving the smoothness of application operation and ensuring that users always have a good thermal experience and smooth responsiveness when using applications.

[0015] As one possible implementation, the terminal supports multiple power adjustment methods that apply to the application. These multiple power adjustment methods have different priorities. The target power level is determined based on the change in power level, including: determining the target power adjustment method and its target power level according to the priority of each power adjustment method based on the change in power level; when there is only one target power adjustment method, it is the highest priority power adjustment method among those applied to the application, and its target power level is obtained based on the current power level and the change in power level; when there are N target power adjustment methods, these N methods are the top N priority power adjustment methods among those applied to the application, and the target power level of each of the N target power adjustment methods is obtained based on the current power level and the change in power level, with the sum of the changes in power level of the N target power adjustment methods being the change in power level; where N is an integer greater than 1. Thus, by adjusting through multiple power adjustment methods, a greater overall power consumption benefit can be achieved, and the probability of reaching the target steady-state temperature or target temperature rise rate through dynamic power level adjustment is higher.

[0016] As one possible implementation, different scenario information under the same gear level corresponds to different configuration information. The configuration information corresponding to the first deviation value is specifically the configuration information corresponding to the scenario information of the application under the target gear level.

[0017] For example, the terminal can obtain the device temperature and scene information during application runtime, determine the level change based on the deviation value corresponding to the device temperature, determine the target power consumption adjustment method and the target level of the target power consumption adjustment method based on the level change, and obtain the configuration information corresponding to the scene information at the target level. In this way, by subdividing the scene and setting different configuration information according to different scenes, and dynamically adjusting the level of the power consumption adjustment method based on scene information and temperature deviation, it can ensure that users have a good interface display quality experience in different scenarios, while also reducing the probability of triggering forced temperature control.

[0018] As one possible implementation method, power consumption adjustment methods include one or more of the following: super-resolution adjustment, variable rate shading adjustment, frame interpolation adjustment, or frame rate adjustment. Different power consumption adjustment methods can achieve different power consumption gains and interface display quality. Thus, by adjusting the power consumption of the application during runtime through these power consumption adjustment methods, the probability of the device temperature exceeding the temperature control limit and triggering forced frame rate reduction can be effectively reduced, thereby reducing the probability of the application's smoothness being affected.

[0019] As one possible implementation, the application can be any of the following: a game application, a 3D application, or an application with a 3D interactive interface. In this way, for applications with complex interface rendering, the probability of the device temperature exceeding the temperature control limit and triggering forced frame drops can be effectively reduced, thus reducing the probability of application smoothness being affected and improving the user's poor thermal experience.

[0020] Secondly, an interface processing device is provided for use in a terminal. This device includes a system status sensing module and a decision execution module. The system status sensing module is used to acquire a first device temperature during application runtime. The decision execution module is used to render and / or display the application interface of the application based on configuration information corresponding to the first deviation value, provided that the temperature deviation value corresponding to the first device temperature is a first deviation value. The temperature deviation value includes the deviation between the first device temperature and a target temperature and / or the deviation between the actual temperature rise rate corresponding to the first device temperature and the target temperature rise rate. Different temperature deviation values ​​correspond to different configuration information, and different configuration information requires different hardware resources.

[0021] The beneficial effects of the solution provided in the second aspect described above can be found in the description of any embodiment in the first aspect, and will not be repeated here. The controller has the function of implementing the behavior in the method examples of any embodiment in the first aspect described above. The function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.

[0022] Thirdly, an electronic device is provided, comprising: a memory for storing computer program instructions; and a processor for executing the computer program instructions to support the electronic device in implementing a method as described in any of the possible implementations of the first aspect.

[0023] Fourthly, a computer-readable storage medium is provided, on which computer program instructions are stored, which, when executed by a processing circuit, implement a method as described in any of the possible embodiments of the first aspect.

[0024] Fifthly, a computer program product comprising instructions is provided, which, when run on a computer, causes the computer to perform a method as described in any of the possible implementations of the first aspect. Attached Figure Description

[0025] Figure 1 shows the temperature change of the phone case during operation of the same game application on two different models provided in this application embodiment;

[0026] Figure 2 is a schematic diagram of the application scenario provided in the embodiments of this application;

[0027] Figure 3 is a schematic diagram of a terminal provided in an embodiment of this application;

[0028] Figure 4 is one of the system architecture diagrams provided in the embodiments of this application;

[0029] Figure 5 is a schematic diagram illustrating the power saving principle of the super-resolution adjustment method provided in the embodiments of this application;

[0030] Figure 6 is a schematic diagram of the frame interpolation principle provided in the embodiment of this application;

[0031] Figure 7 is a flowchart of one of the interface processing methods provided in the embodiments of this application;

[0032] Figure 8 is one of the timing diagrams for temperature regulation provided in the embodiments of this application;

[0033] Figure 9 is a schematic diagram illustrating the principle of temperature regulation provided in an embodiment of this application;

[0034] Figure 10 is a second schematic diagram of the system architecture provided in the embodiment of this application;

[0035] Figure 11 is a second schematic flowchart of the interface processing method provided in the embodiment of this application;

[0036] Figure 12 is a second timing diagram of temperature regulation provided in an embodiment of this application;

[0037] Figure 13 is a schematic diagram of the principle of temperature regulation based on negative feedback provided in the embodiment of this application;

[0038] Figure 14 is the third timing diagram of temperature regulation provided in the embodiments of this application;

[0039] Figure 15 is a third schematic flowchart of the interface processing method provided in the embodiments of this application;

[0040] Figure 16 is a schematic diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0041] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.

[0042] It should be noted that the collection, storage, use, processing, transmission, provision, and disclosure of user personal information involved in the technical solution of this application all comply with the provisions of relevant laws and regulations and do not violate public order and good morals. For example, in the technical solution of this application, the processing of user personal information is carried out with the user's authorization, which will be stated uniformly here and will not be repeated below.

[0043] In the description of the embodiments of this application, unless otherwise stated, " / " means "or", for example, A / B can mean A or B; "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. In addition, in the description of the embodiments of this application, "multiple" means two or more.

[0044] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this embodiment, unless otherwise stated, "a plurality of" means two or more.

[0045] Furthermore, in the embodiments of this application, words such as "exemplarily" and "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design scheme described as "exemplary" in this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the term "exemplary" is intended to present concepts in a concrete manner.

[0046] As described in the background section, when an application is running, it consumes terminal resources, which increases the terminal's power consumption and causes the terminal's temperature to rise.

[0047] The following explanation uses a mobile phone as the terminal, a game application as the application, and the temperature of the terminal as referenced to the temperature of the terminal's casing (hereinafter referred to as casing temperature). Please refer to Figure 1, which shows the temperature changes of the phone casing during the operation of the same game application on two different models (Model 1 and Model 2). As shown in Figure 1, the phone casing temperature can be divided into a heating phase and a steady-state phase during gameplay.

[0048] The heating phase shown in Figure 1 is due to the phone's heat generation exceeding its heat dissipation. When the phone's heat generation and heat dissipation reach equilibrium, a steady-state casing temperature is reached; this is the steady-state phase. The steady-state casing temperature is determined by several factors, including ambient temperature, overall power consumption, and the phone's heat dissipation coefficient. It can typically be estimated using the following formula:

[0049] Steady-state casing temperature = Ambient temperature + Total power consumption of the phone / Phone heat dissipation coefficient

[0050] As can be seen from the above formula, under the condition of constant ambient temperature and heat dissipation coefficient, the higher the power consumption of the mobile phone, the higher the final steady-state casing temperature will be.

[0051] Steady-state case temperature affects the user experience. To ensure a good user experience, game developers and mobile phone manufacturers test and adjust the performance and power consumption of game applications under test ambient temperatures (such as 25°C) before the application is released. This ensures that the steady-state case temperature caused by the combined power consumption of the game application and the phone's base power consumption is lower than the target steady-state case temperature, such as 48°C, 46°C, or other temperatures.

[0052] However, when the ambient temperature rises, such as in outdoor scenarios during summer, the final steady-state shell temperature reached by this method may still be higher than the set target steady-state shell temperature.

[0053] Currently, one approach to reduce steady-state case temperature is to forcibly limit the frequency of resources such as the CPU and GPU when the steady-state case temperature exceeds the target steady-state case temperature, and to forcibly reduce the frame rate of game applications (e.g., from 120fps to 90fps or 60fps). This reduces the overall frame rate of the game application, lowers power consumption, and thus reduces the steady-state case temperature below the target steady-state case temperature. However, forcibly reducing the frame rate of game applications can negatively impact the user experience. For example, when the frame rate drops from 120fps to 90fps or 60fps, or from 60fps to 30fps, the responsiveness of the game application decreases, resulting in user experience issues.

[0054] Another approach is to combine the similarity between the phone case temperature and inter-frame images to reduce the frame rate. Specifically, when the phone case temperature reaches a set value, the frame rate is reduced based on the similarity between inter-frame images. However, this approach may cause frequent frame rate fluctuations, resulting in inconsistencies in responsiveness for the user, and may still trigger the temperature control limit (i.e., the steady-state case temperature is higher than the target steady-state case temperature), thereby reducing the overall frame rate of the game application and affecting the user experience.

[0055] Based on the above research, this application provides an interface processing method. The terminal obtains the deviation between the device temperature and the target temperature during application runtime, and / or the deviation between the actual temperature rise rate and the target temperature rise rate corresponding to the device temperature. Based on the configuration information corresponding to the deviation value, the terminal renders and / or displays the application interface. Since different configuration information corresponds to different hardware resources, when rendering and / or displaying the application interface based on the configuration information corresponding to the deviation value, the hardware resources for rendering and / or displaying the application interface can be adjusted, thereby adjusting the terminal's power consumption and regulating the device temperature during application runtime. This can effectively reduce the probability of the device temperature exceeding the temperature control line and triggering a frame rate reduction. In addition, it can also improve the problem of poor user thermal experience caused by high device temperature and rapid temperature rise.

[0056] As an example, the interface processing method provided in this application embodiment can be used in scenarios where a terminal runs applications, and is particularly suitable for scenarios where the terminal runs applications with complex interfaces. For example, scenarios where the terminal runs 3D applications, or scenarios where the terminal runs game applications. The interface processing method provided in this application embodiment can also be used in scenarios where a device renders a 3D interactive interface.

[0057] The interface processing method provided in this application embodiment can solve the problem of application sluggishness and poor user thermal experience caused by the forced frame rate reduction of applications due to increased device temperature during application operation. Please refer to Figure 2, which is a schematic diagram of the application scenario provided in this application embodiment. As shown in Figure 2, the power consumption of the terminal increases when the user uses the application. This increased power consumption leads to an increase in the terminal's device temperature. The increased device temperature triggers temperature control, causing the application to be forced to reduce its frame rate. This forced frame rate reduction affects the application's smoothness and results in a poor user thermal experience. The solution provided in this application embodiment can effectively reduce the probability of the device temperature exceeding the temperature control threshold and triggering frame rate reduction, thereby reducing the probability of application smoothness being affected and improving the user thermal experience.

[0058] As an example, the aforementioned terminal may be a mobile phone, tablet computer, computer with wireless transceiver capabilities, virtual reality (VR) terminal device, augmented reality (AR) terminal device, mixed reality (MR) terminal device, wireless terminal in industrial control, wireless terminal in self-driving, wireless terminal in remote medical care, wireless terminal in smart grid, wireless terminal in transportation safety, wireless terminal in smart city, wireless terminal in smart home, vehicle terminal, RSU with terminal functionality, etc. This application does not limit the specific type of terminal.

[0059] To facilitate understanding of the interface processing method provided in this application embodiment, the structure of the terminal will be described below. Please refer to Figure 3, which is a schematic diagram of the structure of a terminal provided in this application embodiment. As shown in Figure 3, the terminal 100 may include a processor 110, a memory 120, a display screen 130, and a sensor module 140, etc.

[0060] Processor 110 may include one or more processing units, such as application processor (AP), modem processor, GPU, image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors.

[0061] The controller can serve as the central nervous system and command center of the terminal 100. The controller can generate operation control signals based on the instruction opcode and timing signals to control the fetching and execution of instructions.

[0062] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0063] The memory 120 can be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the terminal 100 by running the instructions stored in the memory 120. The memory 120 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback function, image playback function, etc.), etc. The data storage area may store data created during the use of the terminal 100 (such as audio data, phonebook, etc.). In addition, the memory 120 may include Double Data Rate Synchronous Dynamic Random Access Memory (DDR SDRAM), high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

[0064] As an example, the interface processing method provided in this application embodiment can be pre-loaded into the memory 120 in the form of a computer program product, and the processor 110 can execute the instructions in the memory to implement the steps of the interface processing method provided in this application embodiment.

[0065] In this embodiment, terminal 100 can implement display functions through a GPU, display screen 130, application processor, etc. The GPU is a microprocessor for image processing, connected to the display screen 130 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0066] The display screen 130 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a minimized display, a microLED, a quantum dot light-emitting diode (QLED), a low-temperature polycrystalline oxide (LTPO), etc. In some embodiments, the terminal 100 may include one or N display screens 130, where N is a positive integer greater than 1.

[0067] For example, in this embodiment of the application, the display screen 130 is used to display the application interface of the application.

[0068] In this embodiment, the sensor module 140 may include a temperature sensor and a touch sensor, etc.

[0069] Temperature sensors can be used to detect the device temperature of a terminal. This device temperature can be the terminal's casing temperature. The casing temperature is affected by the heat dissipated by the terminal's hardware system. The hardware system refers to all hardware components that affect heat conduction, such as the CPU, GPU, NPU, DDR, screen, communication, and audio modules. In some examples, the device temperature can also be the temperature of a system-on-a-chip (SoC), such as the CPU, GPU, NPU, or DDR chips.

[0070] In this embodiment of the application, after the temperature sensor detects the device temperature, the terminal can execute the interface processing method provided in this embodiment of the application based on the device temperature.

[0071] A touch sensor, also known as a "touch panel," can be located on the display screen 130. The touch sensor and the display screen 130 together form a touchscreen, also called a "touch screen." The touch sensor detects touch operations applied to or near it. The touch sensor can then transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 130. In other embodiments, the touch sensor may also be located on the surface of the terminal, in a different position than the display screen 130.

[0072] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the terminal 100. In other embodiments of this application, the terminal 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0073] The terminal provided in this application embodiment can run an operating system (OS). This operating system can be various operating systems used in the industry, such as an operating system based on OpenHarmony, like HarmonyOS; or other operating systems such as Android. TM iOS TM Mobile operating system; it can also be various open-source operating systems or their derivatives, such as Linux OS. TM This includes other embedded operating systems, as well as future new operating systems, such as AI operating systems based on artificial intelligence. An operating system is a set of interconnected system software programs that manage and control terminal operation, utilize and run hardware and software resources, and provide public services to organize user interaction. In a terminal, the operating system connects downwards to the physical devices at the hardware layer and upwards to provide a runtime environment for application software.

[0074] An operating system typically includes: a kernel layer, a system service layer, a framework layer, and an application layer.

[0075] The application layer comprises applications, which can include system applications and third-party applications. The framework layer provides application programming interfaces (APIs) and programming frameworks for the applications in the application layer. The framework layer can include: the ArkUI framework (which provides a complete infrastructure for the development of user interfaces (UI) for system applications, including UI functions such as components, layouts, animations, and interactive events, as well as real-time interface preview tools), the user program framework, and the Ability framework (an Ability is a lightweight application; the Ability framework schedules and manages the operation and lifecycle of Abilities). The system service layer comprises the core capabilities of the system, providing services to applications through the framework layer. For example, the system service layer can include a graphics subsystem, which includes UI components, layouts, animations, fonts, input events, window management, rendering, and other modules. The graphics service provides graphics rendering and display output functions, internally providing a smooth and efficient display experience through the rational utilization of system hardware resources. The kernel layer is the layer between hardware and software. The kernel layer can include hardware drivers and the operating system kernel. In addition to providing hardware drivers, the kernel layer also supports memory management, system process management, and other functions.

[0076] Understandably, due to the diverse types and forms of terminals, and the wide range of application scenarios, the operating systems used on these terminals may differ depending on their form and function, application scenarios, and user needs. The basic functions implemented in the terminal provided in this application can be implemented using a general-purpose operating system or a dedicated operating system; no specific limitation is imposed.

[0077] Based on the terminal operating system, the system architecture for implementing the interface processing method in this application embodiment will be described below. Please refer to Figure 4, which is one of the schematic diagrams of the system architecture provided in this application embodiment.

[0078] As shown in Figure 4, the system architecture may include: an application program, a system status awareness module, a decision-making module, a decision execution module, and a frequency modulation module. These functional modules can be deployed in software form on the terminal's operating system, such as within the various layers of the terminal's operating system. Different functional modules can be deployed on different layers or on the same layer. For example, the application program is deployed on the application layer of the operating system, the system status awareness module, decision-making module, and decision execution module can be deployed on the middleware layer of the operating system, and the frequency modulation module can be deployed on the kernel layer of the operating system. The specific layers to which they are deployed can be set according to actual needs, and this embodiment does not impose specific limitations.

[0079] An application is a computer program developed by a developer to perform one or more specific tasks. Applications can run on a terminal by calling relevant APIs of the terminal operating system.

[0080] The system status awareness module is used to sense relevant operating system states, such as the preset target temperature, target temperature rise rate, current device temperature, and the power consumption adjustment methods applied to the corresponding applications. In some examples, the target temperature may also be referred to as the target steady-state temperature; for ease of understanding, the target steady-state temperature will be used as an example below.

[0081] In this embodiment, the power consumption adjustment method refers to the method used to adjust the hardware resources occupied by rendering and / or displaying the application interface. Different applications may have different power consumption adjustment methods. The hardware resources occupied by the terminal displaying the application interface refer to the hardware resources required for the number of frames the terminal can display per second for the application.

[0082] Hardware resources refer to various resources used to perform tasks, including computing power, storage capacity, etc. In the embodiments of this application, hardware resources may include computing resources such as CPU, GPU, and NPU, as well as storage resources such as memory and DDR.

[0083] In this embodiment, the power consumption adjustment method can have multiple configuration settings, and these configuration settings are different. When the power consumption adjustment method is executed based on different configuration settings, there will be different power consumption gains and different interface display quality. The interface display quality may include interface image quality and / or frame rate.

[0084] The decision module is used to determine the power consumption adjustment method configuration information of the application based on the temperature deviation corresponding to the current device temperature. The temperature deviation may include the deviation between the device temperature and the target steady-state temperature and / or the deviation between the actual temperature rise rate and the target temperature rise rate.

[0085] The decision execution module is configured with multiple power consumption adjustment methods. The decision execution module is used to execute the power consumption adjustment method based on the configuration information, that is, to render and / or display the application interface of the application based on the power consumption adjustment method.

[0086] The frequency modulation module is used to adjust the frequency of hardware such as CPU, GPU, NPU, and DDR, enabling on-demand supply of hardware resources. Specifically, when the frequency is different, the CPU, GPU, NPU, and DDR can provide different capabilities; for example, the CPU, GPU, and NPU can provide different computing power, and DDR can provide different storage capacities.

[0087] As an example, after the decision execution module executes the power consumption adjustment method based on the configuration information, it can also send the hardware resources required for executing the power consumption adjustment method to the frequency modulation module. The frequency modulation module adjusts the frequency of hardware such as CPU, GPU, NPU, and DDR according to the required hardware resources.

[0088] In some examples, after the decision execution module performs power consumption adjustment based on configuration information, the frequency modulation module can monitor the load of the decision execution module in performing power consumption adjustment, determine the hardware resources required by the decision execution module in performing power consumption adjustment based on the load, and then adjust the frequency of hardware such as CPU, GPU, and NPU according to the hardware resources required for performing power consumption adjustment.

[0089] This application embodiment adjusts the frequency of hardware such as CPU, GPU, and NPU by configuring the hardware resources required for power consumption adjustment, thereby achieving power consumption adjustment and thus regulating the device temperature of the terminal.

[0090] Based on the architecture shown in Figures 3 and 4, the interface processing method provided in the embodiments of this application will be described in detail below. For ease of understanding, the power consumption adjustment method provided in the embodiments of this application will be described first.

[0091] As an example, the power consumption adjustment method provided in this application embodiment may be one or more of the following: super resolution adjustment method, variable rate shading (VRS) adjustment method, frame interpolation adjustment method, and frame rate adjustment method.

[0092] Super-resolution (hereinafter referred to as "super-resolution") is a technique for reconstructing high-resolution images from low-resolution images. Commonly used super-resolution algorithms include interpolation algorithms, edge-based methods, statistical methods, and deep learning-based methods.

[0093] For applications with complex user interfaces, rendering these interfaces consumes significant hardware resources. Taking a 60fps game as an example, each frame of the game needs to be rendered within 16.6ms. This 16.6ms frame rate consumes substantial CPU, GPU, and DDR resources, leading to excessive power consumption on the device. The computational cost of rendering each frame depends on factors such as the number of vertices in the model, materials, the amount of occlusion, and the rendering resolution. Super-resolution (SMR) allows the device to render a low-resolution image (e.g., 720p or 540p) instead of directly rendering a high-resolution image (e.g., 1080p). The low-resolution image is then super-resolutioned to the target high-resolution image. As long as the computational cost of SMR is less than the computational cost saved by rendering the low-resolution image, power savings can be achieved while maintaining the same target resolution.

[0094] Please refer to Figure 5, which is a schematic diagram illustrating the power-saving principle of the super-resolution adjustment method provided in this embodiment. As shown in Figure 5, the time consumed per frame for rendering a low-resolution image plus the super-resolution time is less than the time consumed per frame for rendering a high-resolution image. Thus, power saving can be achieved through the super-resolution adjustment method.

[0095] In the embodiments of this application, the power consumption generated by super-resolution is generally related to the super-resolution ratio, the complexity of the super-resolution algorithm, and the super-resolution method. Among them, the lower the complexity of the super-resolution algorithm, the more power is saved and the greater the power consumption benefit, but the image quality will also be reduced.

[0096] Super-resolution ratio represents the ratio by which a low-resolution image is super-resolutiond to a target high-resolution image; that is, the resolution ratio between the low-resolution image and the target high-resolution image. Generally, the higher the super-resolution ratio, the more power is saved, resulting in greater power efficiency. However, the image quality is lower compared to the target high-resolution image to be rendered; that is, the image quality of the target high-resolution image super-resolutiond by the super-resolution ratio is lower than that of the rendered target high-resolution image.

[0097] Super-resolution methods can include spatial super-resolution and temporal super-resolution. Spatial super-resolution uses only the current rendering frame, while temporal super-resolution uses both the current and historical rendering frames. At the same super-resolution ratio, temporal super-resolution generally provides better image quality than spatial super-resolution, but also saves less power. However, given a minimum acceptable image quality, temporal super-resolution may achieve a higher super-resolution ratio, potentially resulting in greater maximum power savings.

[0098] In this embodiment, the super-resolution ratio, super-resolution algorithm complexity, and super-resolution method can be used as adjustment factors for the super-resolution adjustment method. Based on this, when adjusting the terminal power consumption through the super-resolution adjustment method, the adjustment factors can be set, and different adjustment factors can result in different power consumption gains and image quality.

[0099] VRS (Dynamic Shader Slicing) is a technique for dynamically controlling shader precision. It allows applications to control the frequency and precision of pixel shader calls independently of the rendering target's resolution. For example, when shading a triangle, the same shader calculation can be applied to adjacent pixels based on color similarity, instead of calculating each pixel individually. This reduces shader consumption while maintaining a similar user interface, thereby reducing the consumption of hardware resources such as the GPU and ultimately lowering the device's power consumption.

[0100] The choice of shading precision can generally be determined by calculating the similarity between adjacent pixels, with different similarity thresholds corresponding to different shading precisions. Therefore, in this embodiment, the similarity threshold and shading precision can be used as adjustment factors for the VRS adjustment method, and different adjustment factors can result in different power consumption gains and image quality.

[0101] Compared to super-resolution adjustment, VRS adjustment may have a smaller impact on interface image quality, but the power consumption gain may also be relatively smaller.

[0102] Frame interpolation reduces the load on the original rendering process by predicting new generated frames from the original rendered frames. Frame interpolation can be divided into two types: interpolation and extrapolation.

[0103] Interpolation frames predict generated frames using historical and future frames, which are the original rendered frames. For example, as shown in Figure 6(a), interpolation frames can predict the (N+0.5)th frame (generated frame) using the Nth frame (historical frame) and the (N+1)th frame (future frame). Because interpolation frames use future frame information, the future frame cannot be directly displayed after rendering; it must wait until the generated frame is calculated and displayed. Therefore, interpolation frames have a responsiveness issue, but offer better image quality and higher power efficiency. Extrapolation frames predict generated frames using historical frames. For example, as shown in Figure 6(b), extrapolation frames use the (N-1)th frame (historical frame) and the Nth frame (historical frame) to predict the (N+0.5)th frame. Since extrapolation frames only use historical frame information, the historical frames can be directly displayed after rendering without waiting. Therefore, extrapolation frames generally do not have a responsiveness issue, but the image quality is worse than interpolation frames, and the power efficiency may be lower.

[0104] In some examples, frame interpolation can be categorized into one-to-one interpolation and one-to-many interpolation. One-to-one interpolation involves inserting a generated frame between two original rendered frames. One-to-many interpolation involves inserting multiple generated frames between two original rendered frames. Compared to one-to-one interpolation, one-to-many interpolation offers greater power efficiency. Furthermore, with the same hardware resources, one-to-one interpolation results in better UI quality than one-to-many interpolation.

[0105] Frame interpolation can be achieved through various interpolation algorithms, such as reprojection, motion vector (MV) method, artificial intelligence (AI) optical flow method, and fusion of multiple algorithms.

[0106] In the embodiments of this application, different frame interpolation algorithms or fusion algorithms can be used during frame interpolation, resulting in different power consumption gains and different image quality.

[0107] Since frame interpolation predicts and generates frames from the original rendered frames, inaccurate predictions can occur in rapidly changing scenes such as fast motion, rapid rotation, and special effects, resulting in lower image quality. Therefore, for scenes requiring high image quality, frame interpolation can be disabled in rapidly changing scenarios. This also reduces the overall power consumption benefits of frame interpolation.

[0108] In this application embodiment, the frame interpolation method, frame interpolation algorithm (or frame interpolation algorithm fusion method), and the proportion of effective scenes can be used as adjustment factors for the frame interpolation adjustment method. The frame interpolation algorithm fusion method can be the weights of different frame interpolation algorithms during fusion; for example, reprojection and MV methods can be fused with different weights. The proportion of effective scenes refers to the percentage of scenes for which effective frame interpolation occurs. For example, if the terminal needs to render N scenes, and the proportion of effective scenes is 20%, then the terminal only performs frame interpolation on N*20% of the scenes. These N*20% of scenes can be non-rapidly changing scenes.

[0109] Based on this, when adjusting the terminal power consumption through frame interpolation, adjustment factors can be set, and different adjustment factors can result in different power consumption gains and image quality.

[0110] Compared to super-resolution adjustment and VRS adjustment, frame interpolation adjustment may have a greater impact on the interface image quality, but it may also have a relatively greater power consumption benefit. The probability of achieving control over the target steady-state temperature or target temperature rise rate is higher based on frame interpolation adjustment.

[0111] Frame rate refers to the number of graphics displayed or frames rendered per second. A higher frame rate means the application displays more graphics or renders more frames per second. Therefore, a higher frame rate results in a smoother application interface, but also increases the power consumption of the terminal. This application embodiment uses the frame rate as an adjustment factor in the frame rate adjustment method. Based on this, when adjusting terminal power consumption through frame rate adjustment, the adjustment factor can be set, and different adjustment factors can yield different power consumption benefits.

[0112] Compared to super-resolution adjustment, VRS adjustment, and frame interpolation, frame rate adjustment may have a greater impact on responsiveness, but it may also offer relatively greater power savings. Frame rate adjustment is more likely to achieve control over the target steady-state temperature or target temperature rise rate.

[0113] It should be noted that the methods of adjusting super resolution, adjusting VRS, frame interpolation, and frame rate adjustment are merely illustrative examples of power consumption adjustment methods in this application's embodiments and are not intended as specific limitations. In some examples, other methods may also be used. For instance, power consumption adjustment methods may also include occlusion culling, dynamic LOD (level of detail), and mesh simplification. Occlusion culling, dynamic LOD, and mesh simplification can adjust the precision of interface rendering. Different rendering precisions can correspond to different power consumption gains and image quality.

[0114] The following section uses power consumption adjustment methods, including super-resolution adjustment, VRS adjustment, frame interpolation adjustment, and frame rate adjustment, as examples to elaborate on the interface processing method provided in the embodiments of this application.

[0115] The interface processing method provided in this application embodiment can be implemented through the flowchart shown in FIG7. As shown in FIG7, the interface processing method provided in this application embodiment includes S201 to S203.

[0116] S201, The terminal obtains the device temperature during application runtime and determines the temperature deviation value corresponding to the device temperature.

[0117] The application can be one with a complex interface, such as a game application or a 3D application (like Metaverse). TM Applications with 3D interactive interfaces, etc.

[0118] When the application interface is complex, the terminal will consume more hardware resources to render the application interface, resulting in higher power consumption when the terminal is running the application. This can easily lead to the device temperature exceeding the temperature control line and triggering a forced frame drop.

[0119] In order to reduce the probability of forced frame drop triggered by temperature exceeding the temperature control line, in this embodiment of the application, the terminal can obtain the device temperature during application runtime and determine the temperature deviation value based on the device temperature.

[0120] In this embodiment, when the application is running, the terminal can obtain the device temperature in real time or according to a time period, without any specific limitation. When obtaining the device temperature according to a time period, the time period can depend on the time required for the interface processing method to act on the terminal's operating system and ultimately produce a temperature change. This time is usually in the range of seconds, and the specific time is not specifically limited in this embodiment.

[0121] As an example, a terminal can obtain the device temperature through a temperature sensor. Exemplarily, while an application is running, the terminal can instruct the temperature sensor to monitor the case temperature or the SOC temperature. After detecting the temperature, the temperature sensor can feed it back to the terminal, thus allowing the terminal to obtain the device temperature. Understandably, the case temperature or SOC temperature fed back by the temperature sensor is the device temperature.

[0122] In the embodiments of this application, the temperature deviation value can be the deviation between the device temperature during application operation and the target steady-state temperature, or it can be the deviation between the actual temperature rise rate and the target temperature rise rate of the device, or it can be a combination of the two, and there is no specific limitation.

[0123] The deviation between the equipment temperature and the target steady-state temperature refers to the difference between the target steady-state temperature and the equipment temperature. This difference can be positive (meaning the target steady-state temperature is greater than the equipment temperature) or negative (meaning the target steady-state temperature is less than the equipment temperature). In some examples, the equipment temperature may even be equal to the target steady-state temperature.

[0124] Similarly, the deviation between the actual and target rate of temperature rise in a device refers to the difference between the target and actual rates of temperature rise. This difference can be positive (meaning the target rate is greater than the actual rate) or negative (meaning the target rate is less than the actual rate). In some examples, the target rate of temperature rise may even be equal to the actual rate of temperature rise.

[0125] In this embodiment, the target steady-state temperature represents the target temperature at which the heat generated and dissipated by the terminal during application operation reach equilibrium. The target steady-state temperature is less than or equal to the temperature at which the terminal is forced to reduce its frequency and frame rate, i.e., the terminal's temperature control limit. The terminal's temperature control limit can be set by the terminal manufacturer.

[0126] Temperature rise rate refers to the rate at which the equipment temperature increases. The temperature rise rate can be obtained using the following formula: (Current equipment temperature - Equipment temperature before time T) / Time T. Time T can be set according to requirements and is not limited in its specific value.

[0127] In this embodiment, the actual temperature rise rate of the device refers to the rate at which the device temperature increases within time T after the application starts running. The target temperature rise rate represents the target rate at which the device temperature rises while the application is running.

[0128] Considering that different applications consume different amounts of power during runtime, this application embodiment allows for targeted adjustment of the terminal's device temperature to reduce the probability of forced frequency and frame rate reduction and improve the user's thermal experience. Different applications can have different target steady-state temperatures. For each application, the target steady-state temperature can be set before it is released to the market, based on factors such as the application's workload and user experience model.

[0129] Similarly, different applications can have different target temperature rise rates. For each application, the target temperature rise rate can be determined by testing it before it is released on the app store.

[0130] As an example, the target steady-state temperature of the application can be pre-stored in the terminal, and the terminal can retrieve the pre-stored target steady-state temperature locally.

[0131] As another example, the terminal can also receive the target steady-state temperature of the application pushed from the cloud. For instance, after the developer sets the target steady-state temperature of the application, the target steady-state temperature of the application can be pushed to the terminal via the cloud push function, so that the terminal can obtain the target steady-state temperature of the application.

[0132] Similarly, the target temperature rise rate of an application can be pre-stored on the terminal, which can retrieve the pre-stored target temperature rise rate locally. The terminal can also receive the target temperature rise rate of an application pushed from the cloud.

[0133] S202, the terminal determines the configuration information of the target power consumption adjustment method corresponding to the temperature deviation value.

[0134] In this embodiment, when the device temperature is greater than the target steady-state temperature, it indicates that the terminal temperature is high, posing a risk of forced frequency and frame reduction. When the actual temperature rise rate of the device is greater than the target temperature rise rate, it indicates that the terminal is heating up rapidly, which may easily lead to the temperature exceeding the temperature control line and triggering forced frame reduction.

[0135] Based on this, after acquiring the device temperature, the terminal can adjust power consumption based on the deviation between the device temperature and the target steady-state temperature, and / or based on the deviation between the actual temperature rise rate and the target temperature rise rate. Considering that the rendering and display of the application interface consumes significant hardware resources when the terminal is running an application, in this embodiment, the terminal can adjust the hardware resources consumed by the rendering and / or display of the application interface, thereby adjusting the terminal's power consumption when running the application.

[0136] In this embodiment, the terminal can adjust the hardware resources used for rendering and / or displaying the application interface through power consumption adjustment. For example, super-resolution adjustment, VRS adjustment, and frame interpolation adjustment can all be used to adjust the hardware resources used for rendering the application interface, and frame rate adjustment can be used to adjust the hardware resources used for displaying the application interface.

[0137] In this embodiment, the configuration information for the power consumption adjustment method corresponds to different power consumption gains and interface display quality. Therefore, the terminal can adjust its power consumption by adjusting the configuration information of the power consumption adjustment method. Understandably, after the configuration information of the power consumption adjustment method changes, the interface display quality of the application interface obtained based on the power consumption adjustment method will also change.

[0138] In the embodiments of this application, the configuration information of the power consumption adjustment method refers to the specific configuration of the adjustment factor of the power consumption adjustment method.

[0139] For example, let's take super-resolution adjustment as an example to illustrate the power consumption regulation method. The adjustment factors of the super-resolution adjustment method include the super-resolution multiplier, the super-resolution algorithm complexity, and the super-resolution method. The configuration information of the super-resolution adjustment method can include the following information: the super-resolution multiplier is A, the super-resolution algorithm complexity is X, and the super-resolution method is time-domain super-resolution.

[0140] For example, let's take the VRS (Dynamic Reduction) adjustment method as an example to illustrate the power consumption adjustment. The adjustment factor of the VRS adjustment method is the similarity threshold between adjacent pixels, that is, the similarity threshold and the shading precision. Therefore, the configuration information of the VRS adjustment method can include the specific value of the similarity threshold and the specific value of the corresponding shading precision.

[0141] For example, let's take frame interpolation as an example to illustrate power consumption adjustment. The adjustment factors of frame interpolation include the frame interpolation method, the frame interpolation algorithm, and the proportion of the effective scene. Therefore, the configuration information of the frame interpolation method can include the following information: the frame interpolation method is interpolation, the frame interpolation algorithm is AI optical flow, and the proportion of the effective scene is 'a'.

[0142] For example, let's take power consumption adjustment as a frame rate adjustment method for illustration. The adjustment factor for the frame rate adjustment method is the frame rate, so the configuration information for the frame rate adjustment method can include the specific value of the frame rate.

[0143] In this embodiment, the target power consumption adjustment method can be the power consumption adjustment method that applies to the application among the power consumption adjustment methods supported by the terminal. Here, the power consumption adjustment methods supported by the terminal refer to all power consumption adjustment methods configured in the terminal. The power consumption adjustment method that applies to the application refers to the power consumption adjustment method used by the terminal to render and / or display the application interface.

[0144] The terminal can first determine the target power consumption adjustment method, and then determine the configuration information of the target power consumption adjustment method corresponding to the temperature deviation value.

[0145] As one example, different applications may have different power regulation methods in effect. As another example, different applications may have partially the same power regulation method in effect. As yet another example, different applications may have the same power regulation method in effect.

[0146] For example, for each application, the development team can determine the effective power adjustment methods for that application through pre-testing and establish a mapping between the application's application identifier and the effective power adjustment methods. This mapping can be pushed to the terminal via cloud push functionality. For each application, this can involve testing the application's power consumption and interface display quality under different power adjustment methods. Based on these results, the effective power adjustment methods for that application are determined according to the adjustment requirements. Each application can have one or more effective power adjustment methods.

[0147] After receiving the correspondence, the terminal can determine the target power consumption adjustment method for each application based on the correspondence.

[0148] Understandably, if only one power adjustment method among the power adjustment methods supported by the terminal applies to the application, then according to this correspondence, the target power adjustment method can be one. If multiple power adjustment methods among the power adjustment methods supported by the terminal apply to the application, then according to this correspondence, there can be multiple target power adjustment methods.

[0149] As an example, the terminal stores the correspondence between temperature deviation values ​​and configuration information for each power consumption adjustment method. This correspondence includes the correspondence between the deviation of the device temperature from the target steady-state temperature and the configuration information for each power consumption adjustment method, as well as the correspondence between the deviation of the actual temperature rise rate from the target temperature rise rate and the configuration information for each power consumption adjustment method.

[0150] For each power consumption adjustment method, different temperature deviation values ​​can correspond to different configuration information for that power consumption adjustment method.

[0151] After obtaining the temperature deviation value during application runtime, the terminal can obtain the configuration information of the target power consumption adjustment method corresponding to the temperature deviation value based on the correspondence between the temperature deviation value and the configuration information of each power consumption adjustment method.

[0152] Taking the temperature deviation value as the deviation between the device temperature and the target steady-state temperature, and the target power consumption adjustment method as super-resolution adjustment, as an example, the configuration information for super-resolution adjustment is P1 when the temperature deviation value is in the interval [T1, T2]. When the temperature deviation value is in the interval (T2, T3), the configuration information for super-resolution adjustment is P2. When the temperature deviation value is in the interval (T3, T4), the configuration information for super-resolution adjustment is P3. If the temperature deviation value obtained by the terminal during application runtime is in the interval [T1, T2], then the terminal determines the configuration information as P1 based on the temperature deviation value. It can be understood that P1, P2, and P3 are the specific configurations of the adjustment factors for super-resolution adjustment, as described above.

[0153] Taking the temperature deviation value as the deviation between the device temperature and the target steady-state temperature, and the target power consumption adjustment methods as super-resolution adjustment and VRS adjustment, this explanation is as follows: When the temperature deviation value is in the interval [T1, T2], the configuration information for the super-resolution adjustment method is P1, and the configuration information for the VRS adjustment method is V1. When the temperature deviation value is in the interval (T2, T3), the configuration information for the super-resolution adjustment method is P2, and the configuration information for the VRS adjustment method is V2. When the temperature deviation value is in the interval (T3, T4), the configuration information for the super-resolution adjustment method is P3, and the configuration information for the VRS adjustment method is V3. If the temperature deviation value obtained by the terminal during application runtime is in the interval [T1, T2], then the terminal determines the configuration information P1 and V1 based on the temperature deviation value. It can be understood that V1, V2, and V3 are the specific configurations of the adjustment factors for the VRS adjustment method, as described above.

[0154] Similarly, when the temperature deviation value is the deviation between the actual temperature rise rate and the target temperature rise rate of the equipment, the process of determining the configuration information of the target power consumption adjustment mode based on the temperature deviation value can refer to the process of determining the configuration information based on the deviation value between the equipment temperature and the target steady-state temperature, and will not be elaborated here.

[0155] As an example, when the temperature deviation value includes the deviation between the device temperature and the target steady-state temperature and the deviation between the actual temperature rise rate and the target temperature rise rate, the terminal can use the configuration information of the target power consumption mode corresponding to the deviation between the device temperature and the target steady-state temperature, or it can use the configuration information of the target power consumption mode corresponding to the deviation between the actual temperature rise rate and the target temperature rise rate.

[0156] In some examples, where the temperature deviation value includes the deviation between the device temperature and the target steady-state temperature and the deviation between the actual temperature rise rate and the target temperature rise rate, the terminal can also compare the deviation between the device temperature and the target steady-state temperature and the deviation between the actual temperature rise rate and the target temperature rise rate, determine the final deviation value based on the comparison, and determine the configuration information of the target power consumption mode based on the final deviation value.

[0157] For example, if the deviation between the device temperature and the target steady-state temperature is less than a first temperature threshold, but the deviation between the actual temperature rise rate and the target temperature rise rate is greater than a first rate threshold, the terminal device temperature is high and the temperature rise rate is slow. In this case, the deviation between the device temperature and the target steady-state temperature can be used as the final deviation value. As another example, if the deviation between the device temperature and the target steady-state temperature is less than a first temperature threshold, and the deviation between the actual temperature rise rate and the target temperature rise rate is also less than a first rate threshold, the terminal device temperature is high and the temperature rise rate is also high. To quickly adjust the device temperature, the deviation between the device temperature and the target steady-state temperature can be used as the final deviation value. Yet another example, if the deviation between the device temperature and the target steady-state temperature is greater than a first temperature threshold, and the deviation between the actual temperature rise rate and the target temperature rise rate is also greater than a first rate threshold, the terminal device temperature is low and the temperature rise rate is slow. In this case, any deviation value can be used as the final deviation value. For example, if the deviation between the device temperature and the target steady-state temperature is greater than the first temperature threshold, and the deviation between the actual temperature rise rate and the target temperature rise rate is less than the first rate threshold, then the terminal device temperature is low and the temperature rise rate is high. In this case, the deviation between the actual temperature rise rate and the target temperature rise rate can be taken as the final deviation value.

[0158] After determining the final deviation value, the terminal can obtain the configuration information of the target power consumption adjustment method corresponding to the final deviation value based on the correspondence between the temperature deviation value and the configuration information of each power consumption adjustment method.

[0159] Taking a game application as an example, and the temperature deviation value as the deviation between the device temperature and the target steady-state temperature, the terminal can monitor the device temperature during the game application's operation and determine the deviation between the device temperature and the target steady-state temperature corresponding to the game application. Then, based on this deviation value and the correspondence between the temperature deviation value and the configuration information of each power consumption adjustment method, the configuration information of the target power consumption adjustment method (such as super-resolution adjustment method) that is effective for the game application can be determined.

[0160] S203, the terminal runs the target power consumption adjustment mode according to the configuration information, and renders and / or displays the application interface of the application.

[0161] After receiving the configuration information, the terminal can run the target power consumption adjustment mode according to the configuration information to render and / or display the application interface of the application.

[0162] In this embodiment of the application, since different configuration information corresponds to different hardware resources, the hardware resources required by the terminal to run the target power consumption adjustment method based on the configuration information will also change after the terminal determines the configuration information of the target power consumption adjustment method through the temperature deviation value.

[0163] Since the frequency of hardware resources affects their performance, different frequencies result in different power consumption. Therefore, when the required hardware resources change, the terminal can adjust the frequency of those resources according to its configuration information. This frequency change alters the power consumption of the hardware resources, thus affecting the terminal's overall power consumption. Consequently, this change in power consumption also affects the terminal's temperature, thus achieving temperature regulation.

[0164] For example, let's take the super-resolution adjustment method as an example to illustrate the concept. When the application is first running, the terminal runs the super-resolution adjustment method with the default configuration to render the application's interface. Specifically, when running the super-resolution adjustment method with the default configuration, the hardware resources required for the terminal to render the application's interface include computing power S1 from the CPU, computing power S2 from the GPU, computing power S3 from the NPU, and storage C1 from DDR.

[0165] After the terminal obtains the device temperature, the configuration information for the super-resolution adjustment method is determined as configuration information A based on the temperature deviation value corresponding to the device temperature. When the terminal runs the super-resolution adjustment method with configuration information A, the hardware resources required for the terminal to render the application interface include computing power S4 provided by the CPU, computing power S5 provided by the GPU, computing power S6 provided by the NPU, and storage C2 provided by DDR.

[0166] When the required hardware resources change, the terminal will adjust the frequency of the CPU, GPU, NPU, and DDR according to the hardware resources required by the configuration information, so as to change the performance of the CPU, GPU, NPU, and DDR, thereby enabling the CPU, GPU, and NPU to provide corresponding computing power and the DDR to provide corresponding storage, achieving on-demand allocation of hardware resources.

[0167] When the frequency of the CPU, GPU, NPU, and DDR changes, the performance of the CPU, GPU, NPU, and DDR changes, which in turn causes the power consumption of the CPU, GPU, NPU, and DDR to change.

[0168] In this embodiment of the application, after the terminal runs the power consumption adjustment mode according to the configuration information, not only can the power consumption of the terminal be adjusted, but also the interface display quality of the application can be adjusted.

[0169] For example, let's take super-resolution adjustment as an example to illustrate power consumption regulation. If the determined super-resolution adjustment configuration information includes: a super-resolution multiplier of A, a super-resolution algorithm complexity of X, and a time-domain super-resolution method, then the terminal can first render a low-resolution application interface, and then, according to the super-resolution multiplier of A and the super-resolution algorithm complexity of X, perform time-domain super-resolution of the low-resolution application interface to the target high-resolution application interface. The target high-resolution application interface refers to the resolution that the application interface should achieve. When the terminal performs super-resolution processing on the application interface with different super-resolution multipliers, super-resolution algorithm complexities, and super-resolution methods, the application interface will have different display qualities, such as image quality, and the hardware resources required by the terminal will also differ. In this way, both the display quality of the application interface and power consumption can be adjusted.

[0170] For example, let's take the VRS (Dynamic Reflection and Sorting) adjustment method as an example to illustrate the power consumption regulation. If the configuration information corresponding to the determined VRS adjustment method includes: when the similarity between adjacent pixels is less than the similarity threshold Y, the corresponding shading precision is S1; when the similarity between adjacent pixels is greater than or equal to the similarity threshold Y1, the corresponding shading precision is S2. Therefore, when the terminal renders the application interface, it can use shading precision S1 when the similarity between adjacent pixels is less than the similarity threshold Y, and use shading precision S2 when the similarity between adjacent pixels is greater than or equal to the similarity threshold Y1. Thus, by rendering the application interface based on different similarity thresholds and shading precisions, the application interface will have different display qualities, such as image quality, and the terminal will also generate different power consumption. This achieves both the adjustment of the application's interface display quality and the adjustment of power consumption.

[0171] For example, taking frame interpolation as the power consumption adjustment method, if the configuration information for the determined frame interpolation method includes interpolation method as intrinsic frame interpolation, interpolation algorithm as AI optical flow, and the proportion of the effective scene as 'a', then when the terminal renders the application interface, it can interpolate frames using the AI ​​optical flow method and the proportion 'a' of the effective scene. Thus, when the terminal renders the application interface, based on different interpolation methods, algorithms, and proportion values, the application interface presented by the terminal will have different display qualities, such as image quality, and the terminal will also consume different amounts of power. In this way, both the display quality and power consumption of the application interface can be adjusted.

[0172] For example, taking frame rate adjustment as a power consumption adjustment method, if the configuration information for the determined frame rate adjustment method indicates a frame rate of Z, then the terminal can render and display the application interface at a frame rate of Z. Thus, when the terminal renders and displays the application interface at different frame rates, the interface displayed will have different display quality, such as frame rate, and the terminal will also consume different amounts of power. In this way, both the display quality and power consumption of the application interface can be adjusted.

[0173] As an example, when the target power consumption adjustment method includes multiple power consumption adjustment methods, the terminal can run each power consumption adjustment method according to its respective configuration information. This is illustrated using the example of a target power consumption adjustment method including super-resolution adjustment and VRS adjustment. When the target power consumption adjustment method includes both super-resolution adjustment and VRS adjustment, the configuration information includes the configuration information for both methods. The terminal can run the super-resolution adjustment method according to its configuration information and the VRS adjustment method according to its configuration information.

[0174] Understandably, after the terminal operates according to the configuration information, it can detect changes in the device temperature and recalculate the temperature deviation based on the changed device temperature. If the temperature deviation is not zero, new configuration information is determined based on the recalculated temperature deviation, and this process is repeated until the temperature deviation reaches zero, at which point the temperature adjustment ends.

[0175] Based on the architecture shown in Figure 3, the embodiment shown in Figure 7 will be explained using the temperature deviation value as an example of the deviation between the device temperature and the target steady-state temperature. Referring to Figure 8, when a user launches an application, the application runs, causing the terminal to heat up. The system status awareness module obtains the device temperature and the target steady-state temperature during application operation and sends these values ​​to the decision module. The decision module obtains the power consumption adjustment method corresponding to the application from the system status awareness module, calculates the deviation between the device temperature and the target steady-state temperature, determines the configuration information of the power consumption adjustment method corresponding to the deviation value, and sends the configuration information to the decision execution module. The decision execution module runs the power consumption adjustment method corresponding to the application according to the configuration information. The frequency modulation module adjusts the frequency points of hardware such as the CPU, GPU, NPU, and DDR according to the hardware resources required by the decision execution module to run the power consumption adjustment method, realizing on-demand supply of hardware resources, thereby adjusting power consumption and achieving the purpose of temperature regulation.

[0176] Understandably, after the adjustment is completed, the system state sensing module can continue to acquire the device temperature and send the newly acquired device temperature to the decision module. The decision module calculates the deviation between the device temperature and the target steady-state temperature. If the deviation is 0, the decision is not to perform temperature adjustment; if the deviation is not 0, the adjustment continues.

[0177] This application embodiment obtains the deviation between the device temperature during application runtime and the target steady-state temperature, and / or the deviation between the actual temperature rise rate and the target temperature rise rate. Based on the temperature deviation, it obtains configuration information for the target power consumption adjustment method. According to the configuration information, it adjusts the terminal's power consumption, thereby regulating the device temperature during application runtime. This effectively reduces the probability of the device temperature exceeding the temperature control threshold and triggering a frame rate reduction. Furthermore, it can improve the poor user thermal experience caused by high device temperature and rapid temperature rise.

[0178] This application embodiment applies different power consumption adjustment methods to different applications, so that different applications can run with an adapted power consumption adjustment method, thereby greatly improving the smoothness of application operation and giving users a good thermal experience and smooth responsiveness when using applications.

[0179] To further reduce the probability of device temperature exceeding the temperature control limit and triggering frequency and frame rate reduction, as well as the probability of poor user experience due to frame rate issues, this application embodiment allows for setting different power consumption adjustment levels, each corresponding to different configuration information. Then, using a negative feedback adjustment strategy, the power consumption adjustment level is dynamically increased or decreased based on the temperature deviation during application runtime. That is, in this application embodiment, the interface processing method can be a negative feedback adjustment strategy.

[0180] The following example illustrates the process of adjusting the device temperature during application runtime compared to the target steady-state temperature. As shown in Figure 9, during application operation, the terminal detects the device temperature and calculates the deviation between the device temperature and the target steady-state temperature. Based on the deviation, the adjustment level is calculated, and the target power consumption adjustment mode is adjusted accordingly.

[0181] For example, when the deviation between the device temperature and the target steady-state temperature is positive (i.e., the device temperature is lower than the target steady-state temperature), the power consumption adjustment level is reduced, increasing the overall power consumption of the device to improve the application's interface display quality and enhance the user experience. When the deviation between the device temperature and the target steady-state temperature is negative (i.e., the device temperature is higher than the target steady-state temperature), the power consumption adjustment level is increased, reducing the overall power consumption of the device. While this may reduce the application's interface display quality, it can improve the smoothness of the application's operation, enhancing the user's thermal experience and responsiveness.

[0182] Based on the negative feedback-based power consumption adjustment strategy, the system architecture provided in this application embodiment may further include the architecture shown in Figure 10. As shown in Figure 10, this system architecture may include: an application program, an application state awareness module, a system state awareness module, an application program acceleration decision-making module, an acceleration decision execution module, a decision execution module, and a frequency modulation module. It is understood that the above functional modules can be deployed in software form on the terminal operating system, such as within the various layers of the terminal operating system. Different functional modules can be deployed in different layers or in the same layer. For example, the application program is deployed in the application layer of the operating system, the application state awareness module, the system state awareness module, the application program acceleration decision-making module, the acceleration decision execution module, and the decision execution module can be deployed in the middleware layer of the operating system, and the frequency modulation module can be deployed in the kernel layer of the operating system.

[0183] The descriptions of the application program, system status awareness module, and frequency modulation module can be found above and will not be repeated here.

[0184] The application state awareness module is used to perceive the application's context information. This context information can be the event scenarios presented by the application's interface. Taking a game application as an example, game application scenarios include the game lobby, UI interface, character dialogue, character exploration, and character combat.

[0185] As an example, application scenario information can be passed from the application to the application state awareness module via an API, obtained by the application state awareness module through analyzing the application's instruction stream, or obtained by the application state awareness module through screen recognition of the application's interface. Specifically, the application state awareness module can analyze the application's instruction stream or perform screen recognition of the application's interface for a set duration.

[0186] The application-accelerated decision-making module is primarily used to determine the amount of increase or decrease in power consumption levels. For example, based on the current temperature deviation, the application-accelerated decision-making module determines the amount of power consumption adjustment level change required.

[0187] The application acceleration decision module can also be used to combine application scenario information and temperature deviation to determine the level of change in power consumption adjustment.

[0188] The accelerated decision execution module is mainly used to increase or decrease the power level according to the change in power level. For example, the accelerated decision execution module is used to determine the target power level of the power adjustment method based on the change in the power level, and convert the target power level into configuration information. In this embodiment, the accelerated decision execution module can achieve loose coupling between the application's accelerated decision module and the decision execution module, facilitating independent upgrades and evolutions of the two modules.

[0189] The decision execution module is used to execute power consumption adjustment methods based on the configuration information obtained from the accelerated decision execution module, that is, to render and / or display the application interface of the application based on the power consumption adjustment methods.

[0190] Based on the architecture shown in Figures 3 and 10, the interface processing method provided in the embodiments of this application will be described in detail below. For ease of understanding, the power consumption adjustment levels provided in the embodiments of this application will be described first.

[0191] Let's take the super-resolution adjustment method as an example to illustrate the concept. When setting the level of the super-resolution adjustment method, you can adjust it according to the power consumption benefits and the impact on the interface display quality brought by the super-resolution adjustment method.

[0192] For example, based on the analysis of the adjustment factors of the super-resolution adjustment method, through testing on the application, six levels of super-resolution adjustment can be set within the minimum acceptable image quality range. Specifically, level 1 requires a mean opinion score (MOS) of at least 4.5 points and a power saving of 3%. Level 2 requires a MOS of at least 4.4 points and a power saving of 6%. Level 3 requires a MOS of at least 4.3 points and a power saving of 9%. Level 4 requires a MOS of at least 4.2 points and a power saving of 12%. Level 5 requires a MOS of at least 4.1 points and a power saving of 15%. Level 6 requires a MOS of at least 4.0 points and a power saving of 18%.

[0193] Based on the required image quality MOS value and power consumption gains for different tiers, the configuration information for Tier 1 can be set as follows: Tier 1: 1.1x super-resolution ratio, temporal super-resolution (multi-frame super-resolution), super-resolution algorithm complexity: X1. Tier 2: 1.25x super-resolution ratio, temporal super-resolution (multi-frame super-resolution), super-resolution algorithm complexity: X1. Tier 3: 1.5x super-resolution ratio, temporal super-resolution (multi-frame super-resolution), super-resolution algorithm complexity: X1. Tier 4: 2x super-resolution ratio, temporal super-resolution (multi-frame super-resolution), super-resolution algorithm complexity: X1. Tier 5: 1.5x super-resolution ratio, spatial super-resolution (single-frame super-resolution), super-resolution algorithm complexity: X1. Tier 6: 2x super-resolution ratio, spatial super-resolution (single-frame super-resolution), super-resolution algorithm complexity: X1.

[0194] It should be noted that the above super-resolution adjustment levels are for illustrative purposes only and are not intended as specific limitations. When setting the super-resolution adjustment level, it should be determined comprehensively based on the application's testing results, simply ensuring that higher levels result in higher power consumption gains but lower image quality.

[0195] Let's take the VRS (Dynamic Voltage Regulator) mode as an example to illustrate the power consumption adjustment method. When setting the VRS mode level, you can adjust it according to the power consumption benefits and the impact on the interface display quality brought by the VRS mode.

[0196] For example, based on analysis of adjustment factors for the VRS adjustment method, similarity thresholds S1, S2, S3 and S4 are set, and different coloring precisions are adopted for different pixels. Wherein, when the similarity between adjacent pixels is < S1, the coloring precision 1*1 can be adopted. When the similarity between adjacent pixels is greater than or equal to S1 and less than S2, coloring precision 1*2 or 2*1 can be adopted. When the similarity is greater than or equal to S2 and less than S3, coloring precision 2*2 can be adopted. When the similarity is greater than or equal to S3 and less than S4, coloring precision 4*2 or 2*4 can be adopted. When the similarity is greater than or equal to S3, coloring precision 4*4 can be adopted.

[0197] Based on the setting of the number of similarity thresholds and the coloring precision, 6 gears can be set for the VRS adjustment method through testing on the application. Wherein, the configuration information of gear 1 (i.e., the values of S1, S2, S3 and S4) needs to satisfy that the image quality MOS value is not lower than 4.5, and the power consumption benefit reaches 3%, that is, power consumption is saved by 3%. The configuration information of gear 2 (i.e., the values of S1, S2, S3 and S4) needs to satisfy that the image quality MOS value is not lower than 4.4, and the power consumption benefit reaches 4%. The configuration information of gear 3 (i.e., the values of S1, S2, S3 and S4) needs to satisfy that the image quality MOS value is not lower than 4.3, and the power consumption benefit reaches 5%. The configuration information of gear 4 (i.e., the values of S1, S2, S3 and S4) needs to satisfy that the image quality MOS value is not lower than 4.2, and the power consumption benefit reaches 6%. The configuration information of gear 5 (i.e., the values of S1, S2, S3 and S4) needs to satisfy that the image quality MOS value is not lower than 4.1, and the power consumption benefit reaches 7%. The configuration information of gear 6 (i.e., the values of S1, S2, S3 and S4) needs to satisfy that the image quality MOS value is not lower than 4.0, and the power consumption benefit reaches 8%.

[0198] It should be noted that the above gear setting of the VRS adjustment method is only for illustration and is not a specific limitation. When setting the gears of the VRS adjustment method, it needs to be comprehensively determined according to the test results of the application, and it only needs to satisfy the principle that the higher the gear, the higher the power consumption benefit and the lower the image quality.

[0199] Description is given with the power consumption adjustment method being the frame insertion adjustment method as an example. When setting the gears of the frame insertion adjustment method, the setting may be performed according to the power consumption benefit brought by the frame insertion adjustment method and the influence degree on the interface display quality.

[0200] For example, based on the analysis of the adjustment factors for frame interpolation methods, and through testing on the application, six levels of frame interpolation adjustment can be set. Level 1 configuration information (i.e., the values ​​of frame interpolation method, frame interpolation algorithm, and the percentage of the effective scene) requires a picture quality MOS score of no less than 4.5 and a power consumption gain of 15%. Level 2 configuration information (i.e., the values ​​of frame interpolation method, frame interpolation algorithm, and the percentage of the effective scene) requires a picture quality MOS score of no less than 4.4 and a power consumption gain of 17%. Level 3 configuration information (i.e., the values ​​of frame interpolation method, frame interpolation algorithm, and the percentage of the effective scene) requires a picture quality MOS score of no less than 4.3 and a power consumption gain of 19%. Level 4 configuration information (i.e., the values ​​of frame interpolation method, frame interpolation algorithm, and the percentage of the effective scene) requires a picture quality MOS score of no less than 4.2 and a power consumption gain of 21%. The configuration information for Tier 5 (i.e., the values ​​of frame interpolation method, frame interpolation algorithm, and the percentage of effective scenes) must meet the following requirements: a picture quality MOS score of no less than 4.1 and a power consumption benefit of 23%. The configuration information for Tier 6 (i.e., the values ​​of frame interpolation method, frame interpolation algorithm, and the percentage of effective scenes) must meet the following requirements: a picture quality MOS score of no less than 4.0 and a power consumption benefit of 25%.

[0201] It should be noted that the frame interpolation adjustment levels described above are for illustrative purposes only and are not intended as specific limitations. When setting the frame interpolation adjustment level, it should be determined comprehensively based on the application's testing results, simply ensuring that higher levels result in higher power consumption gains but lower image quality.

[0202] Let's take power consumption adjustment as an example to illustrate the frame rate adjustment method. When setting the frame rate adjustment level, you can choose based on the power consumption benefits and the impact on the interface display quality brought by the frame rate adjustment method.

[0203] For example, based on the analysis of the adjustment factors for frame rate adjustment methods, and through testing on the application, with a full frame rate of 120fps, five frame rate adjustment levels can be set. The power consumption benefit of each level can be estimated based on the frame rate ratio. For example, level 1 (110fps) has a power consumption benefit of 3%. Level 2 (90fps) has a power consumption benefit of 25%. Level 3 (75fps) has a power consumption benefit of 37.5%. Level 4 (60fps) has a power consumption benefit of 50%. Level 5 (45fps) has a power consumption benefit of 62.5%.

[0204] It should be noted that the frame rate adjustment levels described above are for illustrative purposes only and are not intended as specific limitations. When setting the frame rate adjustment level, it should be determined comprehensively based on the application's testing results, simply ensuring that higher levels result in greater power consumption savings.

[0205] In this embodiment, different applications may have different configuration information for the same power consumption adjustment mode. For each application, the configuration information for each power consumption adjustment mode under different power consumption adjustment modes can be set according to the test results, and there is no specific limitation.

[0206] Based on the architecture shown in Figure 10 and the above description of the power consumption adjustment levels, the interface processing method based on device temperature provided in this application embodiment will be described in detail below with reference to the accompanying drawings. As shown in Figure 11, the interface processing method based on device temperature provided in this application embodiment may further include S301 to S304.

[0207] S301, the terminal obtains the device temperature during application runtime and determines the temperature deviation value corresponding to the device temperature.

[0208] The specific process of S301 can be referred to the description of S201 above, and will not be repeated here.

[0209] S302, the terminal determines the gear change amount corresponding to the temperature deviation value.

[0210] Among them, the gear change amount refers to the amount of gear increase or decrease.

[0211] In this embodiment, the gear shift change can be positively correlated with the temperature deviation value; that is, the amount of gear shift increase or decrease is positively correlated with the magnitude of the temperature deviation value. The larger the temperature deviation value, the greater the amount of gear shift increase or decrease.

[0212] As an example, after obtaining the temperature deviation, the terminal can convert the temperature deviation into a control quantity through a set algorithm, and then further map the control quantity into a gear change quantity.

[0213] As an example, the algorithm can be any of the following: proportional-integral-differential (PID) control, fuzzy control, iterative learning control, etc.

[0214] Taking the PID control algorithm as an example, after obtaining the temperature deviation value, the terminal sums the proportional, integral, and derivative of the temperature deviation value to obtain the control quantity. Here, the proportional (P) of the temperature deviation value can be the temperature deviation value multiplied by a coefficient k, the integral (I) of the temperature deviation value can be the sum of historical deviation values, and the derivative (D) of the temperature deviation value can be the rate of change of the temperature deviation value. In some examples, the terminal can also calculate the control quantity using either P (proportional) control or PI (proportional + integral) control alone; there are no specific restrictions.

[0215] S303, the terminal determines the target power consumption adjustment method corresponding to the change in the gear level, as well as the configuration information of the target gear level.

[0216] In the embodiments of this application, the target level is the level corresponding to the level change amount among multiple levels of the target power consumption adjustment method.

[0217] Considering that the terminal may support multiple power adjustment methods that apply to applications, and when adjusting based on the change in power level, it's possible that only one or two power adjustment methods are needed to meet the adjustment requirements corresponding to the change in power level. In this case, it's unnecessary to adjust the power levels of all active power adjustment methods, thus saving workload. Here, the adjustment requirement corresponding to the change in power level refers to the amount of adjustment needed based on the change in power level.

[0218] In order to save the workload of adjustment while ensuring that users always have a good thermal experience and smooth responsiveness when using the application, in this embodiment of the application, the priority of multiple power consumption adjustment methods that are effective in the application can be set, wherein the priority of multiple power consumption adjustment methods is different.

[0219] As an example, when an application has multiple adjustment methods, if the actual temperature rise rate or device temperature is high, in order to quickly reach the target temperature rise rate or target steady-state temperature, while also meeting the requirements of interface display quality as much as possible, the terminal can first reduce power consumption by lowering the interface image quality (such as super-resolution adjustment, frame interpolation adjustment, and VRS adjustment), thereby achieving the goal of reducing the actual temperature rise rate or device temperature. If lowering the interface image quality cannot adjust the actual temperature rise rate to the target temperature rise rate or adjust the device temperature to the target steady-state temperature, the terminal can then reduce power consumption by lowering the frame rate. Therefore, when setting the priority of power consumption adjustment methods, the priority of adjusting the hardware resources occupied by the rendering application interface can be higher than the priority of adjusting the hardware resources occupied by the display application interface. It can be understood that adjusting the hardware resources occupied by the rendering application interface refers to adjusting the hardware resources occupied by the corresponding image quality of the rendering application interface, while adjusting the hardware resources occupied by the display application interface refers to adjusting the hardware resources occupied by the application interface display frame rate.

[0220] In this embodiment of the application, when there are multiple power adjustment methods that are effective for the application among the power adjustment methods supported by the terminal, the terminal can determine the target power adjustment method and the target level of the target power adjustment method according to the priority of each power adjustment method based on the level change amount.

[0221] For example, when multiple power adjustment methods are active in an application, if the adjustable level of the highest priority power adjustment method meets the adjustment requirement corresponding to the level change, then the highest priority power adjustment method becomes the target power adjustment method. If the adjustable level of the highest priority power adjustment method does not meet the adjustment requirement corresponding to the level change, then the next highest priority power adjustment method can be added sequentially, and it can be checked whether the sum of the adjustable levels of the next highest priority power adjustment method and the highest priority power adjustment method meets the adjustment requirement corresponding to the level change. If the adjustment requirement corresponding to the level change is met, then the next highest priority power adjustment method and the highest priority power adjustment method together become the target power adjustment method.

[0222] As an example, a specific implementation of detecting whether the adjustable level of a power consumption adjustment method meets the adjustment requirements corresponding to the level change can be to detect whether the current level of the power consumption adjustment method is within an effective level range after increasing the level change. If it is within an effective level range, then it is determined that the adjustable level of the power consumption adjustment method meets the adjustment requirements corresponding to the level change. If it is not within an effective level range, then it is determined that the adjustable level of the power consumption adjustment method does not meet the adjustment requirements corresponding to the level change. Here, the effective level range refers to the range from the minimum level to the maximum level, i.e., the range [minimum level, maximum level].

[0223] As an example, a specific implementation of detecting whether the sum of the adjustable levels of the second-highest priority power consumption adjustment method and the highest priority power consumption adjustment method meets the adjustment requirement corresponding to the level change could be to detect whether the adjustable levels of the second-highest priority power consumption adjustment method meet the adjustment requirement corresponding to the remaining level adjustment amount. Here, the remaining level adjustment amount refers to the difference between the absolute value of the level change amount and the adjustable level amount of the highest priority power consumption adjustment method. Similarly, the adjustment requirement corresponding to the remaining level adjustment amount refers to the level adjustment amount that needs to be applied based on the remaining level adjustment amount.

[0224] Based on this, in the embodiments of this application, when there is only one target power consumption adjustment method, the target power consumption adjustment method is the power consumption adjustment method with the highest priority among the power consumption adjustment methods effective for the corresponding application, and the target level of the target power consumption adjustment method is obtained based on the current level and the level change amount; when there are N target power consumption adjustment methods, the N target power consumption adjustment methods are the top N priority power consumption adjustment methods effective for the corresponding application, and the target level of each of the N target power consumption adjustment methods is obtained based on the current level and the level change amount, and the sum of the level changes of the N target power consumption adjustment methods is the level change amount; where N is an integer greater than 1.

[0225] The following explanation uses the power consumption adjustment methods corresponding to the application as examples, including super-resolution adjustment, VRS adjustment, frame interpolation adjustment, and frame rate adjustment. The priority of VRS adjustment, super-resolution adjustment, frame interpolation adjustment, and frame rate adjustment decreases in that order.

[0226] When the application starts, the terminal can be configured by default to run super-resolution adjustment mode, VRS adjustment mode, frame interpolation adjustment mode, and frame rate adjustment mode. Among them, the default configuration includes whether the power consumption adjustment mode is enabled (in this example, the power consumption adjustment mode is enabled) and the default effective level (set to the current level).

[0227] If the gear change is +2, the terminal can first check whether the current gear of the VRS adjustment mode is still within the effective gear range after increasing by 2 gears. If the current gear of the VRS adjustment mode is still within the effective gear range after increasing by 2 gears, it is determined that the adjustable gear of the VRS adjustment mode meets the adjustment requirements corresponding to the gear change amount. The VRS adjustment mode is the target power consumption adjustment mode, and the gear after increasing the current gear of the VRS adjustment mode by 2 gears is the target gear.

[0228] For example, the current level of the VRS adjustment method is level 3, the minimum level is level 1, and the maximum level is level 5. The adjustable levels based on the VRS adjustment method are level 4 and level 5. If the current level of the VRS adjustment method is level 5 after increasing by two levels, and it is still within the effective level range, then the terminal can determine that the VRS adjustment method is the target power consumption adjustment method, and level 5 is the target level.

[0229] If the current level of the VRS adjustment method is not within the effective range after increasing by two levels, the difference between the absolute value of the level change and the adjustable level of the VRS adjustment method can be determined first; this is the remaining level adjustment amount. Then, it is checked whether the adjustable level of the super-resolution adjustment method meets the adjustment requirement corresponding to the remaining level adjustment amount. If the adjustable level of the super-resolution adjustment method meets the adjustment requirement corresponding to the remaining level adjustment amount, then both the VRS adjustment method and the super-resolution adjustment method are target power consumption adjustment methods. The maximum level of the VRS adjustment method and the level among the multiple levels of the super-resolution adjustment method that corresponds to the remaining level adjustment amount are the target levels.

[0230] For example, in the VRS adjustment mode, the current gear is gear 4, the minimum gear is gear 1, and the maximum gear is gear 5. The adjustable gear based on the VRS adjustment mode is gear 5. After increasing the current gear by two gears, the current gear in the VRS adjustment mode exceeds the maximum gear and is no longer within the effective gear range. Subtracting the absolute value of the gear change from the adjustable gear range of the VRS adjustment mode yields the remaining gear adjustment amount: 2 - 1 = 1.

[0231] The current level of the super-resolution adjustment method is level 3, the minimum level is level 1, and the maximum level is level 5. The adjustable levels based on the super-resolution adjustment method are level 4 and level 5. If the current level of the super-resolution adjustment method becomes level 4 after increasing by one level, and it is still within the effective level range, then the terminal can determine that the VRS adjustment method and the super-resolution adjustment method are the target power consumption adjustment methods, and that level 5 of the VRS adjustment method and level 4 of the super-resolution adjustment method are the target levels.

[0232] If the adjustable level of the over-resolution adjustment method does not meet the adjustment requirements corresponding to the remaining adjustment level, the difference between the remaining adjustment level and the adjustable level of the over-resolution adjustment method can be determined first. Then, it is checked whether the adjustable level of the frame interpolation adjustment method meets the adjustment requirements corresponding to the difference. This process is repeated until the target power consumption adjustment method and its target level are determined.

[0233] Understandably, once the target gear is determined, the terminal can obtain the configuration information for that target gear.

[0234] Understandably, if there is only one power adjustment method that applies to the application among the power adjustment methods supported by the terminal, the power adjustment method that applies to the application can be directly determined as the target power adjustment method, and the target level of the target power adjustment method can be obtained based on the level change and the current level of the target power adjustment method.

[0235] For example, let's take the super-resolution power consumption adjustment method applied to the application as an example. When the super-resolution power consumption adjustment method applied to the application is super-resolution, the target power consumption adjustment method is also super-resolution, and the current level of the super-resolution adjustment method is set to level 2. That is, the current terminal loads and runs the super-resolution adjustment method with the configuration information of level 2. If the level change is +2, the super-resolution adjustment method needs to be increased by 2 levels, meaning the target level of the super-resolution adjustment method is level 4. If the level change is -1, the super-resolution adjustment method needs to be decreased by 1 level, meaning the target level of the super-resolution adjustment method is level 1.

[0236] It should be noted that, for each application, when multiple power adjustment methods are enabled, in order to ensure the final image quality experience, the configuration information of each power adjustment method at each level can be more conservative compared to when only one power adjustment method is enabled. That is, when multiple power adjustment methods are enabled, the power consumption benefit and the impact on the interface display quality brought by the configuration information of each level of the power adjustment method are weaker than the power consumption benefit and the impact on the interface display quality brought by the configuration information of each level of the power adjustment method when only one power adjustment method is enabled.

[0237] In addition, compared to an application using only one power regulation mode, an application using multiple power regulation modes can have a greater overall power consumption benefit and a higher probability of reaching the target steady-state temperature or target temperature rise rate through dynamic settings.

[0238] S304, the terminal runs the target power consumption adjustment mode according to the configuration information, and renders and / or displays the application interface of the application.

[0239] The process of S304 can be referred to the description of S203 above, and will not be repeated here.

[0240] Based on the architecture shown in Figure 10, the embodiment shown in Figure 11 will be explained using the temperature deviation value as an example of the deviation between the device temperature and the target steady-state temperature. As shown in Figure 12, when the user starts the application, the terminal heats up after the application runs. The system status awareness module obtains the device temperature and the target steady-state temperature when the application is running, and sends these two values ​​to the application acceleration decision module. The application acceleration decision module calculates the deviation value between the device temperature and the target steady-state temperature, determines the corresponding level change amount, and sends the level change amount to the acceleration decision execution module. The acceleration decision execution module obtains the power consumption adjustment mode corresponding to the application from the system status awareness module, determines the configuration information of the target power consumption adjustment mode corresponding to the level change amount, and sends the configuration information to the decision execution module. The decision execution module runs the target power consumption adjustment mode according to the configuration information. The frequency adjustment module adjusts the frequency points of hardware such as CPU, GPU, NPU, and DDR according to the hardware resources required by the decision execution module to run the target power consumption adjustment mode, realizing on-demand supply of hardware resources, thereby adjusting the overall power consumption and achieving the purpose of temperature regulation.

[0241] After the adjustment is completed, the system status sensing module can continue to acquire the device temperature and send the newly acquired device temperature to the application acceleration decision module. The application acceleration decision module calculates the deviation between the device temperature and the target steady-state temperature. If the deviation is 0, the decision is not to perform temperature adjustment; if the deviation is not 0, the adjustment continues.

[0242] Understandably, after the decision execution module runs the target power consumption adjustment mode according to the configuration information, it completes the adjustment of the target power consumption adjustment mode level. After the decision execution module dynamically adjusts the target power consumption adjustment mode level, it will affect the overall power consumption of the terminal, and under the action of the negative feedback mechanism, it will cause the device temperature to gradually converge to the target steady-state temperature, or cause the actual temperature rise rate of the device temperature to gradually converge to the target temperature rise rate.

[0243] As shown in Figure 13, taking PID control as an example, under the PID control mechanism, the terminal repeatedly acquires the equipment temperature and calculates the deviation between the equipment temperature and the target steady-state temperature. This deviation is then converted into a control quantity, which is further mapped to a gear change. The terminal can then adjust the gear of the target power consumption adjustment method according to the gear change and run the target power consumption adjustment method with the adjusted gear configuration information. This regulates the power consumption, causing the equipment temperature to gradually converge to the target steady-state temperature, or the actual temperature rise rate of the equipment to gradually converge to the target temperature rise rate.

[0244] This application embodiment uses a temperature negative feedback control method to dynamically adjust the power consumption adjustment level, which can reduce the probability of triggering forced temperature control, so that the device temperature can be kept below the temperature control line during the user's use of the application, and the smoothness and responsiveness of the application will not be affected before the device temperature reaches the temperature control line.

[0245] To achieve more refined gear adjustment, in this embodiment, the gear configuration information can be further refined based on the scenario information in the application interface. For example, the same gear can have different configuration information for different scenario scenarios.

[0246] The scene information of the application interface can include dynamic scenes and static scenes. Taking a game application as an example, dynamic scenes can include scenes such as character combat and character exploration, while static scenes can include scenes such as character stillness, character death, game lobby, and UI.

[0247] As an example, embodiments of this application can set different configuration information for dynamic and static scenes at the same power consumption level based on the requirements of power consumption gain and interface display quality. The following explanation uses super-resolution adjustment and frame rate adjustment as examples of power consumption adjustment methods.

[0248] As shown in Table 1, Table 1 shows the configuration information of the three levels of the super-resolution adjustment mode in different scenarios.

[0249] Table 1

[0250] Algorithm complexity X1 is greater than algorithm complexity X2, and algorithm complexity X2 is greater than algorithm complexity X3. Higher algorithm complexity results in lower power consumption gains but higher image quality.

[0251] Based on the algorithm complexity corresponding to static and dynamic scenes within the same power level, it can be concluded that the algorithm complexity of static scenes is higher than that of dynamic scenes. Therefore, within the same power level, the power consumption gain of dynamic scenes is greater than that of static scenes. The interface display quality (image quality) of dynamic scenes is lower than that of static scenes.

[0252] As shown in Table 2, the table shows the configuration information of the three frame rate adjustment levels in different scenarios.

[0253] Table 2

[0254] Based on the frame rates corresponding to static and dynamic scenes in Tier 1 and Tier 2, it can be concluded that the frame rate of dynamic scenes is higher than that of static scenes. Therefore, within the same tier, the power consumption gain of dynamic scenes is less than that of static scenes. The interface display quality (frame rate) of dynamic scenes is higher than that of static scenes.

[0255] Understandably, the configuration information for the same level of VRS adjustment mode and frame interpolation adjustment mode in different scenarios can be referenced from the settings of super-resolution adjustment mode and frame rate adjustment mode mentioned above, and will not be elaborated here.

[0256] Based on configuration information in different scenarios, the specific implementation of the terminal determining the configuration information of the target power consumption adjustment method can also be: the terminal obtains the scenario information of the application, and combines the scenario information and the temperature deviation value to determine the configuration information of the target power consumption adjustment method.

[0257] As an example, a terminal can receive scene information transmitted by an application through an API, analyze the application's program instruction stream to obtain the application's scene information, and perform screen recognition on the application's interface to obtain scene information.

[0258] For example, the terminal can first determine the gear change amount corresponding to the temperature deviation value, then determine the target gear of the target power consumption adjustment method corresponding to the gear change amount, and obtain the configuration information corresponding to the scene information under the target gear.

[0259] In this embodiment of the application, the terminal determines the gear change amount corresponding to the temperature deviation value, and determines the target gear of the target power consumption adjustment method corresponding to the gear change amount. The specific process can be referred to the description of S302 and S303 above, and will not be repeated here.

[0260] In this embodiment, for the same power consumption level, different scenario information has different configuration information. Based on this, after obtaining the target power consumption level of the application's corresponding power adjustment method, the terminal can determine the configuration information corresponding to the scenario information at that target level.

[0261] Taking the target power consumption adjustment method as the super-resolution adjustment method and the scene information as character combat as an example, the following explanation is given. The target level of the super-resolution adjustment method, determined by the terminal based on the level change, is set to level 2. As shown in Table 1, when the scene information is character combat and the target level is level 2, the terminal can determine the configuration information as 1.25x multi-frame super-resolution and algorithm complexity x3.

[0262] Taking the target power consumption adjustment method as the frame rate adjustment method, and the scene information as a stationary character, as an example, the following explanation is provided. The target frame rate adjustment level determined by the terminal based on the level change is set to level 2. As shown in Table 1, when the scene information is a stationary character and the target level is level 2, the terminal can determine the configuration information as a frame rate of 60fps.

[0263] As an example, to quickly adjust the overall power consumption of the terminal, the terminal can first adjust the power level for dynamic scenes, and then adjust the power level for static scenes. Based on this, when adjusting the interface display quality of an application according to configuration information, the terminal can first adjust the interface display quality for dynamic scenes, and then adjust the interface display quality for static scenes. For example, taking a game application as an example, the terminal can adjust the interface display quality of dynamic scenes such as character movement and combat at the target power level, and then adjust the interface display quality of static scenes such as character stillness and dialogue at the target power level.

[0264] Based on the architecture shown in Figure 10 and the timing diagram shown in Figure 12, the temperature deviation, specifically the deviation between the device temperature and the target steady-state temperature, will be used as an example for explanation. As shown in Figure 14, the accelerated decision execution module can also obtain the power consumption adjustment method corresponding to the application from the system status perception module and the application scenario information from the application status perception module. Combining the level change and scenario information, it determines the configuration information of the target power consumption adjustment method. The working process of the remaining modules can be described with reference to the embodiment shown in Figure 12, and will not be repeated here.

[0265] This application embodiment subdivides scenarios and sets different configuration information for different scenarios. Thus, based on scenario information and temperature deviation, the power consumption adjustment level is dynamically adjusted, ensuring a good interface display quality experience for users in different scenarios, while also reducing the probability of triggering forced temperature control. Especially when users are using gaming applications, it reduces the probability of forced reduction of CPU / CPU / DDR frequencies and game frame rates due to device temperature reaching the temperature control limit, improving the user's thermal experience and smoothness during gameplay.

[0266] It should be noted that in this embodiment of the application, the terminal can continuously acquire the device temperature during the application's operation, and can render and / or display the application interface of the application according to the configuration information corresponding to the temperature deviation value at different times, so that the device temperature can be kept below the forced temperature control line during the user's use of the application, thereby always having a good thermal experience and smooth responsiveness.

[0267] For example, as shown in FIG15, the interface processing method provided in the embodiments of this application may further include S401 to S404.

[0268] S401, the terminal obtains the first device temperature when the application is running.

[0269] The process of obtaining the first device temperature during application runtime can be referred to step S201 in Figure 7 above, and will not be repeated here.

[0270] S402, if the temperature deviation value corresponding to the temperature of the first device is a first deviation value, the terminal renders and / or displays the application interface of the application according to the configuration information corresponding to the first deviation value.

[0271] The temperature deviation value includes the deviation between the first device temperature and the target temperature (target steady-state temperature) and / or the deviation between the actual temperature rise rate corresponding to the first device temperature and the target temperature rise rate. Different temperature deviation values ​​correspond to different configuration information, and different configuration information corresponds to different hardware resources.

[0272] Among them, the configuration information corresponding to the first deviation value is the configuration information of the target gear, and the configuration information is different for different gears.

[0273] For example, the terminal can first determine the gear change amount corresponding to the first deviation value, and then determine the target gear corresponding to the gear change amount. The magnitude of the temperature deviation value is positively correlated with the gear change amount.

[0274] In this embodiment, the target level is the level corresponding to the level change among multiple levels of the target power consumption adjustment method. The target power consumption adjustment method is the power consumption adjustment method that is effective for applications among the power consumption adjustment methods supported by the terminal. Different applications may have different effective power consumption adjustment methods, or different applications may have partially the same effective power consumption adjustment method.

[0275] In this embodiment, when there are multiple power adjustment methods supported by the terminal that apply to the application, the priorities of these multiple power adjustment methods can be different. Based on this, the specific implementation of determining the target level corresponding to the level change can also be as follows: Based on the level change, determine the target power adjustment method and its target level according to the priority of each power adjustment method; wherein, if there is only one target power adjustment method, the target power adjustment method is the highest priority power adjustment method among those applied to the application, and the target level of the target power adjustment method is obtained based on the current level and the level change; if there are N target power adjustment methods, the N target power adjustment methods are the top N priority power adjustment methods among those applied to the application, and the target level of each of the N target power adjustment methods is obtained based on the current level and the level change, and the sum of the level changes of the N target power adjustment methods is the level change; wherein, N is an integer greater than 1.

[0276] The specific process can be referred to in the embodiments shown in Figures 7 and 11 above, and will not be repeated here.

[0277] S403, The terminal obtains the second device temperature when the application is running. The first device temperature and the second device temperature are device temperatures obtained at different times.

[0278] S404, if the temperature deviation value corresponding to the temperature of the second device is the second deviation value, the terminal renders and / or displays the application interface of the application according to the configuration information corresponding to the second deviation value.

[0279] As an example, if the difference between the first deviation value and the second deviation value is greater than a set threshold, the first deviation value and the second deviation value are different temperature deviation values. If the difference between the first deviation value and the second deviation value is less than or equal to the set threshold, the terminal can continue to render and / or display the application interface using the configuration information corresponding to the first deviation value. If the difference between the first deviation value and the second deviation value is greater than the set threshold, the terminal can render and / or display the application interface using the configuration information corresponding to the second deviation value.

[0280] The specific processes of S403 and S404 can be referred to the embodiments shown in Figures 7 and 11 above, and will not be repeated here.

[0281] In some examples, such as in a temperature adjustment example, steps S403 and S404 may be optional. The specific steps can be set according to the actual situation, and this application embodiment does not impose any limitations.

[0282] Based on the same inventive concept, and referring to Figure 16, this application provides an electronic device 500, which can be the terminal in the above embodiments. Specifically, the electronic device 500 may include a transceiver 501, a memory 502, a processor 503, and one or more computer programs 504. The transceiver 501, memory 502, and processor 503 can be connected via one or more communication buses 505. The one or more computer programs 504 are stored in the memory 502 and configured to be executed by the processor 503. When the one or more computer programs 504 are executed by the processor 503, they implement the functions or steps in the above-described interface processing method.

[0283] This application also provides a computer-readable storage medium storing computer program instructions, which, when executed by a processing circuit, implement the functions or steps in the above-described interface processing method.

[0284] In addition, embodiments of this application may also provide a chip system, which includes a processing circuit and a storage medium. The storage medium stores computer program instructions. When the computer program instructions are executed by the processing circuit, they implement the functions or steps in the above-mentioned interface processing method.

[0285] Furthermore, embodiments of this application may also provide a computer program product containing instructions, which, when run on a computer, causes the computer to perform the functions or steps in the above-described interface processing method.

[0286] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, the specific working processes of the chip system, electronic device, computer-readable storage medium, and computer program product containing instructions described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0287] It is understood that the steps of the methods or algorithms described in conjunction with the embodiments of this application can be implemented in hardware or by a processor executing software instructions. The software instructions can consist of corresponding software modules, which can be stored in random access memory, flash memory, erasable programmable read-only memory, electrically erasable programmable read-only memory, registers, hard disks, portable hard disks, read-only optical disks, or any other form of storage medium. An exemplary embodiment involves a storage medium coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and storage medium can reside in an application-specific integrated circuit (ASIC). Alternatively, the ASIC can reside within an electronic device. Of course, the processor and storage medium can also exist as discrete components within an electronic device.

[0288] In an alternative approach, when implemented in software, it can be implemented entirely or partially as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are implemented. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., digital video disk (DVD)), or a semiconductor medium (e.g., solid-state disk (SSD)).

[0289] The above description is merely a specific implementation of the embodiments of this application, but the protection scope of the embodiments of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the embodiments of this application should be covered within the protection scope of the embodiments of this application. Therefore, the protection scope of the embodiments of this application should be determined by the protection scope of the claims.

Claims

1. An interface processing method characterized by, Applied to a terminal, the method includes: Get the first device temperature when the application is running; When the temperature deviation value corresponding to the temperature of the first device is a first deviation value, the application interface of the application is rendered and / or displayed according to the configuration information corresponding to the first deviation value. The temperature deviation value includes the deviation between the temperature of the first device and the target temperature and / or the deviation between the actual temperature rise rate corresponding to the temperature of the first device and the target temperature rise rate. Different temperature deviation values ​​correspond to different configuration information, and different configuration information requires different hardware resources.

2. The method of claim 1, wherein, The method further includes: The second device temperature is obtained during the operation of the application, wherein the first device temperature and the second device temperature are device temperatures obtained at different times; If the temperature deviation value corresponding to the temperature of the second device is the second deviation value, the application interface of the application is rendered and / or displayed according to the configuration information corresponding to the second deviation value.

3. The method according to claim 1 or 2, characterized in that, The configuration information corresponding to the first deviation value is the configuration information of the target gear, and the configuration information is different for different gears; Before rendering and / or displaying the application interface of the application based on the configuration information corresponding to the first deviation value, the method further includes: Determine the gear change amount corresponding to the first deviation value, wherein the magnitude of the temperature deviation value is positively correlated with the gear change amount; Determine the target gear corresponding to the gear change amount.

4. The method of claim 3, wherein, The target level is the level among multiple levels of the target power consumption adjustment method that corresponds to the level change amount.

5. The method of claim 4, wherein, The target power consumption adjustment method is the power consumption adjustment method that is effective for the application among the power consumption adjustment methods supported by the terminal; Different applications may have different power consumption adjustment methods, or different applications may have partially the same power consumption adjustment method.

6. The method of claim 5, wherein, Among the power consumption adjustment methods supported by the terminal, there are multiple power consumption adjustment methods that are effective for the application, and the multiple power consumption adjustment methods have different priorities. The determination of the target gear corresponding to the gear change includes: Based on the change in the gear level, the target power consumption adjustment method and the target gear level of the target power consumption adjustment method are determined according to the priority of each power consumption adjustment method. When there is only one target power consumption adjustment method, the target power consumption adjustment method is the highest priority power consumption adjustment method among the power consumption adjustment methods that are effective for the corresponding application, and the target level of the target power consumption adjustment method is obtained based on the current level and the change amount of the level. When there are N target power consumption adjustment methods, the N target power consumption adjustment methods are the top N priority power consumption adjustment methods that are effective for the corresponding application. The target level of each of the N target power consumption adjustment methods is obtained based on the current level and the level change amount. The sum of the level changes of the N target power consumption adjustment methods is the level change amount. Where N is an integer greater than 1.

7. The method according to any one of claims 4-6, characterized in that, Different scenario information under the same gear level corresponds to different configuration information. Specifically, the configuration information corresponding to the first deviation value is the configuration information corresponding to the scenario information of the application under the target gear level.

8. The method according to any one of claims 5-7, characterized in that, The power consumption adjustment method includes one or more of the following: super resolution adjustment method, variable rate shading adjustment method, frame interpolation adjustment method, or frame rate adjustment method.

9. The method according to any one of claims 1 to 8, characterized in that, The application is any of the following: a game application, a 3D application, or an application with a 3D interactive interface.

10. An electronic device, comprising: include: Memory is used to store computer program instructions; A processor for executing the computer program instructions to support the electronic device in implementing the method as described in any one of claims 1-9.

11. A computer readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions that, when executed by a processing circuit, implement the method as described in any one of claims 1-9.

12. A computer program product comprising instructions, characterized in that, When the computer program product is run on a computer, it causes the computer to perform the method as described in any one of claims 1-9.