Scene-based terminal control method and apparatus

By identifying the running scenarios of the application and performing corresponding resource control, the user experience problem caused by the high power consumption of the terminal device is solved, and the effect of reducing power consumption is achieved on the basis of ensuring the experience.

WO2024193335A1PCT designated stage expired Publication Date: 2024-09-26HUAWEI TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/079955
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-17
Filing Date
2024-03-04
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

Terminal devices may consume high power when running applications, causing the device temperature to rise. Limiting frequency to reduce power consumption may affect the user experience, resulting in insufficient supply of application resources and lags in operation.

Method used

By obtaining the running scenario information of the application, identify different scenarios and perform corresponding resource control operations, including display settings, audio settings, reporting rate settings, sensor settings and background application settings, and dynamically adjust resource supply to ensure user experience. Basically reduce power consumption.

Benefits of technology

It is possible to dynamically adjust the terminal device resource usage according to the running scenario of the application, improve the user experience, and effectively reduce the power consumption of the terminal device to avoid device overheating and performance degradation caused by high power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024079955_26092024_PF_FP
    Figure CN2024079955_26092024_PF_FP
Patent Text Reader

Abstract

A scene-based terminal control method and apparatus. The method is applied to a terminal device, and comprises: acquiring running scene information of a first application program; determining a running scene of the first application program according to the running scene information; according to the running scene, determining a resource control operation corresponding to the running scene; and executing the resource control operation. The scene information comprises scene indication information outputted by the first application program and / or a user interface rendering event of the first application program outputted by a system, and the user interface rendering event comprises one or more of a texture map rendering event, a text rendering event, and a control state event; the resource control operation comprises one or more of display setting, audio setting, report rate setting, sensor setting, and background application setting.
Need to check novelty before this filing date? Find Prior Art

Description

A scenario-based terminal control method and device

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on March 17, 2023, with application number 202310297794.1 and application name “A Scenario-Based Terminal Control Method and Device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0003] The present application relates to the field of computer technology, and in particular to a scenario-based terminal control method and device. Background Art

[0004] When running on a terminal device, applications may require a significant amount of resources, resulting in higher power consumption. To reduce power consumption, resource control can be performed based on the temperature of the processor within the terminal device. For example, when the processor temperature of the terminal device exceeds a set threshold, the system on chip (SoC) can be frequency-limited to reduce power consumption. However, frequency limiting the SoC can result in insufficient resources for applications, potentially causing application lag and impacting the user experience.

[0005] Summary of the Invention

[0006] The embodiments of the present application provide a scenario-based terminal control method and apparatus for controlling the resources of a terminal device based on the running scenario of an application program, thereby taking into account the power consumption of the terminal device while ensuring the user experience.

[0007] In a first aspect, a scenario-based terminal control method is provided, which can be applied to a terminal device, and the method includes: the terminal device obtains the running scenario information of the first application; based on the running scenario information, determines the running scenario of the first application; based on the running scenario, determines the resource control operation corresponding to the running scenario, and executes the resource control operation. The scenario information includes the scene indication information output by the first application and / or the user interface rendering event of the first application output by the system, and the user interface rendering event includes one or more of the events of rendering texture mapping, rendering text, and control status; the resource control operation includes one or more of the display settings, audio settings, reporting rate settings, sensor settings, and background application settings.

[0008] Different operating scenarios have different degrees of impact on the user experience. In the above implementation, different resource control operations can be set for different operating scenarios, so that differentiated control operations can be performed on the resources of the terminal device based on the operating scenario of the application, thereby improving the user experience. For example, for operating scenarios that have a greater impact on the user experience, such as combat scenes in game applications, more resources can be occupied to improve the user experience. For operating scenarios that have a smaller impact on the user experience, such as non-combat scenes in game applications, fewer resources can be occupied to reduce the power consumption of the terminal device without causing too much impact on the user experience.

[0009] In one possible implementation, the first application is a game application, and the event of rendering the texture map includes one or more of the following: an event of rendering the raw land texture map, an event of rendering the main scene map, and an event of rendering the map of the game character status.

[0010] Different running scenes may require different textures to be rendered. In the above implementation, by identifying the event of rendering texture maps, the accuracy of running scene recognition can be guaranteed.

[0011] Optionally, determining the running scene of the first application based on the running scene information includes: if the running scene information includes the event of rendering the raw land texture map and / or the event of rendering the main scene map, then determining that the running scene of the first application is the first scene; or if the running scene information includes the event of rendering the map of the game character status, and the map event of rendering the game character status is the map event of the game character's death, then determining that the running scene of the first application is the second scene.

[0012] In one possible implementation, the scenario indication information output by the first application includes a scenario identifier; determining the operating scenario of the first application based on the operating scenario information includes: determining the operating scenario type corresponding to the scenario identifier based on the correspondence between the operating scenario identifier and the operating scenario type; determining the resource control operation corresponding to the operating scenario based on the operating scenario includes: determining the resource control policy corresponding to the operating scenario type based on the operating scenario type.

[0013] In the above implementation, the operating scene is determined based on the scene indication information output by the first application, which can ensure the accuracy of scene recognition.

[0014] In one possible implementation, determining the resource control operation corresponding to the operating scenario based on the operating scenario includes: determining the resource control strategy corresponding to the operating scenario based on the operating scenario; and determining the resource control operation corresponding to the resource control strategy based on the resource control strategy. The resource control strategy includes one or more of the following: chirality level, display effect level, sound quality level, vibration level, and background load level; determining the resource control operation corresponding to the resource control strategy based on the resource control strategy includes one or more of the following:

[0015] Determining a target reporting rate and / or a chirality thread scheduling priority according to the chirality level;

[0016] Determining one or more of target brightness, target resolution, target texture accuracy, and target frame rate according to the display effect level;

[0017] determining a target volume and / or a target number of channels according to the sound quality level;

[0018] determining a switch state of the sensor according to the vibration sensing level;

[0019] The network channel switch status of the background application is determined according to the background load level.

[0020] In the above implementation, the resource control policies are divided into different levels, and each level corresponds to a target parameter and / or a target setting operation, thereby improving the flexibility of setting or updating the resource control policies.

[0021] Optionally, the first application is a game application, and the running scenario of the first application is one of a first scenario and a second scenario;

[0022] The chirality level corresponding to the first scenario is higher than the chirality level corresponding to the second scenario;

[0023] The display effect level corresponding to the first scene is higher than the display effect level corresponding to the second scene;

[0024] The sound quality level corresponding to the first scenario is higher than the sound quality level corresponding to the second scenario;

[0025] The vibration level corresponding to the first scene is higher than the vibration level corresponding to the second scene;

[0026] The background load level corresponding to the first scenario is lower than the background load level corresponding to the second scenario.

[0027] In one possible implementation, the operating scenario is the first scenario, and the method further includes: determining a first area, where the first area is the area of ​​user interest in the user interface of the first application; and performing the resource control operation includes: after determining a target frame rate based on the display effect level, setting the frame rate of the first area based on the target frame rate. In the above implementation, when the operating scenario is the first scenario, a higher frame rate can be set for the area of ​​user interest, thereby minimizing the resource overhead of the terminal device while improving user experience.

[0028] One possible implementation further includes: receiving an instruction from a second application, the instruction being sent by the second application in response to a received user operation requesting the activation of a scenario-based resource control function; and enabling the scenario-based resource control function based on the instruction. This implementation can improve system flexibility.

[0029] In a second aspect, a scenario-based terminal control device is provided. The device may be a terminal device or a functional module within the terminal device. The device may include: a processing unit and a transceiver unit. The processing unit is configured to: obtain running scenario information of a first application; wherein the scenario information includes scenario indication information output by the first application and / or user interface rendering events of the first application output by an operating system, wherein the user interface rendering events include one or more of texture rendering events, text rendering events, and control status events;

