Resolution regulation and control method and device, electronic equipment and computer readable storage medium

By responding to application requests in the TV system, obtaining the system load and identifying the target scene of the target window, and rendering at the first resolution when specific conditions are met, the problem of blurred image and insufficient flexibility of the TV user interface is solved, and user interface rendering with high definition and smoothness is achieved.

CN120144223APending Publication Date: 2025-06-13SHENZHEN TCL NEW-TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510213535.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-24
Publication Date
2025-06-13

AI Technical Summary

Technical Problem

The existing TV system-level chip performance is low, resulting in the user interface rendering at 2K resolution, the image blur after zooming to 4K, and the existing solution is poor in flexibility and the control granularity is not fine enough.

Method used

By responding to application requests, the system load is obtained and the target scene of the target window is identified. When the system load and the target scene meet specific conditions, the target window is rendered at the first resolution.

Benefits of technology

It realizes flexible and fine rendering of the window with the first resolution as the application, improving the clarity and fluency of the user interface and avoiding waste of resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120144223A_ABST
    Figure CN120144223A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a resolution regulation and control method and device, electronic equipment and a computer readable storage medium, and the method comprises the steps: carrying out the rendering of a target window in an application at a first resolution in response to an application request, and obtaining a system load; when the system load meets a first rendering condition, identifying a target scene corresponding to the target window; and when the target scene satisfies a second rendering condition, rendering the target window with the first resolution. Therefore, the scheme can flexibly and finely render the window of the application by taking the first resolution as the application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of rendering technology, and in particular, to a resolution adjustment method, apparatus, electronic device, and computer-readable storage medium. Background Art

[0002] Currently, most TVs have adopted screens with a 4K resolution (3840x2160). However, when the performance of the system-on-chip (SoC) of the TV is low, the user interface (UI) of the TV is still rendered at a 2K resolution (1920x1080) and then enlarged to 3840x2160 for display on the screen. Therefore, the entire UI screen looks relatively blurred. In order to balance the SoC performance and resolution, related technologies configure some applications to be rendered at a 4K resolution. However, this solution has poor flexibility and the control granularity is not fine enough. Summary of the Invention

[0003] The embodiments of the present application provide a resolution adjustment method, apparatus, electronic device, and computer-readable storage medium, which can flexibly and finely render the window of an application at a first resolution.

[0004] In a first aspect, the embodiments of the present application provide a resolution adjustment method, including:

[0005] Responding to an application request to render a target window in the application at a first resolution, and obtaining the system load;

[0006] When the system load meets a first rendering condition, identifying a target scene corresponding to the target window; and

[0007] When the target scene meets a second rendering condition, rendering the target window at the first resolution.

[0008] In one embodiment, the step of identifying a target scene corresponding to the target window when the system load meets a first rendering condition includes:

[0009] Obtaining a load threshold;

[0010] When the system load is lower than the load threshold, identifying the target scene corresponding to the target window.

[0011] In one embodiment, the method further includes:

[0012] When the system load is not lower than the load threshold, rendering the target window at a second resolution.

[0013] In one embodiment, when the target scenario meets the second rendering condition, rendering the target window at the first resolution includes:

[0014] Obtain a first scene category rendered at the first resolution;

[0015] Obtain the scene category of the target scenario;

[0016] When the scene category of the target scenario belongs to the first scene category, render the target window at the first resolution.

[0017] In one embodiment, the method further includes:

[0018] Obtain a second scene category rendered at the second resolution;

[0019] When the scene category of the target scenario belongs to the second scene category, render the target window at the second resolution.

[0020] In one embodiment, obtaining the system load includes:

[0021] Read information of multiple hardware core nodes;

[0022] Determine the system load according to the information of the multiple hardware core nodes.

[0023] In one embodiment, rendering the target window at the first resolution includes:

[0024] Obtain the configuration parameters of the target window;

[0025] Enlarge the target window by modifying the scaling factor in the configuration parameters of the target window;

[0026] Modify the dots per inch in the configuration parameters of the target window;

[0027] Render the target window at the first resolution according to the modified dots per inch.

