Rendering method and related device

By adjusting the rendering quality according to the coordinates and/or area of ​​the coverage area when the first window is covered by the second window, the power consumption waste problem caused by high performance and high quality of all task content on the device is solved, and the effect of saving equipment power consumption is achieved.

CN120580332APending Publication Date: 2025-09-02MEDIATEK SINGAPORE PTE LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410238565.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-01
Publication Date
2025-09-02

AI Technical Summary

Technical Problem

All tasks presented on the device are high performance and high quality, resulting in waste of power.

Method used

When the first window is covered by the second window, whether to lower the rendering quality of the first window is adjusted based on the coordinates and/or area of ​​the coverage area, and render with the lowered rendering quality.

Benefits of technology

By adjusting the rendering quality of the first window, the device power consumption is saved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120580332A_ABST
    Figure CN120580332A_ABST
Patent Text Reader

Abstract

The invention discloses a rendering method and a related device. The rendering method comprises the following steps: when at least part of the area of a first window is covered by a second window, determining whether to lower the rendering quality of the first window based on the coordinate and / or area of the area, covered by the second window, of the first window; and when it is confirmed that the rendering quality of the first window is lowered, rendering the first window with the lowered rendering quality. The power consumption of the equipment can be saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of display technology, and in particular to a rendering method and related devices. Background Art

[0002] In some scenarios, users usually only pay attention to the content performance or quality of a single task (including windows, screens) on the device. In related technologies, the content of all tasks (including windows, screens) presented on the device must meet high performance and high quality, which results in waste of device power consumption. Summary of the Invention

[0003] The present application provides a rendering method and related apparatus, which can save power consumption of a device.

[0004] To achieve the above objectives, the present application provides a rendering method, which includes:

[0005] When at least a portion of the first window is covered by the second window, determining whether to lower the rendering quality of the first window based on coordinates and / or area of ​​the area of ​​the first window covered by the second window;

[0006] When it is determined to lower the rendering quality of the first window, the first window is rendered at the lowered rendering quality.

[0007] To achieve the above objectives, the present application also provides an electronic device, which includes a processor and a memory connected to each other, the memory is used to store instructions / program data, and the processor is used to execute the instructions / program data to implement the steps of the above method.

[0008] To achieve the above objectives, the present application also provides a computer-readable storage medium for storing instructions / program data, which can be executed to implement the above method.

[0009] In the present application, when at least a portion of the first window is covered by the second window, the application determines whether to lower the rendering quality of the first window based on the coordinates and / or area of ​​the area of ​​the first window covered by the second window. When it is confirmed that the rendering quality of the first window is lowered, the first window is rendered with the lowered rendering quality. In this way, when the first window is covered by the second window, the rendering quality of the first window can be reduced based on the covering situation, thereby automatically adjusting the rendering quality of the first window, thereby saving device power consumption. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0011] Figure 1 This is a flowchart of an implementation method of the present invention;

[0012] Figure 2 This is a schematic structural diagram of an embodiment of the electronic device of the present application;

[0013] Figure 3 It is a structural diagram of an embodiment of a computer-readable storage medium of the present application. DETAILED DESCRIPTION

[0014] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without making creative work are within the scope of protection of this application. In addition, unless otherwise specified (for example, "or in addition" or "or in an alternative"), the term "or" as used herein refers to a non-exclusive "or" (that is, "and / or"). Furthermore, the various embodiments described herein are not necessarily mutually exclusive, because some embodiments can be combined with one or more other embodiments to form new embodiments.

[0015] In one example, in scenarios such as desktop dynamic wallpaper / game / camera special effects preview / video special effects playback, the drop-down menu bar becomes the only screen that can be seen at this time. The dynamic wallpaper / game / camera / video high performance or special effects content is also rendered at high quality, which wastes power consumption.

[0016] In another example, in a single-screen game + video playback, the video playback window is larger than a certain proportion of the screen area (for example, 1 / 2), and the video playback content is the user's focus screen. Maintaining high frame rates and high-quality special effects in the game will waste power consumption.