[0030] Based on the running scenario information, determine the running scenario of the first application; based on the running scenario, determine the resource control operation corresponding to the running scenario, the resource control operation including one or more of display settings, audio settings, reporting rate settings, sensor settings, and background application settings; execute the resource control operation.

[0031] In one possible implementation, the first application is a game application, and the event of rendering the texture map includes one or more of the following: an event of rendering the raw land texture map, an event of rendering the main scene map, and an event of rendering the map of the game character status.

[0032] In one possible implementation, the processing unit is specifically used to: if the running scene information includes the event of rendering the raw land texture map and / or the event of rendering the main scene map, then determine that the running scene of the first application is the first scene; or if the running scene information includes the event of rendering the map of the game character status, and the map event of rendering the game character status is the map event of the game character's death, then determine that the running scene of the first application is the second scene.

[0033] In one possible implementation, the scenario indication information output by the first application includes a scenario identifier; the processing unit is specifically used to: determine the operating scenario type corresponding to the scenario identifier based on the correspondence between the operating scenario identifier and the operating scenario type; and determine the resource control policy corresponding to the operating scenario type based on the operating scenario type.

[0034] In one possible implementation, the processing unit is specifically configured to: determine, based on the operating scenario, a resource control strategy corresponding to the operating scenario; and determine, based on the resource control strategy, a resource control operation corresponding to the resource control strategy; wherein the resource control strategy includes one or more of the following: a chirality level, a display effect level, a sound quality level, a vibration level, and a background load level; and determining, based on the resource control strategy, a resource control operation corresponding to the resource control strategy includes one or more of the following:

[0035] Determining a target reporting rate and / or a chirality thread scheduling priority according to the chirality level;

[0036] Determining one or more of target brightness, target resolution, target texture accuracy, and target frame rate according to the display effect level;

[0037] determining a target volume and / or a target number of channels according to the sound quality level;

[0038] determining a switch state of the sensor according to the vibration sensing level;

[0039] The network channel switch status of the background application is determined according to the background load level.

[0040] Optionally, the first application is a game application, and the running scenario of the first application is one of a first scenario and a second scenario;

[0041] The chirality level corresponding to the first scenario is higher than the chirality level corresponding to the second scenario;

[0042] The display effect level corresponding to the first scene is higher than the display effect level corresponding to the second scene;

[0043] The sound quality level corresponding to the first scenario is higher than the sound quality level corresponding to the second scenario;

[0044] The vibration level corresponding to the first scene is higher than the vibration level corresponding to the second scene;

[0045] The background load level corresponding to the first scenario is lower than the background load level corresponding to the second scenario.

[0046] In one possible implementation, the running scenario is the first scenario, and the processing unit is further used to: determine a first area, which is an area of ​​user focus in the user interface of the first application; the processing unit is specifically used to: determine the target frame rate according to the display effect level, and then set the frame rate of the first area according to the target frame rate.

[0047] In a third aspect, a device is provided, which may include: a processor and a memory; the memory stores one or more computer programs, and the one or more computer programs include instructions, which, when executed by the processor, enable the device to perform a method as described in any one of the first aspects.

[0048] In a fourth aspect, a readable storage medium is provided, comprising a computer program, wherein when the computer program is run on a device, the device is caused to execute the method as described in any one of the first aspects.

[0049] In a fifth aspect, a computer program product is provided, which, when executed on a terminal device, enables the terminal device to execute the method as described in any one of the methods in the first aspect.

[0050] In the sixth aspect, a chip system is provided, comprising: a memory for storing a computer program; a processor; when the processor calls and runs the computer program from the memory, the terminal device equipped with the chip system executes a method as described in any one of the first aspects.

[0051] For the beneficial effects of the second to sixth aspects above, please refer to the beneficial effects of the first aspect and will not be repeated. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] FIG1 is a schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application;

[0053] FIG2 is a schematic diagram of the software structure of a terminal device provided in an embodiment of the present application;

[0054] FIG3 is a schematic diagram of the structure of a resource control module provided in an embodiment of the present application;

[0055] FIG4 is a schematic diagram of a correspondence between a resource control strategy and an operation scenario provided in an embodiment of the present application;

[0056] FIG5 is a schematic diagram of target parameters and / or target setting operations corresponding to various levels of a resource control policy provided in an embodiment of the present application;

[0057] FIG6 is a schematic diagram of the structure of a policy decision module and a policy execution module provided in an embodiment of the present application;

[0058] FIG7 is a schematic diagram of a flow chart of a scenario-based terminal control method according to an embodiment of the present application;

[0059] FIG8 is a schematic diagram of a scenario identification definition provided in an embodiment of the present application;

[0060] FIG9 is a schematic diagram of a correspondence between an operation scenario and a scenario type provided in an embodiment of the present application;

[0061] FIG10 is a schematic diagram of a scenario-based terminal control process in a game application according to an embodiment of the present application;

[0062] FIG11 is a schematic diagram of a setting interface provided by an application assistant in an embodiment of the present application;

[0063] FIG12 is a schematic structural diagram of a device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0064] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. The terms used in the following embodiments are only for the purpose of describing specific embodiments and are not intended to be limiting of the present application. As used in the specification and appended claims of this application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the embodiments of the present application, "one or more" refers to one, two or more; "and / or" describes the association relationship of associated objects, indicating that three relationships may exist; for example, A and / or B can represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the related objects before and after are in an "or" relationship.

[0065] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in yet other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0066] The "multiple" involved in the embodiments of the present application means greater than or equal to two. It should be noted that in the description of the embodiments of the present application, the words "first" and "second" are only used for the purpose of distinguishing the description and cannot be understood as indicating or implying relative importance or order.

[0067] The method provided in the embodiments of the present application can be implemented on a terminal device. The terminal device can be configured with a display, enabling human-computer interaction through the display. For example, the terminal device can be a mobile phone, a tablet computer, a laptop computer, a netbook, an in-vehicle device, a business intelligent terminal (including: videophone, conference desktop intelligent terminal, etc.), a personal digital assistant (PDA), an augmented reality (AR) or virtual reality (VR) device, etc. The embodiments of the present application do not limit the specific form of the terminal device.

[0068] Refer to Figure 1, which is a schematic diagram of the internal hardware structure of a terminal device provided in an embodiment of the present application. The terminal device can execute the method provided in an embodiment of the present application. The terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identification module (SIM) card interface 195, etc.

[0069] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, a display processing unit (DPU), and / or a neural-network processing unit (NPU), etc. Among them, different processing units can be independent devices or integrated into one or more processors. In some embodiments, the terminal device 100 may also include one or more processors 110. Among them, the processor is the nerve center and command center of the terminal device 100. The processor can generate an operation control signal based on the instruction opcode and timing signal to complete the control of instruction fetching and execution. A memory can also be set in the processor 110 for storing instructions and data.

[0070] The sensor module 180 may include one or more of the following: a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and a vibration sensor.

[0071] The terminal device 100 can realize the display function through the GPU, the display 194, and the application processor AP, etc. The display 194 is used to display images, videos, etc.

[0072] The terminal device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0073] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0074] The software system of the terminal device can adopt a layered architecture, event-driven architecture, micro-kernel architecture, micro-service architecture, or cloud architecture. system) as an example to illustrate the software structure of the terminal device.

[0075] Refer to Figure 2, which shows a schematic diagram of the layered software architecture of a terminal device provided in an embodiment of the present application. The layered architecture divides the terminal device's software system into several layers, each with its own role and division of labor. Layers communicate with each other via software interfaces.