[0028] In a second aspect, an embodiment of the present application provides a resolution adjustment device, including:

[0029] An acquisition module, configured to obtain the system load by rendering a target window in an application at the first resolution in response to an application request;

[0030] An identification module, configured to identify a target scenario corresponding to the target window when the system load meets the first rendering condition; and

[0031] A rendering module, configured to render the target window at the first resolution when the target scene meets the second rendering condition.

[0032] In one embodiment, the recognition module includes:

[0033] An acquisition unit, configured to acquire a load threshold;

[0034] An identification unit, configured to identify the target scene corresponding to the target window when the system load is lower than the load threshold.

[0035] In one embodiment, the device further includes:

[0036] A first rendering module, configured to render the target window at a second resolution when the system load is not lower than the load threshold.

[0037] In one embodiment, the rendering module includes:

[0038] A first category acquisition unit, configured to acquire a first scene category rendered at the first resolution;

[0039] A second category acquisition unit, configured to acquire the scene category of the target scene;

[0040] A target rendering unit, configured to render the target window at the first resolution when the scene category of the target scene belongs to the first scene category.

[0041] In one embodiment, the device further includes:

[0042] A category acquisition module, configured to acquire a second scene category rendered at the second resolution;

[0043] A second rendering module, configured to render the target window at the second resolution when the scene category of the target scene belongs to the second scene category.

[0044] In one embodiment, the acquisition module includes:

[0045] A node information reading module, configured to read information of multiple hardware kernel nodes;

[0046] A load determination module, configured to determine the system load according to the information of the multiple hardware kernel nodes.

[0047] In one embodiment, the rendering module includes:

[0048] A parameter acquisition unit, configured to acquire configuration parameters of the target window;

[0049] A magnification unit, configured to magnify the target window by modifying a scaling factor in the configuration parameters of the target window;

[0050] A modification unit, configured to modify the dots per inch in the configuration parameters of the target window;

[0051] A rendering unit, configured to render the target window at the first resolution according to the modified dots per inch.

[0052] In a third aspect, an embodiment of the present application further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps in the above resolution adjustment method are implemented.

[0053] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above resolution adjustment method are implemented.

[0054] In a fifth aspect, an embodiment of the present application further provides a computer program product or a computer program. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in various optional implementation manners of the embodiments of the present application.

[0055] In summary, in the embodiments of the present application, in response to an application request to render a target window in an application at a first resolution, the target window can be rendered at the first resolution when the system load meets a first rendering condition and the target scene meets a second rendering condition. In this way, the rendering of the target window is performed in response to an application request, which is relatively flexible; only the target window can be rendered at the first resolution, which is relatively fine. Therefore, flexible and fine rendering of the window of the application at the first resolution is achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] In order to more clearly illustrate the technical solutions in the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative efforts.

[0057] Figure 1 It is a schematic diagram of the steps of a resolution adjustment method provided by an embodiment of the present application;

[0058] Figure 2 It is a schematic structural diagram of a resolution adjustment system provided by an embodiment of the present application;

[0059] Figure 3 It is a schematic structural diagram of a resolution adjustment device provided by an embodiment of the present application;

[0060] Figure 4 It is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0061] Next, the technical solutions in the present application will be clearly and completely described in conjunction with the accompanying drawings in the present application. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present invention.

[0062] In one embodiment, as Figure 1 shown, a resolution adjustment method is provided. Although the logical order is shown in the step schematic diagram, in some cases, the steps shown or described can be executed in a different order from that shown in the drawings. Specifically, the resolution adjustment method can be applied to a terminal, where the terminal can include, but is not limited to, one or more of a smart TV, a smart phone, a tablet computer, a portable computer, a desktop computer, and a vehicle-mounted computer.

[0063] The following will be described in detail respectively. It should be noted that the description order of the following embodiments does not limit the priority order of the embodiments.

[0064] According to Figure 1 the resolution adjustment method shown, the method at least includes steps S110 to S130, which are introduced in detail as follows:

[0065] In step S110, in response to an application request, render the target window in the application at a first resolution and obtain the system load.