[0017] Based on this, the present application proposes a rendering method, which, when at least a portion of an area of ​​the first window is covered by a second window, determines whether to lower the rendering quality of the first window based on the coordinates and / or area of ​​the area covered by the second window. When it is confirmed that the rendering quality of the first window is lowered, the first window is rendered with the lowered rendering quality. In this way, when the first window is covered by the second window, the rendering quality of the first window can be reduced based on the coverage situation, thereby saving device power consumption.

[0018] It can be understood that in the above example, the first window is the window that is covered by the dynamic wallpaper / game / camera special effects preview / video special effects playback, etc., and the second window is the window where the above drop-down menu and video, pop-up window or image are presented on the upper layer.

[0019] like Figure 1 As shown, the rendering method of the present application includes the following steps. It should be noted that the following step numbers are only used to simplify the description and are not intended to limit the execution order of the steps. The steps of this embodiment can be arbitrarily changed in execution order without violating the technical concept of the present application.

[0020] S101: When at least a portion of a first window is covered by a second window, determining whether to lower the rendering quality of the first window based on coordinates and / or area of ​​the region of the first window covered by the second window.

[0021] When at least a portion of the first window is covered by the second window, it can be determined whether the rendering quality of the first window needs to be lowered based on the coordinates and / or area of ​​the area covered by the second window. When the rendering quality of the first window needs to be lowered, the first window is rendered at the lowered rendering quality; otherwise, the first window is rendered at the current rendering quality.

[0022] In one conceivable embodiment, whether to lower the rendering quality of the first window can be determined based on the coordinates of the area covered by the second window. Optionally, when the area covered by the second window is determined to be an important area based on the coordinates of the area covered by the first window, the decision to lower the rendering quality of the first window is made; when the area covered by the second window is determined to be a non-important area based on the coordinates of the area covered by the second window, the decision not to lower the rendering quality of the first window is made. For example, when the area covered by the second window is determined to be located at the edge of the first window based on the coordinates of the area covered by the second window, the decision to lower the rendering quality of the first window is made; when the area covered by the second window is determined to be located at the center of the first window based on the coordinates of the area covered by the second window, the decision to lower the rendering quality of the first window is made. For example, when the area covered by the second window is determined to be located at the edge of the first window based on the coordinates of the area covered by the second window, the decision to lower the rendering quality of the first window is made; when the area covered by the second window is determined to be located at the center of the first window based on the coordinates of the area covered by the second window, the decision to lower the rendering quality of the first window is made. In another example, when the area covered by the second window is determined to be the title bar, menu bar, toolbar, status bar, and / or scroll bar of the first window based on the coordinates of the area covered, the decision to lower the rendering quality of the first window is made; when the area covered by the second window is determined to be the working area of ​​the first window based on the coordinates of the area covered, the decision to lower the rendering quality of the first window is made. The working area of ​​the first window can be set according to actual circumstances and is not limited here. For example, if the first window is a video playback window, the working area of ​​the first window can be the video playback area in the first window. For another example, if the first window is a chat window, the working area of ​​the first window can be the input area and at least a portion of the chat history display area adjacent to the input area.

[0023] In another achievable manner, whether the rendering quality of the first window needs to be lowered may be determined based on the area of ​​the first window covered by the second window.

[0024] Optionally, when the area of ​​the covered area is greater than a first threshold, it may be determined to reduce the rendering quality of the first window; and when the area of ​​the covered area is less than the first threshold, it may be determined not to reduce the rendering quality of the first window. It is understood that when the area of ​​the covered area is equal to the first threshold, the rendering quality of the first window may be reduced or not reduced, and this is not limited here.