[0076] The Android system is divided into four layers: application layer 210, application framework layer 220, Android runtime, system library, and kernel layer. The present embodiment does not limit the layering of the terminal device's software structure. The Android runtime, system library, and kernel layers can be considered as one layer, referred to as system layer 230. It should be understood that FIG2 also adds a hardware layer 240 in the terminal device to the Android system.

[0077] It should be understood that the modules included in each layer shown in Figure 2 are modules involved in the embodiments of this application. The modules included in each layer below do not constitute a limitation on the structure of the terminal device and the hierarchy of module deployment (illustrative examples). The modules shown in Figure 2 can be deployed separately, or several modules can be deployed together. The division of modules and the module names in Figure 2 are only examples.

[0078] The application layer may include a series of application packages. The application layer may include: camera, gallery, calendar, call, map, navigation, Bluetooth, music, video, short message and other applications. Applications may include system applications and third-party applications. The figure only shows the first application 211 and the second application 212 as an example. For example, the first application 211 may be a game application, and the second application 212 may be an application assistant. The application assistant is a client management software that can be installed on a terminal device. The application assistant provided in the embodiment of the present application has the function of enabling scenario-based resource control.

[0079] The application framework layer can provide an application programming interface (API) and a programming framework for the applications of the application layer. The application framework layer may include some predefined functions. Referring to Figure 2, the application framework layer may include: a window manager service (WMS) module 223, a graphics and image processing module 222, and a resource control module 221. The window management service module 223 is used to manage the user interface. The graphics and image processing module 222 is used to draw the user interface. Exemplarily, the graphics and image processing module 222 may include a rendering module and a layer synthesizer, the rendering module is used to render the user interface, and the layer synthesizer is used to perform layer synthesis on the rendered layers to obtain the user interface to be displayed. The resource control module 221 can implement the method provided in the embodiment of the present application.

[0080] Because the Android runtime, system libraries, and kernel layer are considered a single layer in this embodiment, the system layer 230 may include functional modules within the Android runtime, system libraries, and kernel layer. Referring to Figure 2 , the system layer may include hardware drivers for driving hardware operations. For example, a display driver 231, a sensor driver 232, a graphics processing unit driver (GPU driver) 233, etc., are not limited in this embodiment.

[0081] The hardware layer 240 includes the hardware in the terminal device. It can be understood that the hardware layer in FIG2 shows the display 241, sensor 242, etc. involved in the following embodiments.

[0082] The resource control module 221 in the application framework layer can identify the application's operating scenario, obtain the corresponding resource control policy based on the application's operating scenario, and execute the resource control policy. Accordingly, as shown in Figure 3, the resource control module 221 may include a scenario identification module 2211, a policy decision module 2212, and a policy execution module 2213. The scenario identification module 2211 can be used to obtain operating scenario information of the first application 211, determine the operating scenario of the first application 211 based on the operating scenario information, and send scenario indication information to the policy decision module 2212. The policy decision module 2212 can be used to determine the resource control policy corresponding to the operating scenario indicated by the scenario indication information, and can send the resource control policy indication information to the policy execution module 2213. The policy execution module 2213 can be used to execute the corresponding resource control operation based on the resource control policy indicated by the resource control policy indication information. A detailed description of the above-mentioned method implemented by the resource control module 221 is provided below.

[0083] In a possible implementation, as shown in FIG3 , the policy decision module 2212 may obtain the resource control policy corresponding to the operation scenario by querying the corresponding relationship 2214 between the scenario and the resource control policy according to the operation scenario.

[0084] In one possible implementation, the resource control policy may be system-preset. Furthermore, the resource control policy may be preset for a specific type of application, such as a gaming application (e.g., a competitive game). Furthermore, the resource control policy may be updated by updating the operating system. In another possible implementation, the resource control policy may be set by the application, such as being included in the application's installation package. Furthermore, the resource control policy of the application may be updated by updating the application.

[0085] In one possible implementation, the correspondence 2214 between scenarios and resource control policies can be system-preset. Furthermore, it can be preset for a specific type of application, for example, for a gaming application (e.g., a competitive game). Furthermore, the correspondence can be updated by updating the operating system. In another possible implementation, the correspondence can be set by the application, for example, included in the application's installation package. Furthermore, the correspondence can be updated by updating the application.

[0086] It can be understood that the module division method and module naming in Figure 3 are only an example and are not limited to this embodiment of the present application.

[0087] In order to better understand the embodiments of the present application, the running scenarios of the applications in the embodiments of the present application are described below.

[0088] Based on the running stage of the first application, the functions provided, etc., the first application can include multiple running scenarios. For example, if the first application is a game application, the running scenarios of the game application can include:

[0089] Game startup scenario: In this scenario, the terminal device loads application resources and performs initialization settings;

[0090] Game update scenario: In this scenario, the terminal device obtains updated application data from the network and updates the application data of the local game;

[0091] Game setting scenario: In this scenario, the terminal device can set the game according to the user's operation, such as setting the game mode (such as single-player mode or multiplayer mode) according to the user's selection;

[0092] Main interface scene: In this scene, the main interface of the game is displayed;

[0093] Player loading scenario: In this scenario, the game player is loaded, for example, the terminal device establishes a connection with the terminal devices of other users participating in the game;

[0094] Game battle scenario: In this scenario, users can battle with other players through user operations (such as screen touch operations);

[0095] Battle End Scene: This scene is entered when the battle ends. This scene can be entered when a character participating in the battle dies or when the user stops the battle through a touch operation.

[0096] The above operation scenario is only an example, and the embodiments of the present application do not limit the division of the operation scenarios.

[0097] The first application can switch from one running scene to another. The switching of running scenes can be implemented based on user operations. For example, when a user starts a game application, the game application enters the game startup scene. When the user triggers the "game settings" function button on the user interface, the game application displays the game settings interface and enters the game settings scene. When the user completes the game settings and selects the "start game" function button in the user interface, the game application accesses the game battle scene. The running scene can also be switched by the first application according to the running situation. For example, in some battle scenes, after the character participating in the battle dies, the game enters the battle end scene.

[0098] In some embodiments of the present application, the operation scenes can be divided into different scene types. Optionally, the division of scene types can be based on whether the operation scene is a scene corresponding to the user's core experience (or whether it is a scene related to the user's core experience), and the embodiments of the present application do not limit this. In an embodiment of the present application, the operation scene or scene type related to the user's core experience is referred to as the first scene, and the operation scene or scene type that is irrelevant or has low relevance to the user's core experience is referred to as the second scene. Taking the above-mentioned game application as an example, the above-mentioned operation scenes can be divided into the first scene (also called the battle scene) and the second scene (also called the non-combat scene). Among them, since the above-mentioned "game battle scene" is a scene related to the user's core experience, it is divided into the first scene (battle scene), and the above-mentioned other operation scenes do not belong to the scenes related to the user's core experience, and are therefore classified as the second scene (non-combat scene).

[0099] Because different operating scenarios or different types of operating scenarios have different requirements for user experience, resource control policies can be set to match different operating scenarios or different types of operating scenarios to meet the user experience requirements of different operating scenarios or different types of operating scenarios. For example, for operating scenarios related to the user's core experience, more resources can be allocated to ensure a good user experience; for operating scenarios that are irrelevant or have low relevance to the user's core experience, fewer resources can be allocated to reduce terminal power consumption.

[0100] In order to better understand the embodiments of the present application, the resource control strategy in the embodiments of the present application is described below.

[0101] The resource control strategies provided in the embodiments of the present application may include one or more of the following:

[0102] (1) Display control strategy