[0066] An application refers to any application in the terminal, and the application can be of any category. For example, it can be a video application, an office application, a game application, a social application, or a life service application, etc.

[0067] The window of an application refers to the specific area where the application program displays content and interacts with the user on the screen of the terminal. An application can have multiple windows. For example, WeChat has a main window for the chat page, and when making a WeChat video call, there will also be a video call window independent of the main window. The user can perform operations such as answering, hanging up, and muting in the video call window, and can also switch back to the WeChat main window to chat on WeChat and view chat records, etc.

[0068] The application can send a request to request rendering of a target window in the application at a first resolution. The target window can be any window of the application, and the first resolution can be any resolution. Optionally, the first resolution can be a resolution higher than the default resolution in the terminal. For example, the first resolution can be a 4K resolution.

[0069] When receiving a request from the application to render the target window in the application at the first resolution, it is necessary to determine whether the application's request can be satisfied. Following the principle of giving priority to fluency, when the system load is high, rendering the target window at a relatively high first resolution will affect the fluency experience. Therefore, it is necessary to first obtain the system load to determine whether the system load meets the first rendering condition.

[0070] System load refers to the total amount of work that the system is processing and waiting to process within a specific time, reflecting the degree to which system resources are occupied. The system has a variety of hardware resources related to image rendering, so the system load can be determined based on the loads of multiple hardware resources. For example, the system load can include the Central Processing Unit (CPU) load, memory load, and Graphics Processing Unit (GPU), etc.

[0071] In one embodiment, the loads of multiple hardware resources can be obtained, and the system load can be obtained by integrating the loads of multiple hardware resources. For example, if the CPU load is 50%, the memory load is 60%, and the GPU load is 70%, then the average value of the CPU load, memory load, and GPU load can be determined as the system load, that is, the system load is 60%.

[0072] In another embodiment, the loads of multiple hardware resources related to image rendering can all be determined as the system load. For example, if the CPU load is 50%, the memory load is 60%, and the GPU load is 70%, then the system load includes three loads: the CPU load, memory load, and GPU load, and the three loads are 50%, 60%, and 70% respectively in sequence.

[0073] Based on the above embodiments, as an embodiment, the obtaining of the system load may include: reading information of multiple hardware kernel nodes; and determining the system load according to the information of the multiple hardware kernel nodes.

[0074] A CPU usually consists of multiple cores, and each core generates various status information during operation. Node information such as the utilization rate, operating frequency, and / or load of multiple cores can be read through a specific interface. The CPU load can be determined based on each piece of node information. For example, the utilization rate of a CPU core reflects the proportion of time the core is busy processing tasks within a certain period, so the utilization rate of the core and the CPU load are usually positively correlated; the operating frequency of the core reflects the current working speed of the core. When the core processes complex tasks, the operating frequency is usually higher, and the CPU load is also higher; the load conditions of multiple cores can reflect the CPU load. Therefore, the CPU load can be determined by comprehensively considering the node information such as the utilization rate, operating frequency, and / or load conditions of multiple cores of the CPU.

[0075] A GPU also contains multiple cores (such as stream processors, etc.). The node information such as the utilization rate, workload, and / or temperature of multiple cores of the GPU can be read through the interface provided by the graphics card driver or a specific software tool. The GPU load can be determined based on each piece of node information. For example, if the utilization rate of the GPU video memory is too high, it may cause the rendering speed to slow down or even freeze because there is not enough video memory to store the data required for rendering; the workload of the GPU core can reflect the busy degree of the rendering task; if the temperature of the GPU is too high, it may be because continuous rendering tasks are being performed, etc. The GPU load can be determined by comprehensively considering the node information such as the utilization rate, workload, and / or temperature of multiple cores of the GPU.

[0076] The node information related to memory includes but is not limited to: the used amount, free amount of memory, and / or the usage of virtual memory, etc. During the operation of the system, if the used amount of memory is close to or exceeds the total physical memory, the system will frequently use virtual memory, which will greatly reduce the system performance because the disk read / write speed is much lower than that of memory.