[0025] In other embodiments, whether to lower the rendering quality of the first window can also be determined based on the ratio of the area of ​​the coverage area to the total area of ​​the first window. Specifically, when the ratio of the area of ​​the coverage area to the total area of ​​the first window is greater than the second threshold, it is determined to lower the rendering quality of the first window; when the ratio of the area of ​​the coverage area to the total area of ​​the first window is less than the second threshold, it is determined not to lower the rendering quality of the first window. It is understandable that when the ratio of the area of ​​the coverage area to the total area of ​​the first window is equal to the second threshold, the rendering quality of the first window can be lowered or not, and there is no limitation here.

[0026] In yet another implementable manner, whether to lower the rendering quality of the first window may be determined based on the coordinates and area of ​​the region where the first window is covered by the second window.

[0027] In one embodiment, when the coverage area is confirmed to be an important area of ​​the first window based on the coordinates of the coverage area and the area of ​​the coverage area is relatively large, it is determined to lower the rendering quality of the first window; when the coverage area is confirmed to be an unimportant area of ​​the first window based on the coordinates of the coverage area, or the area of ​​the coverage area is relatively small, it is determined not to lower the rendering quality of the first window. It can be understood that the coverage area being relatively large may include: the area of ​​the coverage area being greater than a first threshold, and the ratio of the area of ​​the coverage area to the total area of ​​the first window being greater than a second threshold. Correspondingly, the coverage area being relatively small may include: the area of ​​the coverage area being less than the first threshold, and the ratio of the area of ​​the coverage area to the total area of ​​the first window being less than a second threshold.

[0028] In another embodiment, when it is confirmed based on the coordinates of the coverage area that the coverage area is an important area of ​​the first window, or the area of ​​the coverage area is large, it is confirmed to lower the rendering quality of the first window; when it is confirmed based on the coordinates of the coverage area that the coverage area is a non-important area of ​​the first window, and the area of ​​the coverage area is small, it is confirmed not to lower the rendering quality of the first window.

[0029] In another embodiment, when it is confirmed based on the coordinates and area of ​​the covered area that the area of ​​the important area covered by the second window of the first window is greater than a third threshold, or when it is confirmed that the ratio of the area of ​​the important area covered by the second window to the total area of ​​the important area of ​​the first window is greater than a fourth threshold, it is confirmed to lower the rendering quality of the first window; otherwise, the rendering quality of the first window is not lowered.

[0030] It is understandable that the first window may be covered by one second window or by multiple second windows, and there is no limitation here. In the case where the first window is covered by multiple second windows, it is possible to confirm whether to lower the rendering quality of the first window based on the coordinates and / or area of ​​the first window covered by the multiple second windows. Exemplarily, it is possible to confirm whether at least one second window covers an important area of ​​the first window based on the coordinates of the first window covered by the multiple second windows. When at least one second window covers an important area of ​​the first window, it is possible to confirm to lower the rendering quality of the first window, otherwise the rendering quality of the first window will not be lowered. In another example, in the case where the first window is covered by multiple second windows, it is possible to confirm whether to lower the rendering quality of the first window based on the total area of ​​the first window covered by the multiple second windows.

[0031] The first threshold, second threshold, third threshold, and fourth threshold can be set according to actual conditions and are not limited here. The first threshold, second threshold, third threshold, and fourth threshold corresponding to different windows can be different or the same, and are not limited here. Furthermore, the first threshold, second threshold, third threshold, and fourth threshold corresponding to different windows of each application can be different or the same.

[0032] In yet another implementation, when at least a portion of the first window is covered by a second window, whether to lower the rendering quality of the first window can be determined based on the window behavior of the first window and / or the second window, where the window behavior can include a call prompt, a play prompt, or a click operation.

[0033] In one embodiment, when at least a portion of the first window is covered by a second window, whether to lower the rendering quality of the first window may be determined based on the window behavior of the second window.

[0034] In a specific example, if the second window is confirmed to have the aforementioned window behavior, it can be considered that the user's focus is on the second window, and the rendering quality of the first window can be lowered. If the second window is confirmed to not have the aforementioned window behavior, the rendering quality of the first window can be maintained. For example, if the second window has actions such as voice calls, video playback, or clicks on the front window (for example, the click frequency is greater than 10 / min), it can be determined that the user is focused on the second window. In this case, the rendering quality of the first window can be lowered.