[0103] Display control is used to control image quality. Display control strategies can include image quality control strategies and / or smoothness control strategies. Image quality control strategies can include indicators such as brightness, resolution, and texture accuracy. Color scale is an index that indicates the brightness of an image, also known as the color index. In digital image processing, it refers to grayscale resolution (also known as grayscale resolution or amplitude resolution). Image resolution determines the number of pixels that make up an image, and resolution determines the fineness of image detail. Texture accuracy is used to express the texture of an object's surface and the unique morphological and pattern characteristics formed in terms of color, brightness, and structure. It is an important aspect of texture expression. The higher the texture accuracy, the better the texture expression. Smoothness refers to the smoothness of the image and can be measured by frame rate. The unit of frame rate is FPS (frames per second), which is the number of images rendered per second. The higher the frame rate, the better the smoothness. For gaming applications, if the frame rate is 60 FPS or higher, the picture is smooth. If the frame rate is lower than 60 FPS, the picture is not smooth. For example, when the frame rate is 60 FPS or lower, the user will feel uncomfortable watching the picture (for example, the picture may freeze).

[0104] It is understood that the above-mentioned image quality control strategy and smoothness control strategy can be combined into a display control strategy. In other words, the display control strategy can control one or more of brightness, resolution, texture accuracy and frame rate.

[0105] In a possible display control strategy provided in an embodiment of the present application, a higher brightness, a higher resolution, a higher texture accuracy, and a higher frame rate can be set for the first scene, so that the user can have a better visual experience; for the second scene, a lower brightness, a lower resolution, a lower texture accuracy, and a lower frame rate can be set to reduce the power consumption of the terminal device.

[0106] (2) Chirality control strategy

[0107] Chirality refers to how quickly the screen content responds to a user's swipe gesture. Faster responses indicate better chirality. Chirality can be measured using the touch reporting rate, which refers to the number of times the screen scans per second. A higher touch reporting rate indicates faster screen response and better chirality. For example, a 240Hz touch reporting rate means the touchscreen scans 240 times per second, calculating the finger's touch position with each scan and reporting the resulting touch information to the system for processing.

[0108] For gaming applications, if the touch reporting rate is 240Hz or above, the tracking performance is good, and if the touch reporting rate is 120Hz or lower, the tracking performance is poor.

[0109] In one possible chirality control strategy provided by an embodiment of the present application, a higher touch reporting rate can be set for the first scenario, and the chirality tracking thread can be set to a higher priority, thereby providing a better user experience. A lower touch reporting rate can be set for the second scenario, and the chirality tracking thread can be set to a lower priority, thereby reducing power consumption of the terminal device. The chirality tracking thread is used to calculate the finger touch position when a finger touch operation is detected, and to perform further response processing based on the finger touch position.

[0110] (3) Sound quality control strategy

[0111] Sound quality refers to the quality of sound, which can be reflected in aspects such as volume and the number of channels. Volume refers to the intensity and amplitude of the audio; channels refer to the independent audio signals collected or played back from different spatial locations during recording or playback. The number of channels refers to the number of sound sources during recording or the number of speakers during playback. The higher the number of channels, the better the sound quality.

[0112] In a possible sound quality control strategy provided in an embodiment of the present application, a higher volume and a higher number of channels can be set for the first scenario, so that the user can have a better listening experience; for the second scenario, a lower volume and a lower number of channels can be set to reduce the power consumption of the terminal device.

[0113] (4) Vibration control strategy

[0114] Vibration can enhance the vibration feedback of terminal devices (for example, when touching an object on the interface, you will get vibration feedback), improving the application experience. For example, when playing a game application, the terminal device can automatically recognize the shooting action and vibrate, thus improving the gaming experience.

[0115] In a possible vibration control strategy provided in an embodiment of the present application, the vibration function can be turned on for the first scenario, so that the user can obtain a better vibration experience; and the vibration function can be turned off for the third scenario, so as to reduce the power consumption of the terminal.

[0116] (5) Backend load control strategy

[0117] Foreground operation means that the application is running on the processor, such as a running game application, which can achieve human-computer interaction. Applications in this operation mode can be called foreground applications. Background operation refers to a mode in which only lightweight services in the application are running. For example, this lightweight service can obtain new network messages and notify the user of new messages (for example, through pop-up notifications), or perform regular reminders. Applications in this operation mode can be called background applications.

[0118] In a possible background load control strategy provided by an embodiment of the present application, the background application network channel can be closed for the first scenario, and the background application network channel can be opened for the second scenario. When the background application network channel is opened, the background application can receive messages from the network side and can use pop-up windows and other methods to provide message reminders; when the background application network channel is closed, the background application cannot receive messages from the network side. Compared to opening the background application network channel, closing the background application network channel can avoid the interference of background application message notifications for the foreground application, allowing the user's attention to be focused on the foreground application. In addition, compared to opening the background application network channel, it can also reduce resource overhead.

[0119] The above examples only illustrate several resource control strategies, and the present application does not limit them. It is understood that the present application may also adopt other resource control strategies, such as a SoC resource supply control strategy. In one possible SoC resource supply control strategy provided in the present application, a higher SoC frequency may be set for the first scenario, and a lower SoC frequency may be set for the second scenario.

[0120] The above-mentioned various resource control strategies can be used in combination, so that resource control can be performed from multiple angles, thereby improving the user experience for certain operation scenarios and reducing terminal power consumption while ensuring the user experience for other operation scenarios.

[0121] In one possible resource control policy setting method provided in an embodiment of the present application, a resource control policy corresponding to an operating scenario or scenario type may include a target parameter value or a target setting operation for the corresponding resource control operation. Taking the chirality control policy as an example, the chirality control policy corresponding to the first scenario includes a target reporting rate value or value range. Specifically, the target reporting rate value range is: a touch reporting rate greater than 240Hz. The chirality control policy may also include a target setting operation, specifically, setting the chirality thread to a high priority.

[0122] In another possible resource control policy setting method provided by an embodiment of the present application, the resource control policy corresponding to a running scenario or scenario type can be a level of resource control policy. The resource control policy can include two or more levels, and each level corresponds to a target parameter value and / or a target setting operation of the resource control operation. Taking the chirality control policy as an example, the chirality control policy corresponding to the first scenario is the first chirality level, and the chirality control policy corresponding to the second scenario is the second chirality level. The value range of the target reporting rate corresponding to the first chirality level is: the touch reporting rate is greater than 240Hz, and the target setting operation is to set the chirality thread to a high priority; the value range of the target reporting rate corresponding to the second chirality level is: the touch reporting rate is less than 120Hz, and the target setting operation is to set the chirality thread to a low priority. The above-mentioned resource control policy setting method can improve system flexibility. For example, the target parameter values ​​and / or target setting operations corresponding to one or more levels can be flexibly adjusted as needed without changing the resource control policy level.

[0123] For example, FIG4 shows a correspondence between a resource control strategy and an operating scenario provided by an embodiment of the present application. As shown in FIG4 , the chirality control strategy, display control strategy, sound quality control strategy, vibration control strategy, and background load control strategy corresponding to the first scenario are respectively at the first level, and the chirality control strategy, display control strategy, sound quality control strategy, vibration control strategy, and background load control strategy corresponding to the second scenario are respectively at the second level. Among them, for the chirality control strategy, display control strategy, sound quality control strategy, and vibration control strategy, the resource overhead corresponding to the first level is higher than the resource overhead corresponding to the second level; for the background load control strategy, the resource overhead corresponding to the first level is lower than the resource overhead corresponding to the second level.