[0077] After obtaining the CPU load, memory load, and GPU load, as described above, the CPU load, memory load, and GPU load can be directly determined as the system load, or the CPU load, memory load, and GPU load can be combined to calculate a system load.

[0078] In this way, by determining the system load based on the hardware core node information, it is possible to accurately evaluate whether the hardware resources meet the business requirements, so as to reasonably plan the hardware resources to accurately determine whether the request to render the target window at the first resolution can be satisfied.

[0079] In one embodiment, scores can be assigned to the CPU load, memory load, GPU load, etc. The higher the score, the higher the load, so as to uniformly quantify various loads through the scores.

[0080] In step S120, when the system load meets the first rendering condition, identify the target scene corresponding to the target window.

[0081] The system load meeting the first rendering condition indicates that the target window within the application can be rendered at the first resolution on the basis of ensuring smoothness. When the system load is low, smoothness can be guaranteed. Therefore, the system load meeting the first rendering condition can be that the system load is lower than the load threshold.

[0082] On the basis of the above embodiments, as an embodiment, the identifying the target scene corresponding to the target window when the system load meets the first rendering condition may include: obtaining a load threshold; when the system load is lower than the load threshold, identifying the target scene corresponding to the target window.

[0083] The load threshold can be set according to actual requirements.

[0084] In one embodiment, if the system load includes multiple loads such as CPU load, memory load, and GPU load, then the load threshold corresponding to each type of load can be obtained. When each type of load is lower than the load threshold corresponding to it, it is determined that the system load meets the first rendering condition, and the target scene corresponding to the target window can be identified.

[0085] For example, the system load includes three loads: CPU load, memory load, and GPU load, and the three loads are 50%, 60%, and 70% in sequence; the load threshold corresponding to the CPU load is 55%, the load threshold corresponding to the memory load is 65%, and the load threshold corresponding to the GPU load is 67%. Then, because the GPU load (70%) is not lower than the corresponding load threshold (67%), it is determined that the system load does not meet the first rendering condition.

[0086] In another embodiment, when the system load is a load calculated by integrating the CPU load, memory load, and GPU load, etc., the load threshold is the threshold corresponding to the system load. When the system load is lower than this load threshold, it is determined that the system load meets the first rendering condition, and the target scene corresponding to the target window can be identified.

[0087] For example, the CPU load is 50%, the memory load is 60%, and the GPU load is 70%. The average value of the CPU load, memory load, and GPU load is determined as the system load, that is, the system load is 60%. Among them, the load threshold is 67%. Because the system load (60%) is lower than the load threshold (67%), it is determined that the system load meets the first rendering condition.

[0088] In this way, according to whether the system load is lower than the load threshold, it can be determined whether the system load meets the first rendering condition, so as to realize rendering the target window in the application at the first resolution on the basis of ensuring fluency.

[0089] When the system load meets the first rendering condition, the target scene corresponding to the target window can be recognized. Optionally, the target scene corresponding to the target window can be determined through the metadata of the target window, such as the window title, etc.; the target scene corresponding to the target window can be determined through the operations performed by the user in the target window; the scenes corresponding to each window of the application can also be preset, so as to determine the target scene corresponding to the target window.

[0090] Scenes can be mainly divided into two categories, including video scenes and UI scenes. The video scene contains more video pictures than UI pictures. The video scene tends to be rendered at 2K resolution to reduce resource occupancy and give priority to ensuring the fluency of video pictures. The video scene can include video playback scenes, video call scenes, etc.

[0091] The UI scene contains more UI pictures than video pictures. At this time, most of the pictures presented on the screen are UI pictures rendered in real time. Therefore, it tends to use 4K resolution to render the UI to provide users with a clearer graphic and text browsing experience. The UI scene can include desktop scenes, news resource browsing scenes, document editing scenes, etc.

[0092] In step S130, when the target scene meets the second rendering condition, the target window is rendered at the first resolution.

[0093] Determine whether the target scene meets the second rendering condition. When the target scene meets the second rendering condition, the target window is rendered at the first resolution.