[0035] In another specific example, when it is confirmed that the second window has the above-mentioned window behavior, it can be considered that the user's focus is on the second window. To improve the display effect of the device, it can be further determined whether to lower the rendering quality of the first window based on the coordinates and / or area of ​​the area of ​​the first window covered by the second window. The specific implementation process of determining whether to lower the rendering quality of the first window based on the coordinates and / or area of ​​the area of ​​the first window covered by the second window can refer to the description of the above-mentioned implementation method and will not be repeated here. In this embodiment, when it is confirmed that the second window does not have the above-mentioned window behavior, it can be directly determined not to lower the rendering quality of the first window. Alternatively, when it is confirmed that the second window does not have the above-mentioned window behavior, it is impossible to confirm whether the user's focus falls on the second window. At this time, it can also be confirmed whether to lower the rendering quality of the first window based on the coordinates and / or area of ​​the area of ​​the first window covered by the second window; further, in this case, the judgment standard of the area when the second window does not have the above-mentioned window behavior (that is, the first threshold, the second threshold, the third threshold and the fourth threshold) can be greater than the judgment standard of the area when the second window has the above-mentioned window behavior, that is, when it is impossible to confirm whether the user's focus falls on the second window, the area of ​​the first window covered by the second window exceeds a larger threshold to confirm lowering the rendering quality of the first window, and when it is confirmed based on the window behavior that the user's focus falls on the second window, the area of ​​the first window covered by the second window exceeds a smaller threshold to confirm lowering the rendering quality of the first window.

[0036] In another specific example, when confirming that the second window does not have the above-mentioned window behavior, it may not be possible to confirm whether the user's focus is on the second window. At this time, it can also be confirmed whether to lower the rendering quality of the first window based on the coordinates and / or area of ​​the area covered by the second window of the first window, wherein the specific implementation process of confirming whether to lower the rendering quality of the first window based on the coordinates and / or area of ​​the area covered by the second window of the first window can refer to the description of the above-mentioned implementation method, which will not be repeated here. In this embodiment, when confirming that the second window has the above-mentioned window behavior, it can be directly determined to lower the rendering quality of the first window. Alternatively, when confirming that the second window has the above-mentioned window behavior, it can also be confirmed whether to lower the rendering quality of the first window based on the coordinates and / or area of ​​the area covered by the second window of the first window.

[0037] In another embodiment, when at least a portion of the first window is covered by the second window, it may be determined whether to lower the rendering quality of the first window based on the window behavior of the first window.

[0038] In a specific example, when it is confirmed that the first window has the above-mentioned window behavior, it can be considered that the user's attention is on the first window, and the rendering quality of the first window can be kept unchanged at this time; when it is confirmed that the first window does not have the above-mentioned window behavior, it can be confirmed whether to lower the rendering quality of the first window based on the coverage of the first window by the second window. For example, it can be confirmed whether to lower the rendering quality of the first window based on the coordinates and / or area of ​​the area covered by the second window.

[0039] S102: When it is determined that the rendering quality of the first window is to be lowered, the first window is rendered at the lowered rendering quality.

[0040] When it is determined based on step S101 that the rendering quality of the first window is lowered, the first window may be rendered at the lowered rendering quality.

[0041] Optionally, the rendering quality may include at least one rendering metric and display parameters. The at least one rendering metric may include samples per pixel, number of ray bounces, number of triangles in object modeling, number of vertices, and image noise. Display parameters may include frame rate (FPS) and shading quality. The higher the display parameter, the better the user experience.

[0042] Optionally, in order to facilitate adjustment of the rendering quality, multiple levels may be set for the rendering quality, such as high, medium and low rendering quality levels, and rendering indicators and display parameters corresponding to each level may be set.