[0124] For example, FIG5 illustrates the target parameters and / or target setting operations corresponding to each level of a resource control strategy provided in an embodiment of the present application. As shown in FIG5 , the touch reporting rate corresponding to the first level of the chirality control strategy is greater than 240Hz, and the priority of the chirality thread is high; the touch reporting rate corresponding to the second level is less than 120Hz, and the priority of the chirality thread is low. The display parameters corresponding to the first level of the display control strategy include a first brightness, a first resolution, a first texture accuracy, and a first frame rate; the display parameters corresponding to the second level are a second brightness, a second resolution, a second texture accuracy, and a second frame rate. The first brightness is greater than the second brightness. For example, the first brightness and the second brightness are brightness coefficients, respectively. The R channel component, G channel component, and B channel component of each pixel are adjusted according to the brightness coefficient, thereby changing the brightness of the image. The first resolution is higher than the second resolution. For different types of terminal devices, the values ​​of the first resolution and the second resolution are also different. The first frame rate is greater than the second frame rate. For example, the first frame rate can be 90FPS or 120FPS, and the second frame rate can be any value within the range of less than or equal to 60FPS. The target volume value corresponding to the first level of the sound quality control strategy is the first volume value (for example, 80), and the target number of channels is dual-channel; the target volume value corresponding to the first level is the second volume value (for example, 50), and the target number of channels is mono, wherein the volume value can range from 0 to 100, and the larger the value, the louder the volume. The target setting operation corresponding to the first level of the vibration control strategy is to turn on the motor of the vibration sensor, and the target setting operation corresponding to the second level is to turn off the motor of the vibration sensor. The target setting operation corresponding to the first level of the background load control strategy is to close the background application network channel, and the setting operation corresponding to the second level is to open the background application network channel.

[0125] It can be understood that the parameter values ​​shown in FIG5 are only an example, and in actual applications, the parameter values ​​can be set according to specific circumstances (such as the capabilities of the terminal device or the type of the terminal device, or application requirements).

[0126] It can be understood that Figure 5 only describes the resource control policy including two levels and the operation scenario including two types as an example. In some cases, the resource control policy may include more levels and the operation scenario may also include more types. The embodiments of the present application do not limit this.

[0127] It is understood that in FIG5 , five resource control strategies are set for each operation scenario or each operation scenario. In some embodiments, more or fewer resource control strategies may be set for each operation scenario or each operation scenario. In other embodiments, different numbers of resource control strategies may be set for different operation scenarios or different types of operation scenarios. For example, the above five resource control strategies are set for the first scenario, and four resource control strategies other than the background load control strategy are set for the second scenario. This means that when switching from the first scenario to the second scenario, the background load setting remains unchanged.

[0128] In one possible implementation provided by an embodiment of the present application, according to FIG3 above, after the policy decision module 2212 determines the resource control policy corresponding to the operation scenario, the policy execution module 2213 can execute the resource control policy. Optionally, the policy decision module 2212 can include one or more decision modules, each of which is used to make a decision on a resource control policy; accordingly, the policy execution module 2213 can include one or more setting modules, each of which is used to set target parameters and / or perform target setting operations according to a corresponding resource control policy.

[0129] Figure 6 illustrates a schematic diagram of the structure of a policy decision module and policy execution module provided in an embodiment of the present application. As shown in Figure 6, the policy decision module 2212 may include a display decision module, a chirality decision module, a sound quality decision module, a vibration decision module, and a background load decision module. Correspondingly, the policy execution module 2213 may include a display setting module, a touch reporting rate setting module, an audio setting module, a sensor setting module, and a background application setting module. The display decision module can be further divided into a fluency decision module and an image quality decision module.

[0130] It can be understood that the above module division method is only a possible implementation method. The embodiment of the present application does not limit the module division method and the number of modules. In other embodiments, the policy decision module and the policy execution module may not be further divided into modules.

[0131] Taking FIG6 as an example, the execution process of each resource control strategy is described below.

[0132] After the fluency decision module obtains the fluency control policy corresponding to the current running scenario, it can send the instruction information of the resource control policy to the display setting module, and the display setting module can set the frame rate according to the corresponding fluency control policy.

[0133] In one possible implementation, the indication information of the resource control strategy sent by the fluency decision module is used to indicate the level of the fluency control strategy. The display setting module can obtain the target frame rate or target frame rate range corresponding to the level indicated by the indication information, and generate a control command based on the current frame rate and / or screen refresh rate. The control command may be sent to the GPU to enable the GPU to output the image at the frame rate indicated by the control command. The control command may also be sent to the display driver at the system layer, and the display driver controls the display to refresh the screen according to the screen refresh rate indicated by the control command.

[0134] Taking the target frame rate in the display control strategy shown in Figure 5 as an example, in one scenario, the smoothness decision module sends the first level indication information to the display setting module, the display setting module obtains the target frame rate 120FPS corresponding to the first level, and compares the target frame rate with the current frame rate. If the current frame rate is lower than 120FPS and the target frame rate 120FPS is less than or equal to the screen refresh rate threshold, a control command is sent to the GPU to instruct the GPU to output the image at 120FPS, and a control command is sent to the display driver in the system layer to instruct the screen to refresh at 120FPS; if the current frame rate is lower than 120FPS and the target frame rate 120FPS is greater than the screen refresh rate threshold, a control command is sent to the GPU to instruct the GPU to output the image at 120FPS, and a control command is sent to the display driver in the system layer to instruct the screen to refresh according to the screen refresh rate threshold; if the current frame rate has reached 120FPS, the current frame rate can be kept unchanged. In another case, the smoothness decision module sends the second level indication information to the display setting module. The display setting module obtains the target frame rate range corresponding to the second level (less than or equal to 60FPS) and compares the target frame rate range with the current frame rate. If the current frame rate is higher than the upper limit of the range, 60FPS, a control command is sent to the GPU to instruct the GPU to output the image at any frame rate within the range (such as 50FPS). Furthermore, a control command can be sent to the display driver in the system layer to instruct the screen to refresh at 50FPS. If the current frame rate is within the range or lower than the lower limit of the range, the current frame rate can be kept unchanged.

[0135] In another possible implementation, the resource control policy indication information sent by the fluency decision module is used to indicate the target frame rate, and the display setting module can set the frame rate according to the target frame rate indicated by the indication information, and further, can set the screen refresh. The setting method can be referred to the above description.

[0136] In another possible implementation, when the terminal device supports partitioning for frame rate adjustment, a first area can also be determined, and the first area is the area of ​​user attention in the user interface of the first application. Accordingly, when the resource control policy corresponding to the operation scenario is determined according to the operation scenario, the frame rate of the first area can be determined according to the operation scenario. For example, when the operation scenario is the first scene, only the frame rate of the first area can be increased according to the target frame rate in the fluency control policy corresponding to the first scene. This can avoid excessive increase in power consumption of the terminal device while ensuring the user's visual experience. Optionally, the area of ​​user attention can be determined by obtaining the user's head movement or eye movement or gaze direction. For example, taking a VR helmet as an example, the area of ​​user attention in the user interface can be determined based on the head rotation direction and eye gaze direction.

[0137] After the image quality decision module obtains the image quality control strategy corresponding to the current running scene, it can send the indication information of the resource control strategy to the display setting module, and the display setting module can perform display settings according to the corresponding image quality control strategy. In one possible implementation, the indication information of the resource control strategy sent by the image quality decision module is used to indicate the level of the image quality control strategy. The display setting module can obtain the target display parameters (such as brightness, resolution, texture accuracy, etc.) corresponding to the level according to the level indicated by the indication information, and generate a control command according to the target display parameters. The control command is sent to the display driver at the system layer, and the display driver controls the GPU to output the image according to the target display parameters. In another possible implementation, the indication information of the resource control strategy sent by the image quality decision module is used to indicate the target display parameters. The display setting module can generate a control command according to the target display parameters, and the control command is sent to the display driver at the system layer, and the display driver controls the GPU to output the image according to the target display parameters.

[0138] Optionally, the control command sent by the display setting module can indicate a brightness adjustment coefficient, and the GPU can adjust the values ​​of the G, R, and B channels of each pixel according to the brightness adjustment coefficient. It is understood that the embodiment of the present application does not limit the method for adjusting brightness.