[0094] On the basis of the above technical solution, as an embodiment, the step of "when the target scene meets the second rendering condition, the target window is rendered at the first resolution" may include: obtaining the first scene category rendered at the first resolution; obtaining the scene category of the target scene; when the scene category of the target scene belongs to the first scene category, the target window is rendered at the first resolution.

[0095] The first scene category is the scene category that tends to be rendered at the first resolution, and can be the UI scene category. The scenes included in the UI scene category are UI scenes. The scenes included in the first scene category can be determined in advance.

[0096] When the target scene belongs to the scenes included in the first scene category, it is determined that the target scene belongs to the first scene category. If the target scene belongs to the first scene and meets the second rendering condition, the target window can be rendered at the first resolution.

[0097] By adopting the technical solution of the embodiment of the present application, when the system load meets the first rendering condition, the smoothness can be guaranteed. When the target scene meets the second rendering condition, it can be ensured that the target scene is a scene that needs to be rendered at the first resolution, so as to avoid resource waste. In this way, when the two conditions are met, rendering the target window at the first resolution can ensure smoothness and clarity, and avoid waste.

[0098] In another embodiment, that the target scene meets the second rendering condition may be that the resources required by the target scene are less than the resource threshold. The average value of the resources required for each scene can be determined in advance through big data. The resources required by the target scene can be the average value of the resources required by the target scene determined through big data. The resource threshold can be set according to actual needs. When the resources required by the target scene are higher than the resource threshold, it may cause system jamming. Therefore, it can be determined whether the target scene meets the second rendering condition by whether the resources required by the target scene are less than the resource threshold.

[0099] By adopting the technical solution of the embodiment of the present application, in response to an application request, rendering the target window in the application at the first resolution can render the target window at the first resolution when the system load meets the first rendering condition and the target scene meets the second rendering condition. In this way, the rendering of the target window is carried out in response to the application request, which is relatively flexible; only the target window can be rendered at the first resolution, which is relatively fine. Therefore, flexible and fine rendering of the window of the application at the first resolution is achieved.

[0100] On the basis of the above technical solution, as an embodiment, the method may further include: when the system load is not lower than the load threshold, rendering the target window at the second resolution.

[0101] The second resolution can be any resolution different from the first resolution. Optionally, the second resolution can be the default resolution in the terminal, and the second resolution can be lower than the first resolution. For example, the first resolution can be 2K resolution.

[0102] When the system load does not meet the first rendering condition, it is not necessary to identify the target scene corresponding to the target window anymore, nor to determine whether the target scene meets the second rendering condition, and the target window can be directly rendered at the second resolution.

[0103] In one embodiment, if the system load includes multiple loads such as CPU load, memory load, and GPU load, the load threshold corresponding to each type of load can be obtained. When any one of the loads is not lower than the load threshold corresponding to that load, it is determined that the system load does not meet the first rendering condition, and the target window is rendered at the second resolution.

[0104] For example, the system load includes three loads: CPU load, memory load, and GPU load, and the three loads are 50%, 60%, and 70% in sequence; the load threshold corresponding to the CPU load is 55%, the load threshold corresponding to the memory load is 65%, and the load threshold corresponding to the GPU load is 67%. Since the GPU load (70%) is not lower than the corresponding load threshold (67%), it is determined that the system load is not lower than the load threshold, and the target window can be directly rendered at the second resolution.

[0105] In another embodiment, when the system load is a load calculated by comprehensively considering the CPU load, memory load, and GPU load, etc., the load threshold is the threshold corresponding to the system load. When the system load is not lower than this load threshold, it is determined that the system load does not meet the first rendering condition, and the target window can be directly rendered at the second resolution.

[0106] For example, the CPU load is 50%, the memory load is 60%, and the GPU load is 70%. The average value of the CPU load, memory load, and GPU load is determined as the system load, that is, the system load is 60%. The load threshold is 57%. Since the system load (60%) is not lower than the load threshold (57%), the target window can be directly rendered at the second resolution.

[0107] By adopting the technical solution of the embodiment of the present application, when the system load is not lower than the load threshold, it is not necessary to identify the target scene corresponding to the target window, nor to determine whether the target scene meets the second rendering condition, thereby saving computing resources.