[0043] In one embodiment, a relatively high rendering quality level is higher than a relatively low rendering quality level. Thus, in step S102, the rendering quality can be lowered by reducing the current rendering quality level by at least one level, and then the first window is rendered at the rendering quality corresponding to the reduced rendering quality level.

[0044] When it is confirmed to lower the rendering quality of the first window, and there is no special effects rendering in the first window, the current rendering quality level can be lowered by a first number of levels; when there is special effects rendering in the first window, the current rendering quality level can be lowered by a second number of levels. The second number is greater than the first number. And the first number and the second number can be set according to actual conditions, and there is no limitation here. For example, the first number can be 1, and the second number can be 2. In another embodiment, when it is confirmed to lower the rendering quality of the first window, regardless of whether there is special effects rendering in the first window, the current rendering quality level can be lowered by a first number of levels. In yet another embodiment, when it is confirmed to lower the rendering quality of the first window, regardless of whether there is special effects rendering in the first window, the current rendering quality level can be lowered by a first number of levels; and when there is special effects rendering in the first window, the special effects rendering can be further turned off.

[0045] In another embodiment, a relatively high rendering quality level is lower than a relatively low rendering quality level, and in this case, the rendering quality level can also be referred to as an ignored level. Thus, in step S102, the rendering quality can be lowered by increasing the current rendering quality level by at least one level, and then the first window is rendered at the rendering quality corresponding to the increased rendering quality level.

[0046] If it is confirmed that the rendering quality of the first window is to be lowered, the first window may be rendered at the lowered rendering quality.

[0047] Optionally, the entire area of ​​the first window may be rendered with a lowered rendering quality.

[0048] Alternatively, the area of ​​the first window covered by the second window may be rendered at the lowered rendering quality, and the area of ​​the first window not covered by the second window may be rendered at the rendering quality before the lowering. For example, assuming that a relatively high rendering quality is lower than a relatively low rendering quality, when the current rendering quality level of the first window is a low level, since the second window obscures the first window, and the coverage of the first window confirms that the rendering quality of the first window needs to be lowered, the area of ​​the first window covered by the second window may be rendered at a medium rendering quality, and the area of ​​the first window not covered by the second window may be rendered at a low rendering quality.

[0049] Furthermore, in the case where special effects rendering exists in the first window, when it is confirmed that the rendering quality of the first window needs to be lowered, the special effects rendering of the entire area of ​​the first window can be turned off when rendering at least a portion of the area of ​​the first window with the lowered rendering quality, or only the special effects rendering of the area of ​​the first window covered by the second window can be turned off, that is, the special effects rendering of the area of ​​the first window not covered by the second window can be turned off or not.

[0050] In this embodiment, when at least a portion of the first window is covered by the second window, whether to lower the rendering quality of the first window is determined based on the coordinates and / or area of ​​the area of ​​the first window covered by the second window. When it is determined that the rendering quality of the first window is to be lowered, the first window is rendered with the lowered rendering quality. In this way, when the first window is covered by the second window, the rendering quality of the first window can be reduced based on the covering situation, thereby saving device power consumption.

[0051] Optionally, the device may include a main controller. An application program may be run on the device. In the rendering method of the present application, the application program corresponding to the first window and / or the main controller may execute the step of determining whether to lower the rendering quality of the first window based on the coordinates and / or area of ​​the area covered by the second window; and the step of rendering the first window at the lowered rendering quality when it is determined that the rendering quality of the first window is to be lowered.

[0052] The application corresponding to the first window refers to an application that provides display data for the first window.

[0053] In a first specific example, the main controller can confirm the first window and the second window, and execute the step of confirming whether to lower the rendering quality of the first window based on the coordinates and / or area of ​​the area of ​​the first window covered by the second window, that is, the main controller confirms the rendering quality of the first window based on the coordinates and / or area of ​​the area of ​​the first window covered by the second window, and then the main controller informs the application corresponding to the first window of the confirmed rendering quality of the first window, so that the application corresponding to the first window renders the area of ​​the first window covered by the second window or the entire area of ​​the first window based on the confirmed rendering quality of the first window, that is, renders the content to be displayed corresponding to the area of ​​the first window covered by the second window or the entire area of ​​the first window based on the confirmed rendering quality of the first window; then the application corresponding to the first window sends the rendered content to be displayed to the frame buffer, so that the main controller presents the corresponding content in the first window based on the content to be displayed of the first window in the frame buffer.