[0139] It is understandable that the fluency decision module and the image quality decision module can also be combined into a display decision module.

[0140] After the chirality decision module obtains the chirality control strategy corresponding to the current operating scenario, it can send the indication information of the resource control strategy to the touch reporting rate setting module. The touch reporting rate setting module can set the touch reporting rate according to the corresponding chirality control strategy. In one possible implementation, the indication information of the resource control strategy sent by the chirality decision module is used to indicate the level of the chirality control strategy. The touch reporting rate setting module can obtain the target touch reporting rate and chirality thread priority setting operation corresponding to the level indicated by the indication information, generate a control command based on the target touch reporting rate, and send the control command to the driver at the system layer. The driver controls the touch screen to scan the code at the target touch reporting rate. The touch reporting rate setting module can also set the chirality thread priority setting operation corresponding to the level. In another possible implementation, the indication information of the resource control policy sent by the chirality decision module is used to indicate the target touch reporting rate and the chirality thread priority setting operation. The touch reporting rate setting module can set the touch reporting rate according to the target touch reporting rate indicated by the indication information. Furthermore, the priority of the chirality thread can also be set according to the priority of the chirality thread indicated by the indication information.

[0141] After the sound quality decision module obtains the sound quality control strategy corresponding to the current operating scenario, it can send the indication information of the resource control strategy to the audio setting module, and the audio setting module can set the speaker according to the corresponding sound quality control strategy. In one possible implementation, the indication information of the resource control strategy sent by the sound quality decision module is used to indicate the level of the sound quality control strategy. The audio setting module can obtain the target sound quality parameters (such as volume, number of channels, etc.) corresponding to the level according to the level indicated by the indication information, and generate a control command according to the target sound quality parameters. The control command is sent to the speaker driver at the system layer, and the speaker driver controls the speaker to output audio according to the target sound quality parameters. In another possible implementation, the indication information of the resource control strategy sent by the sound quality decision module is used to indicate the target sound quality parameters. The audio setting module can generate a control command according to the target sound quality parameters, and the control command is sent to the speaker driver at the system layer, and the speaker driver controls the speaker to output audio according to the target sound quality parameters.

[0142] After the vibration decision module obtains the vibration control strategy corresponding to the current operating scenario, it can send the indication information of the resource control strategy to the sensor setting module. The sensor setting module can then set the sensor according to the corresponding vibration control strategy, for example, turning off or on the motor of the relevant sensor (such as the vibration sensor). In one possible implementation, the indication information of the resource control strategy sent by the vibration decision module is used to indicate the level of the vibration control strategy. The sensor setting module can obtain the target setting operation corresponding to the level based on the level indicated by the indication information (the target setting operation may be turning on or off the vibration sensor motor). Based on the target setting operation, a control command is generated. The control command is sent to the sensor driver at the system level, and the sensor driver turns on or off the vibration sensor motor. In another possible implementation, the indication information of the resource control strategy sent by the vibration decision module is used to indicate the target setting operation. The sensor setting module can generate a control command based on the target setting operation indicated by the indication information. The control command is sent to the sensor driver at the system level, and the sensor driver turns on or off the vibration sensor motor.

[0143] After the background load decision module obtains the background load control policy corresponding to the current running scenario, it can send the indication information of the resource control policy to the background application setting module. The background application setting module can make settings according to the corresponding background load control policy, for example, it can close or open the network channel of the background application. In one possible implementation, the indication information of the resource control policy sent by the background load decision module is used to indicate the level of the background load control policy. The background application setting module can obtain the target setting operation corresponding to the level according to the level indicated by the indication information (the target setting operation may be to open the background application network channel or to close the background application network channel). According to the target setting operation, it instructs the relevant services in the application framework layer (such as the message management service) to open or close the network channel of the background application. In another possible implementation, the indication information of the resource control policy sent by the background load decision module is used to indicate the target setting operation. The background application setting module can instruct the relevant services in the application framework layer (such as the message management service) to open or close the network channel of the background application according to the target setting operation indicated by the indication information.

[0144] See Figure 7, which is a flow chart of a scenario-based terminal control method provided in an embodiment of the present application. This process can be executed on a terminal device, and an example of the terminal device structure can be shown in Figure 1 or Figure 2. This process can also be executed by a functional module within the terminal device, which can be located in the application framework layer, and an example of the structure of this functional module can be shown in Figure 3.

[0145] As shown in the figure, the process can include the following steps:

[0146] S701: Obtain running scenario information of the first application.

[0147] The first application is an application running in the foreground. Optionally, the first application may be a game application, such as a fighting game.

[0148] In one possible implementation of obtaining operating scenario information, the scenario information is scenario indication information output by the first application, such as a scenario identifier (also referred to as a scenario value) used to distinguish operating scenarios. Taking the architecture shown in FIG2 as an example, in an embodiment of the present application, the first application can send the scenario identifier of the current operating scenario to the resource control module in the application framework layer through an interface between the first application and the application framework layer.

[0149] Optionally, the first application can determine that the running scene is switched based on the user's operation, and send the indication information of the target running scene to the resource control module. For example, when the user triggers the "Settings" button on the user interface, the first application can determine that it needs to switch to the settings interface, and send the indication information of the running scene corresponding to the settings interface to the resource control module. The first application can also automatically send the indication information of the running scene to the resource control module based on the running situation. For example, taking the first application as a game application, when a character participating in the battle dies, it is necessary to switch to the scene for replaying the character, then the application can send the indication information of the running scene corresponding to the replay scene to the resource control module.

[0150] Optionally, the interface between the first application and the application framework layer may be an interface defined in an embodiment of the present application, used to convey a scenario identifier for the first application's operating scenario. For example, a terminal device manufacturer may collaborate with the manufacturer of the first application to define the interface and scenario identifier.

[0151] Taking the first application as a game application as an example, see Figure 8, which is a schematic diagram of a scenario identification definition provided by an embodiment of the present application. It can be understood that the running scenario shown in Figure 8 is only an example and is not limited to this embodiment of the present application.

[0152] In another possible implementation of obtaining the running scene information, the scene information includes a user interface rendering event of the first application output by the operating system, and the running scene of the first application can be determined based on the user interface rendering event. Optionally, the user interface rendering event may include one or more of an event for rendering a texture map, an event for rendering text, and an event for a control state. The user interface rendering event may include relevant information of the rendered object, such as the type and / or characteristics of the rendered texture map, the content of the rendered text, the identifier of the rendered control, the control state, etc. Optionally, the above-mentioned user interface rendering event may come from a processor that performs user interface rendering, such as a GPU. Optionally, the user interface rendering event can be subscribed to the GPU by subscription. When the GPU renders the object corresponding to the user interface rendering event (such as a texture map, text, control, etc.), the user interface rendering event can be sent to the resource control module in the application framework layer.

[0153] Different runtime scenarios may require different texture maps, or some runtime scenarios may use one or more specific types of maps. Therefore, the corresponding runtime scenario can be determined based on the texture maps rendered by a processor (e.g., a GPU). Taking the first application as a game application as an example, in a battle scene, texture maps such as raw terrain texture maps and main scene maps may be used. Accordingly, if the resource control module determines to render raw terrain texture maps and / or main scene maps based on a user interface rendering event from the GPU, the corresponding runtime scenario can be determined to be a battle scene. Still taking the first application as a game application as an example, when a protagonist participating in a battle dies, a death replay-related texture map will be displayed. For example, the GPU will render a death replay texture map, a space grayed-out texture map, and other key features. Accordingly, if the resource control module determines to render a death replay-related texture map based on a user interface rendering event from the GPU, the corresponding runtime scenario can be determined to be a non-combat scene. Still taking the first application as a game application as an example, if the resource control module determines to render a non-main scene map, a loading status texture, etc. based on a user interface rendering event from the GPU, the corresponding runtime scenario can be determined to be a non-combat scene.