[0108] Based on the above technical solution, as an embodiment, the method may further include: obtaining the second scene category rendered at the second resolution; when the scene category of the target scene belongs to the second scene category, rendering the target window at the second resolution.

[0109] The second scene category is a scene category that tends to be rendered at the second resolution, and can be a video scene category. The scenes included in the video scene category are video scenes. The scenes included in the second scene category can be determined in advance.

[0110] When the target scenario belongs to the scenarios included in the second scenario category, it is determined that the target scenario belongs to the second scenario category. If the second rendering condition is not met when the target scenario belongs to the second scenario, the target window can be rendered at the second resolution.

[0111] Adopting the technical solution of the embodiment of the present application, when the target scenario belongs to the second scenario category that tends to be rendered at the second resolution, it is possible to directly render the target window at the second resolution without rendering the target window at the first resolution, so as to avoid wasting resources.

[0112] On the basis of the above technical solution, as an embodiment, the rendering of the target window at the first resolution may include: obtaining the configuration parameters of the target window; magnifying the target window by modifying the scaling factor in the configuration parameters of the target window; modifying the dots per inch in the configuration parameters of the target window; and rendering the target window at the first resolution according to the modified dots per inch.

[0113] When the system default rendering resolution is half of the first resolution, in order to render the target window at the first resolution, it is necessary to double the size of the target window and double the dots per inch (DPI) of the target window. Among them, the system default rendering resolution being half of the first resolution may mean that the system default rendering resolution is 2K and the first resolution is 4K. Dots per inch is a measurement unit indicating the number of dots that can be displayed per inch length. These dots can be pixels or other forms of display elements, and dots per inch is an important parameter for measuring display quality.

[0114] In the related art, the size of the target window is doubled and the dots per inch of the target window is doubled by running the application in compatibility mode through Compatibility Info. However, one Compatibility Info corresponds to one application, and window-level control cannot be achieved.

[0115] The window structure of the Android system is a tree structure, and each window has corresponding configuration parameters. Therefore, the size of the target window can be doubled and the dots per inch of the target window can be doubled by directly modifying the configuration parameters on the system side.

[0116] In the Android system, the size of the target window can be doubled and the dots per inch (DPI) of the target window can be doubled by modifying the configuration parameters of the target window. Specifically, the target window can be enlarged to twice its original size by modifying the scaling coefficient in the configuration parameters of the target window to 2. The DPI in the configuration parameters can be modified to twice its original value to double the dots per inch of the target window.

[0117] Render the enlarged target window at the first resolution according to the modified dots per inch.

[0118] By adopting the technical solution of the embodiment of the present application, window-level control can be achieved through the configuration parameters corresponding to the target window. By modifying the configuration parameters corresponding to the target window, rendering of the enlarged target window at the first resolution can be achieved according to the modified configuration parameters.

[0119] On the basis of the above technical solution, as an embodiment, a resolution adjustment method can be implemented by a resolution adjustment system, where the resolution adjustment system is a system in a terminal. As Figure 2 shown, the resolution adjustment system can include a regulation decision module, a scene recognition module, a load monitoring module, and a rendering resolution switching module.

[0120] The load monitoring module can read information of multiple hardware kernel nodes and determine the system load according to the information of the multiple hardware kernel nodes. The scene recognition module can recognize the scene corresponding to the target window.

[0121] The regulation decision module can provide an interface to each application, and the application can send a request to the regulation decision module to render the window at the first resolution according to the interface. The regulation decision module can obtain the scene information provided by the scene recognition module and the load information provided by the load monitoring module, and determine a rendering strategy according to the application request, the scene information, and the load information. Among them, the application can revoke the request at any time and resume rendering the window at the default resolution.

[0122] In the related art, an XML configuration file is used to configure which applications use 4K resolution for rendering. Once the configuration needs to be updated, for example, when adding an application to render at 4K resolution, an upgrade needs to be performed based on the Over-The-Air (OTA) technology, and it will take effect after the entire machine system is upgraded. In the embodiment of the present application, whether to use 4K resolution for rendering only requires an application request, rather than a fixed configuration file, so it has the advantage of being more flexible.