[0054] In a second specific example, the main controller can confirm the first window and the second window, and execute the step of confirming whether to lower the rendering quality of the first window based on the coordinates and / or area of ​​the area of ​​the first window covered by the second window, that is, the main controller can confirm the rendering quality level of the first window based on the coordinates and / or area of ​​the area of ​​the first window covered by the second window, and then the main controller informs the application corresponding to the first window of the confirmed rendering quality level of the first window, so that the application corresponding to the first window renders the area of ​​the first window covered by the second window or the entire area of ​​the first window based on the rendering quality corresponding to the confirmed rendering quality level of the first window, that is, renders the content to be displayed corresponding to the area of ​​the first window covered by the second window or the entire area of ​​the first window based on the confirmed rendering quality of the first window; then the application corresponding to the first window sends the rendered content to be displayed to the frame buffer, so that the main controller presents the corresponding content in the first window based on the content to be displayed of the first window in the frame buffer.

[0055] In a third specific example, the main controller can confirm the first window and the second window, and execute the step of confirming whether to lower the rendering quality of the first window based on the coordinates and / or area of ​​the area of ​​the first window covered by the second window, that is, the main controller can confirm the rendering quality level of the first window based on the coordinates and / or area of ​​the area of ​​the first window covered by the second window, and then the main controller informs the application corresponding to the first window of the confirmed rendering quality level of the first window, so that the application corresponding to the first window confirms the rendering quality of the first window based on the confirmed rendering quality level of the first window, and then the application corresponding to the first window informs the main controller of the rendering quality of the first window, so that the main controller renders the area of ​​the first window covered by the second window or the entire area of ​​the first window based on the informed rendering quality of the first window, that is, renders the content to be displayed corresponding to the area of ​​the first window covered by the second window or the entire area of ​​the first window based on the confirmed rendering quality of the first window; then the main controller presents the corresponding content in the first window based on the rendered content to be displayed of the first window.

[0056] In a fourth specific example, the main controller may confirm the first window and the second window, and execute the step of confirming whether to lower the rendering quality of the first window based on the coordinates and / or area of ​​the area where the first window is covered by the second window, that is, the main controller may confirm the rendering quality level of the first window based on the coordinates and / or area of ​​the area where the first window is covered by the second window, and then the main controller informs the application corresponding to the first window of the confirmed rendering quality level of the first window, so that the application corresponding to the first window can confirm the rendering quality of the first window based on the confirmed rendering quality level of the first window, and can also allow the application corresponding to the first window to adjust the rendering quality of the first window based on the confirmed rendering quality level of the first window. The area of ​​the first window covered by the second window or the entire area of ​​the first window is rendered with the corresponding rendering quality, and then the application corresponding to the first window sends the rendered content to be displayed to the frame buffer, and the application corresponding to the first window can inform the main controller of at least part of the rendering quality of the first window, so that the main controller can process the content to be displayed of the first window in the frame buffer based on at least part of the rendering quality of the first window that has been informed. For example, the main controller can render the area of ​​the first window covered by the second window or the entire area of ​​the first window based on at least part of the rendering quality of the first window that has been informed; then the main controller presents the corresponding content in the first window based on the rendered content to be displayed of the first window. In this specific example, both the application corresponding to the first window and the main controller can render the content to be displayed of the first window, and can render the content to be displayed of the first window with the rendering quality adjusted according to relevant conditions such as the coordinates and / or area of ​​the covered area.