[0154] Different execution scenarios may require different text to be displayed, or some execution scenarios may use text with specific content. Therefore, the corresponding execution scenario can be determined based on the text rendered by the processor (such as a GPU). Taking the first application as a game application as an example, when the protagonist participating in the battle dies, text related to the death replay will be displayed. Accordingly, if the resource control module determines to render text related to the death replay based on the user interface rendering event from the GPU, the corresponding execution scenario can be determined to be a non-combat scenario.

[0155] Different operating scenarios may require different controls to be displayed, or some operating scenarios may use specific controls, or the status of the same control in different operating scenarios may be different. For example, for a "skill" control (used to give a game character specific skills) in a game application, it is displayed as unavailable in non-combat scenarios and cannot respond to user operations, but it is displayed as available in combat scenarios and can respond to user operations. Therefore, the corresponding operating scenario can be determined based on the control or control state rendered by the processor (such as a GPU). Taking the first application as a game application as an example, if the resource control module determines to render a "settings" control (the control is used to set up the game) based on the user interface rendering event from the GPU, then the corresponding operating scenario can be determined to be a non-combat scenario. Still taking the first application as a game application as an example, if the resource control module determines to render a "skill" control based on the user interface rendering event from the GPU and the control is displayed as available, then the corresponding operating scenario can be determined to be a combat scenario.

[0156] S702: Determine the running scenario of the first application according to the running scenario information.

[0157] In a possible implementation, the operation scenarios can be further divided into two or more scenario types. Accordingly, there is a corresponding relationship between each scenario type and a resource control strategy, and the corresponding resource control strategy can be determined according to the scenario type.

[0158] Taking the first application as a game application as an example, based on the running scenario shown in Figure 8, Figure 9 shows a schematic diagram of the corresponding relationship between a running scenario and a scene type provided by an embodiment of the present application. Among them, when entering the game battle state (such as entering the game battle interface), the first application sends a scene identifier with a value of 8, and according to the corresponding relationship, it can be determined that the current scene is the first scene (i.e., the battle scene). When the number of players visible in the interface rises to a set threshold (such as 4 people), the first application sends a scene identifier with a value of 9. Since a battle is likely to occur when the number of visible players is large, the running scenario is divided into the first scene (i.e., the battle scene) in the above corresponding relationship. When the game character is resurrected, the first application sends a scene identifier with a value of 11. Since it is likely to fight again when the game character is resurrected, the running scenario is divided into the first scene (i.e., the battle scene) in the above corresponding relationship.

[0159] S703: Determine, according to the operation scenario, a resource control operation corresponding to the operation scenario.

[0160] Optionally, the resource control operation includes one or more of display setting, audio setting, reporting rate setting, sensor setting, background application setting, and frame rate setting.

[0161] S704: Execute the resource control operation.

[0162] The specific implementation of the above S703 to S704 can be found in the previous text and will not be repeated here.

[0163] In one possible implementation, in FIG7 above, if it is determined in S702 that the running scenario of the first application is the first scenario, after executing the corresponding resource control operation through S704, the following operations may be further performed: determine whether the power consumption of the current terminal device meets the set conditions. If not, the resource usage of the terminal device may be adjusted according to the resource adjustment amount to reduce the power consumption of the terminal device. Otherwise, the current status quo may be maintained. The above process may be performed multiple times until the power consumption of the terminal device meets the set conditions. In this way, when the first application switches to the first scenario, if the power consumption of the terminal device is too high after executing the resource control policy corresponding to the first scenario, the power consumption of the terminal device may be appropriately reduced through the above method, so as to take into account both the user experience and the power consumption of the terminal device.

[0164] Optionally, the set condition may include: the temperature of the processor is lower than a set threshold, and / or the occupancy rate of the processor is lower than a set threshold.

[0165] Optionally, the above-mentioned adjustment of resource usage of the terminal device according to the resource adjustment amount may include one or more of the following operations: lowering the frame rate according to the frame rate adjustment amount, lowering the touch reporting rate according to the touch reporting rate adjustment amount, lowering the brightness according to the brightness adjustment amount, lowering the resolution according to the resolution adjustment amount, lowering the texture accuracy according to the texture accuracy adjustment amount, and lowering the volume according to the set volume adjustment amount.

[0166] Optionally, the adjustment amounts for the various resources described above may be pre-set. For example, if the brightness value corresponding to the first scene is 80 and the brightness value corresponding to the second scene is 50, the brightness adjustment value may be 5. The adjustment amounts for the various resources described above may also be dynamically determined based on the current processor temperature and / or occupancy rate of the terminal device. For example, if the current processor temperature is higher than a set threshold and the difference from the set threshold is large, the adjustment value may be set to a larger value.

[0167] Different operating scenarios have different degrees of impact on the user experience. In the above implementation, different resource control operations can be set for different operating scenarios, so that the resources of the terminal device can be differentially controlled based on the operating scenario of the application, thereby improving the user experience. For example, for operating scenarios that have a greater impact on the user experience, such as combat scenes in game applications, more resources can be occupied to improve the user experience. For operating scenarios that have a smaller impact on the user experience, such as non-combat scenes in game applications, fewer resources can be occupied to reduce the power consumption of the terminal device without causing too much impact on the user experience.

[0168] Figure 10 illustrates the scenario-based terminal control process, taking the first application as a game application as an example. As shown in Figure 10, at S1001, the terminal device identifies the game scenario. The specific implementation method can be found in S701 and S702 in Figure 7. At S1002, if the scenario is identified as a battle scenario, S1003-S1004 is executed; if the scenario is identified as a non-combat scenario, S1005-S1006 is executed. The specific implementation of S1003-S1004 and S1005-S1006 can be found in S703-S704 in Figure 7. The above process can be repeated during the game until the game is stopped or closed.

[0169] In some embodiments of the present application, the user may be allowed to enable the scenario-based resource control function, thereby allowing the terminal device to perform resource control according to the above-mentioned method provided in the embodiments of the present application. The user may also be allowed to disable the scenario-based resource control function. Optionally, if this function is disabled, the terminal device may perform resource control according to other methods, which is not limited in the embodiments of the present application.

[0170] In one possible implementation, taking the architecture shown in FIG2 as an example, after the second application (such as an application assistant) is opened, a setting interface is displayed, which includes an option for turning on / off the scenario-based terminal control function. When the user chooses to turn on the function through a user operation on the option, the second application can send an indication message to the resource control module in the application framework layer. If the indication message indicates to turn on the scenario-based resource control function, the module enables the scenario-based resource control function. If the indication message indicates to turn off the scenario-based resource control function, the module turns off the scenario-based resource control function.

[0171] Figure 11 illustrates an example of a settings interface provided by an application assistant in an embodiment of the present application. As shown in the figure, the settings interface may include a "scenario-based resource control" function option 1101. By clicking on this function option 1101, the switch state can be changed. In Figure 11, the state of this function option is on, indicating that the scenario-based resource control function is enabled.

[0172] Referring to Figure 12, a scenario-based terminal control device is provided for an embodiment of the present application. The device may be a terminal device or a functional module inside the terminal device. The device may include: a processing unit 1201 and a transceiver unit 1202. The processing unit 1201 is used to: obtain the running scenario information of the first application; determine the running scenario of the first application according to the running scenario information; determine the resource control operation corresponding to the running scenario according to the running scenario, and execute the resource control operation. The scenario information includes the scene indication information output by the first application and / or the user interface rendering event of the first application output by the operating system, and the user interface rendering event includes one or more of the events of rendering texture mapping, rendering text, and control status; the resource control operation includes one or more of the display settings, audio settings, reporting rate settings, sensor settings, and background application settings.