[0123] The rendering resolution switching module can render the window of the application according to the rendering strategy determined by the regulation decision module.

[0124] To facilitate better implementation of the resolution regulation method of the present application, the present application also provides a resolution regulation device based on the above resolution regulation method. The meanings of the nouns are the same as those in the above resolution regulation method, and the specific implementation details can be referred to the descriptions in the method embodiments.

[0125] Please refer to Figure 3 , Figure 3 FIG. is a schematic structural diagram of the resolution regulation device provided by an embodiment of the present application. The resolution regulation device is applied to a terminal and includes:

[0126] An acquisition module 301, configured to acquire the system load in response to an application request to render a target window in the application at a first resolution;

[0127] An identification module 302, configured to identify a target scene corresponding to the target window when the system load meets a first rendering condition;

[0128] A rendering module 303, configured to render the target window at the first resolution when the target scene meets a second rendering condition.

[0129] In one embodiment, the identification module 302 includes:

[0130] An acquisition unit, configured to acquire a load threshold;

[0131] An identification unit, configured to identify a target scene corresponding to the target window when the system load is lower than the load threshold.

[0132] In one embodiment, the device further includes:

[0133] A first rendering module, configured to render the target window at a second resolution when the system load is not lower than the load threshold.

[0134] In one embodiment, the rendering module 303 includes:

[0135] A first category acquisition unit, configured to acquire a first scene category rendered at the first resolution;

[0136] A second category acquisition unit, configured to acquire the scene category of the target scene;

[0137] A target rendering unit, configured to render the target window at the first resolution when the scene category of the target scene belongs to the first scene category.

[0138] In one embodiment, the device further includes:

[0139] A category acquisition module, configured to acquire a second scene category rendered at a second resolution;

[0140] A second rendering module, configured to render the target window at the second resolution when the scene category of the target scene belongs to the second scene category.

[0141] In one embodiment, the acquisition module 301 includes:

[0142] A node information reading module, configured to read information of multiple hardware kernel nodes;

[0143] A load determination module, configured to determine the system load according to the information of the multiple hardware kernel nodes.

[0144] In one embodiment, the rendering module 303 includes:

[0145] A parameter acquisition unit, configured to acquire configuration parameters of the target window;

[0146] An amplification unit, configured to amplify the target window by modifying a scaling factor in the configuration parameters of the target window;

[0147] A modification unit, configured to modify the dots per inch in the configuration parameters of the target window;

[0148] A rendering unit, configured to render the target window at the first resolution according to the modified dots per inch.

[0149] Adopting the technical solution of the embodiment of the present application, rendering the target window in the application at the first resolution in response to an application request can render the target window at the first resolution when the system load meets the first rendering condition and the target scene meets the second rendering condition. In this way, rendering the target window is performed in response to the application request, which is relatively flexible; only the target window can be rendered at the first resolution, which is relatively fine. Therefore, flexible and fine rendering of the application window at the first resolution is achieved.

[0150] For the specific definition of the resolution adjustment device, reference can be made to the definition of the resolution adjustment method in the foregoing text, which will not be elaborated herein. Each module in the above resolution adjustment device can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0151] In addition, the present application also provides an electronic device, such as Figure 4 shown, which shows a schematic structural diagram of the electronic device involved in the present application. Specifically:

[0152] The electronic device may include components such as a processor 401 with one or more processing cores and a memory 402 with one or more computer-readable storage media. Those skilled in the art can understand that Figure 4 the structure of the electronic device shown in

[0153] does not limit the electronic device, and it may include more or fewer components than shown, or combine certain components, or have different component arrangements. Among them:

[0154] The processor 401 is the control center of the electronic device, connecting various parts of the entire electronic device through various interfaces and lines. By running or executing software programs and / or modules stored in the memory 402, and by calling the data stored in the memory 402, it executes various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor. Among them, the application processor mainly processes the operating system, user interface, application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor may not be integrated into the processor 401 either.