[0057] In a fifth specific example, the main controller may confirm the first window and the second window, and execute the step of confirming whether to lower the rendering quality of the first window based on the coordinates and / or area of ​​the area where the first window is covered by the second window, that is, the main controller may confirm the rendering quality level of the first window based on the coordinates and / or area of ​​the area where the first window is covered by the second window, and then the main controller informs the application corresponding to the first window of the confirmed rendering quality level of the first window, so that the application corresponding to the first window can confirm the rendering quality of the first window based on the confirmed rendering quality level of the first window, and can also allow the application corresponding to the first window to adjust the rendering quality of the first window covered by the second window based on the rendering quality corresponding to the confirmed rendering quality level of the first window. The area covered by the second window or the entire area of ​​the first window is rendered, and then the application corresponding to the first window sends the rendered content to be displayed to the frame buffer, and the main controller can also confirm the rendering quality of the first window based on the confirmed rendering quality level of the first window. In this way, after the application corresponding to the first window sends the rendered content to be displayed to the frame buffer, the main controller can process the content to be displayed of the first window in the frame buffer based on the rendering quality of the first window confirmed by itself. For example, the main controller can render the area of ​​the first window covered by the second window or the entire area of ​​the first window based on the rendering quality of the first window confirmed by itself; then the main controller presents the corresponding content in the first window based on the rendered content to be displayed of the first window. In this specific example, both the application corresponding to the first window and the main controller can render the content to be displayed of the first window, and can render the content to be displayed of the first window with the rendering quality adjusted according to relevant conditions such as the coordinates and / or area of ​​the covered area. However, unlike the fourth specific example, the relevant quality requirements of the main controller's rendering processing are determined by the main controller itself, that is, the application corresponding to the first window can confirm the relevant quality requirements of its own rendering processing based on the rendering quality level, and the main controller can also confirm the relevant quality requirements of its own rendering processing based on the rendering quality level, so there is no need to execute the rendering quality notification step.

[0058] See also Figure 2 , Figure 2 This is a schematic diagram of the structure of an embodiment of an electronic device of the present application. The electronic device 20 includes a processor 22, which is used to execute instructions to implement the above rendering method. The specific implementation process is described in the above embodiment and will not be repeated here.

[0059] The processor 22 may also be referred to as a CPU (Central Processing Unit). The processor 22 may be an integrated circuit chip having signal processing capabilities. The processor 22 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. A general-purpose processor may be a microprocessor, or the processor 22 may be any conventional processor.

[0060] The electronic device 20 may further include a memory 21 for storing instructions and data required for the processor 22 to operate.

[0061] The processor 22 is configured to execute instructions to implement the method provided by any embodiment of the rendering method of the present application and any non-conflicting combination thereof.

[0062] See also Figure 3 , Figure 3 Schematic diagram of the structure of the computer-readable storage medium in the embodiment of the present application. The computer-readable storage medium 30 of the embodiment of the present application stores instruction / program data 31, which, when executed, implements the method provided by any embodiment of the rendering method of the present application and any non-conflicting combination. Among them, the instruction / program data 31 can form a program file and be stored in the above-mentioned storage medium 30 in the form of a software product, so that a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) executes all or part of the steps of the various embodiments of the present application. The aforementioned storage medium 30 includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or terminal devices such as a computer, a server, a mobile phone, and a tablet.

[0063] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.

[0064] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0065] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.

[0066] The above is only an implementation method of the present application and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the description and drawings of this application, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A rendering method, characterized in that: The method comprises: When at least a portion of the first window is covered by the second window, determining whether to lower the rendering quality of the first window based on coordinates and / or area of ​​the area of ​​the first window covered by the second window; When it is determined to lower the rendering quality of the first window, the first window is rendered at the lowered rendering quality.

2. The rendering method according to claim 1, wherein: The determining whether to lower the rendering quality of the first window based on the coordinates and / or area of ​​the area where the first window is covered by the second window includes: determining whether the coverage area is an important area of ​​the first window based on the coordinates of the coverage area; When the covered area is an important area of ​​the first window, it is determined to lower the rendering quality of the first window.