[0173] A more detailed description of the processing unit 1201 and the transceiver unit 1202 can be directly obtained by referring to the relevant description in the method embodiment shown in FIG7 , and is not repeated here.

[0174] Obviously, those skilled in the art may make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include these modifications and variations.

Claims

1. A scenario-based terminal control method, characterized in that: Applied to a terminal device, the method comprises: Acquire running scene information of the first application; wherein the scene information includes scene indication information output by the first application and / or a user interface rendering event of the first application output by the system, and the user interface rendering event includes one or more of a texture map rendering event, a text rendering event, and a control state event; Determining an operation scenario of the first application according to the operation scenario information; According to the operation scenario, determining a resource control operation corresponding to the operation scenario, wherein the resource control operation includes one or more of display setting, audio setting, reporting rate setting, sensor setting, and background application setting; The resource control operation is performed.

2. The method according to claim 1, characterized in that The first application is a game application, and the event of rendering the texture map includes one or more of the following: an event of rendering the raw land texture map, an event of rendering the main scene map, and an event of rendering the map of the game character status.

3. The method according to claim 2, characterized in that The determining, according to the running scenario information, the running scenario of the first application program includes: If the running scene information includes the event of rendering the raw land texture map and / or the event of rendering the main scene map, then determining that the running scene of the first application is the first scene; or If the running scene information includes the event of rendering the map of the game character status, and the map event of rendering the game character status is a map event of the death of the game character, then it is determined that the running scene of the first application is the second scene.

4. The method according to claim 1, characterized in that The scene indication information output by the first application includes a scene identifier; The determining, according to the running scenario information, the running scenario of the first application program includes: Determine the type of operation scenario corresponding to the scenario identifier according to the corresponding relationship between the operation scenario identifier and the operation scenario type; The determining, according to the operation scenario, a resource control operation corresponding to the operation scenario includes: According to the operation scenario type, a resource control strategy corresponding to the operation scenario type is determined.

5. The method according to any one of claims 1 to 4, characterized in that: The determining, according to the operation scenario, a resource control operation corresponding to the operation scenario includes: According to the operation scenario, determining a resource control strategy corresponding to the operation scenario; According to the resource control policy, determining a resource control operation corresponding to the resource control policy; The resource control strategy includes one or more of the following: chirality level, display effect level, sound quality level, vibration level, and background load level; and determining the resource control operation corresponding to the resource control strategy according to the resource control strategy includes one or more of the following: Determining a target reporting rate and / or a chirality thread scheduling priority according to the chirality level; Determining one or more of target brightness, target resolution, target texture accuracy, and target frame rate according to the display effect level; Determining a target volume and / or a target number of channels according to the sound quality level; Determining a switch state of a sensor according to the vibration sense level; The network channel switch state of the background application is determined according to the background load level.

6. The method according to claim 5, characterized in that The first application is a game application, and the running scenario of the first application is one of a first scenario and a second scenario; The chirality level corresponding to the first scene is higher than the chirality level corresponding to the second scene; The display effect level corresponding to the first scene is higher than the display effect level corresponding to the second scene; The sound quality level corresponding to the first scene is higher than the sound quality level corresponding to the second scene; The vibration level corresponding to the first scene is higher than the vibration level corresponding to the second scene; The background load level corresponding to the first scenario is lower than the background load level corresponding to the second scenario.

7. The method according to claim 6, characterized in that The operation scenario is the first scenario, and the method further includes: Determine a first area, where the first area is an area of ​​the user interface of the first application that the user focuses on; The performing of the resource control operation comprises: After determining a target frame rate according to the display effect level, the frame rate of the first area is set according to the target frame rate.

8. A scenario-based terminal control device, characterized in that: include: Processing unit and transceiver unit; The processing unit is used for: Acquire running scene information of the first application; wherein the scene information includes scene indication information output by the first application and / or a user interface rendering event of the first application output by the operating system, and the user interface rendering event includes one or more of a texture map rendering event, a text rendering event, and a control state event; Determining an operation scenario of the first application according to the operation scenario information; According to the operation scenario, determining a resource control operation corresponding to the operation scenario, wherein the resource control operation includes one or more of display setting, audio setting, reporting rate setting, sensor setting, and background application setting; The resource control operation is performed.

9. The device according to claim 8, characterized in that The first application is a game application, and the event of rendering the texture map includes one or more of the following: an event of rendering the raw land texture map, an event of rendering the main scene map, and an event of rendering the map of the game character status.

10. The device according to claim 9, characterized in that The processing unit is specifically used for: If the running scene information includes the event of rendering the raw land texture map and / or the event of rendering the main scene map, determining that the running scene of the first application is the first scene; or If the running scene information includes the event of rendering the map of the game character status, and the map event of rendering the game character status is a map event of the death of the game character, then it is determined that the running scene of the first application is the second scene.

11. The device according to claim 8, characterized in that The scene indication information output by the first application includes a scene identifier; The processing unit is specifically used for: Determine the type of operation scenario corresponding to the scenario identifier according to the corresponding relationship between the operation scenario identifier and the operation scenario type; According to the operation scenario type, a resource control strategy corresponding to the operation scenario type is determined.

12. The device according to any one of claims 8 to 11, characterized in that The processing unit is specifically used for: According to the operation scenario, determining a resource control strategy corresponding to the operation scenario; According to the resource control policy, determining a resource control operation corresponding to the resource control policy; The resource control strategy includes one or more of the following: chirality level, display effect level, sound quality level, vibration level, and background load level; and determining the resource control operation corresponding to the resource control strategy according to the resource control strategy includes one or more of the following: Determining a target reporting rate and / or a chirality thread scheduling priority according to the chirality level; Determining one or more of target brightness, target resolution, target texture accuracy, and target frame rate according to the display effect level; Determining a target volume and / or a target number of channels according to the sound quality level; Determining a switch state of a sensor according to the vibration sense level; The network channel switch state of the background application is determined according to the background load level.

13. The device according to claim 12, characterized in that The first application is a game application, and the running scenario of the first application is one of a first scenario and a second scenario; The chirality level corresponding to the first scene is higher than the chirality level corresponding to the second scene; The display effect level corresponding to the first scene is higher than the display effect level corresponding to the second scene; The sound quality level corresponding to the first scene is higher than the sound quality level corresponding to the second scene; The vibration level corresponding to the first scene is higher than the vibration level corresponding to the second scene; The background load level corresponding to the first scenario is lower than the background load level corresponding to the second scenario.

14. The device according to claim 12, characterized in that The operation scenario is the first scenario, and the processing unit is further used for: Determine a first area, where the first area is an area of ​​the user interface of the first application that the user focuses on; The processing unit is specifically used for: After determining a target frame rate according to the display effect level, the frame rate of the first area is set according to the target frame rate.

15. A device, characterized in that: include: Processor and memory; The memory stores one or more computer programs, and the one or more computer programs include instructions. When the instructions are executed by the processor, the apparatus performs the method according to any one of claims 1 to 7.

16. A readable storage medium, characterized in that: The method comprises a computer program, which, when executed on a device, causes the device to execute the method according to any one of claims 1 to 7.

17. A computer program product, characterized in that When it is run on a terminal device, the terminal device is enabled to execute the method according to any one of claims 1 to 7.

18. A chip system, characterized in that: include: a memory for storing computer programs; a processor; When the processor calls and runs the computer program from the memory, the terminal device equipped with the chip system executes the method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Resource configuration method and related product

    CN107577537A

  • Audio processing module operation method, device, terminal and storage medium

    CN109343902A

  • Mobile terminal frame rate control method and device, computer equipment and storage medium

    CN113126741A

  • Touch screen sampling rate adjusting method and electronic equipment

    CN113721785A

  • Resource rendering method and device

    CN115228083A