[0155] In one embodiment, the electronic device further includes a power supply 403 for supplying power to each component. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, so as to implement functions such as management of charging, discharging, and power consumption management through the power management system. The power supply 403 may also include any components such as one or more DC or AC power supplies, a recharge system, a power device debugging circuit, a power converter or inverter, and a power status indicator.

[0156] In one embodiment, the electronic device may further include an input unit 404, which may be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.

[0157] Although not shown, the electronic device may further include a display unit and the like, which will not be elaborated here. Specifically, in this embodiment, the processor 401 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 will run the application programs stored in the memory 402, so as to implement the steps in any of the resolution adjustment methods provided by the embodiments of the present application.

[0158] Those skilled in the art can understand that Figure 4 the structure shown in

[0159] In one embodiment, an electronic device is provided, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, the method described in any embodiment of the present application is implemented.

[0160] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method described in any embodiment of the present application is implemented.

[0161] In some embodiments, a computer program product is further proposed, including a computer program or instruction. When the computer program or instruction is executed by a processor, the method described in any embodiment of the present application is implemented.

[0162] For the specific implementation of the above operations, reference may be made to the previous embodiments, which will not be elaborated here.

[0163] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling related hardware through instructions. The instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0164] Therefore, the present application provides a computer-readable storage medium, on which a computer program is stored. The computer program can be loaded by a processor to execute the steps in any of the resolution adjustment methods provided by the present application.

[0165] For the specific implementation of each of the above operations, reference may be made to the previous embodiments, which will not be elaborated herein.

[0166] Among them, the computer-readable storage medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.

[0167] Since the instructions stored in the computer-readable storage medium can execute the steps in any of the resolution adjustment methods provided in this application, the beneficial effects achievable by any of the resolution adjustment methods provided in this application can be realized. For details, refer to the previous embodiments, which will not be elaborated herein.

[0168] Finally, it should also be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or terminal device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or terminal device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or terminal device comprising the element.

[0169] The above has introduced in detail a resolution adjustment method, device, electronic device and computer-readable storage medium provided in this application. Specific examples are used in this article to elaborate on the principle and implementation manner of the present invention. The description of the above embodiments is only used to help understand the method and its core idea of the present invention; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A resolution control method, characterized in that: include: In response to an application request, rendering a target window in the application at a first resolution to obtain a system load; When the system load satisfies a first rendering condition, identifying a target scene corresponding to the target window; as well as When the target scene satisfies a second rendering condition, the target window is rendered at the first resolution.

2. The method according to claim 1, characterized in that: When the system load satisfies the first rendering condition, identifying the target scene corresponding to the target window includes: Get the load threshold; When the system load is lower than the load threshold, a target scene corresponding to the target window is identified.

3. The method according to claim 2, characterized in that The method further comprises: When the system load is not lower than the load threshold, the target window is rendered at a second resolution.

4. The method according to claim 1, characterized in that: When the target scene satisfies a second rendering condition, rendering the target window at the first resolution includes: Get a first scene category rendered at a first resolution; Obtaining the scene category of the target scene; When the scene category of the target scene belongs to the first scene category, the target window is rendered at the first resolution.

5. The method according to claim 1, characterized in that The method further comprises: Get a second scene category rendered at a second resolution; When the scene category of the target scene belongs to the second scene category, the target window is rendered at the second resolution.

6. The method according to claim 1, characterized in that The obtaining of the system load comprises: Read multiple hardware kernel node information; The system load is determined according to the multiple hardware core node information.

7. The method according to claim 1, characterized in that The rendering of the target window at the first resolution includes: Obtaining configuration parameters of the target window; Enlarging the target window by modifying the zoom factor in the configuration parameters of the target window; Modify the dots per inch in the configuration parameters of the target window; The target window is rendered at the first resolution according to the modified dots per inch.

8. A resolution control device, characterized in that: include: an acquisition module, configured to render a target window in the application at a first resolution in response to an application request, and acquire a system load; an identification module, configured to identify a target scene corresponding to the target window when the system load satisfies a first rendering condition; as well as A rendering module is used to render the target window at the first resolution when the target scene meets a second rendering condition.

9. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in the resolution control method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the resolution control method according to any one of claims 1 to 7 are implemented.