3. The rendering method according to claim 1, wherein: The determining whether to lower the rendering quality of the first window based on the coordinates and / or area of ​​the area where the first window is covered by the second window includes: Determine whether the area of ​​the coverage area is greater than a first threshold based on the coordinates of the coverage area; when the area of ​​the coverage area is greater than the first threshold, determine to lower the rendering quality of the first window; or, Determine based on the coordinates of the coverage area whether a ratio of an area of ​​the coverage area to a total area of ​​the first window is greater than a second threshold; when the ratio is greater than the second threshold, determine to lower the rendering quality of the first window.

4. The rendering method according to claim 1, wherein: Rendering the first window with the lowered rendering quality includes: The covered area is rendered with the lowered rendering quality, and the area of ​​the first window not covered by the second window is rendered with the original rendering quality.

5. The rendering method according to claim 1, wherein: Rendering the first window with the lowered rendering quality includes: In a case where special effects rendering is enabled in the first window, the special effects rendering of the overlay area is disabled based on the coordinates of the overlay area.

6. The rendering method according to claim 1, wherein: The rendering method is applied to a device, the device including a main controller, and an application running on the device. When at least a portion of a first window is covered by a second window, determining whether to lower the rendering quality of the first window based on the coordinates and / or area of ​​the area of ​​the first window covered by the second window includes: The main controller or the application corresponding to the first window determines whether to lower the rendering quality of the first window based on the coordinates and / or area of ​​the area of ​​the first window covered by the second window; When it is determined that the rendering quality of the first window is to be lowered, rendering the first window at the lowered rendering quality includes: When it is confirmed to lower the rendering quality of the first window, the main controller and / or the application corresponding to the first window renders the first window at the lowered rendering quality.

7. The rendering method according to claim 6, characterized in that: The rendering quality of the first window is divided into multiple levels. When at least a portion of the first window is covered by the second window, determining whether to lower the rendering quality of the first window based on coordinates and / or area of ​​the area of ​​the first window covered by the second window includes: When at least a portion of the first window is covered by the second window, the main controller determines whether to lower the rendering quality of the first window based on the coordinates and / or area of ​​the area of ​​the first window covered by the second window; When it is determined that the rendering quality of the first window is to be lowered, rendering the first window at the lowered rendering quality includes: When it is confirmed that the rendering quality of the first window is to be lowered, the main controller adjusts the current rendering quality level of the first window, and the rendering quality corresponding to the adjusted level is lower than the rendering quality corresponding to the level before the adjustment; The main controller notifies the application corresponding to the first window of the adjusted level; The application corresponding to the first window determines the rendering quality corresponding to the adjusted level and feeds back the result to the main controller; The main controller renders the content to be displayed in the first window using the rendering quality corresponding to the adjusted level.

8. The rendering method according to claim 1, wherein: The rendering quality of the first window is divided into multiple levels; When it is determined that the rendering quality of the first window is to be lowered, rendering the first window at the lowered rendering quality includes: The rendering quality corresponding to the first level is higher than the rendering quality corresponding to the second level, wherein the second level is higher than the first level. When it is confirmed to lower the rendering quality of the first window, the current rendering quality level of the first window is increased by at least one level, and the first window is rendered with the rendering quality corresponding to the increased level.

9. The rendering method according to claim 1, wherein: When at least a portion of the first window is covered by a second window, whether to lower the rendering quality of the first window is determined based on the window behavior of the second window, wherein the window behavior includes a call prompt, a play prompt, or a click operation.

10. An electronic device, characterized in that: The electronic device comprises a processor and a memory connected to each other, the memory is used to store instructions / program data, and the processor is used to execute the instructions / program data to implement the steps of the method according to any one of claims 1 to 9.

11. A computer-readable storage medium having instructions / program data stored thereon, characterized in that: When the instructions / program data are executed, the steps of the method according to any one of claims 1 to 9 are implemented.