Rendering methods, devices, electronic equipment, and computer storage media
By obtaining hardware computing resource information of IoT devices and allocating rendering windows, the problem of mini program rendering difficulties caused by limited hardware of IoT devices is solved, and better user experience and application stability are achieved.
Patent Information
- Application Number
- CN202010514954.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-08
- Publication Date
- 2025-05-02
- Estimated Expiration
- 2040-06-08
AI Technical Summary
Due to limited hardware computing resources, IoT devices are difficult to meet the rendering overhead of mini programs, resulting in poor user experience.
By obtaining the hardware computing resource information of the device where the application is located, and assigning a rendering window to the page to be rendered based on the preset rendering resource allocation information, it decides whether to use the existing rendering window for rendering.
When the hardware computing resources of the device are limited, the page can still be rendered effectively, reducing the application's requirements for hardware computing resources, improving applicability, and ensuring the stability and reliability of the application on the device.
Smart Images

Figure CN113835789B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of computer technology, and in particular to a rendering method, device, electronic device and computer storage medium. Background Art
[0002] With the development of IoT technology, the functions of IoT devices are becoming more and more abundant. Take the smart speaker with screen as an example. Since it is equipped with a display screen, it can interact with users through the display screen, such as receiving user operations and displaying content to users. In addition, some small programs can also be run in IoT devices to provide users with more abundant functions. Small programs are applications that can be used without downloading and installing. Since small programs do not need to be installed in IoT devices, their storage pressure can be reduced. After use, there is no need to uninstall them, making them more convenient to use.
[0003] However, during the operation of the mini program, some hardware computing resources of the IoT device are needed to render the running results of the mini program so that it can be displayed on the display screen. This makes it difficult for some IoT devices with limited hardware computing resources to meet the rendering overhead of the mini program, affecting the application of the mini program and causing a bad user experience. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a rendering solution to solve some or all of the above problems.
[0005] According to a first aspect of an embodiment of the present invention, a rendering method is provided, comprising: obtaining hardware computing resource information of a device where the application is located based on a page rendering request received from an application; allocating a rendering window for a page to be rendered requested by the page rendering request based on the hardware computing resource information and preset rendering resource allocation information, wherein the rendering resource allocation information is used to indicate whether to use an existing rendering window of the application to render the page to be rendered; and rendering the page to be rendered using the allocated rendering window.
[0006] According to a second aspect of an embodiment of the present invention, a rendering device is provided, comprising: obtaining hardware computing resource information of a device where the application is located based on a page rendering request received from an application; allocating a rendering window for a page to be rendered requested by the page rendering request based on the hardware computing resource information and preset rendering resource allocation information, wherein the rendering resource allocation information is used to indicate whether to use an existing rendering window of the application to render the page to be rendered; and rendering the page to be rendered using the allocated rendering window.
[0007] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the rendering method described in the first aspect.
[0008] According to a fourth aspect of an embodiment of the present invention, there is provided a computer storage medium on which a computer program is stored. When the program is executed by a processor, the rendering method as described in the first aspect is implemented.
[0009] According to the rendering scheme provided by the embodiment of the present invention, the hardware computing resource information of the device where the application is located is obtained according to the page rendering request, and a rendering window is allocated for the page to be rendered according to the hardware computing resource information and the rendering resource allocation information, and it is determined whether to use the existing rendering window to render the page to be rendered, thereby ensuring that the page to be rendered can be rendered even when the hardware computing resources of the device are relatively limited, thereby reducing the application's requirements for hardware computing resources, making it more applicable, and ensuring that the application runs more stably and reliably on the device. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0011] Figure 1a is a flowchart of the steps of a rendering method according to Embodiment 1 of the present invention;
[0012] Figure 1b A schematic diagram of a usage scenario according to Embodiment 1 of the present invention;
[0013] Figure 2a is a flowchart of a rendering method according to Embodiment 2 of the present invention;
[0014] Figure 2b A schematic diagram of interface changes in a usage scenario according to the second embodiment of the present invention;
[0015] Figure 2c A schematic diagram of a process of rendering a page according to a usage scenario of the second embodiment of the present invention;
[0016] Figure 2d A schematic diagram of interface changes in another usage scenario according to the second embodiment of the present invention;
[0017] Figure 3 is a structural block diagram of a rendering device according to Embodiment 3 of the present invention;
[0018] Figure 4 FIG. 4 is a schematic diagram of the structure of an electronic device according to Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0019] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in the field based on the embodiments in the embodiments of the present invention should fall within the scope of protection of the embodiments of the present invention.
[0020] The specific implementation of the embodiment of the present invention is further described below in conjunction with the accompanying drawings of the embodiment of the present invention.
[0021] Embodiment 1
[0022] Reference Figure 1a , shows a flowchart of the steps of a rendering method according to Embodiment 1 of the present invention.
[0023] In this embodiment, the application using the rendering method may be a small program running in a carrier application. The carrier application is, for example, a browser, an instant messaging application, a shopping application, a video application, a music application, etc. A small program is an application that can be used at any time without downloading and installing. The small program in this embodiment is a program based on HTML (Hypertext Markup Language) technology. The page of the small program can be rendered using the hardware computing resources of the device where the carrier application is located, and then displayed through a display screen or a projection camera.
[0024] The carrier application can be installed in any terminal device, including but not limited to mobile phones, IoT devices, PADs and personal computers. IoT devices (IoT) can be devices that collect information (such as sound, light, heat, electrical properties, mechanical properties, chemical properties, biological properties, spatial location information, etc.) of target objects (such as target objects that need to be monitored, target objects that need to be connected, target objects that need to interact, etc.) in real time through various devices (such as sensors, radio frequency identification chips, global positioning systems, laser scanners, etc.), and connect devices to devices and devices to people to form the Internet of Things, so that all independently addressable target objects can be interconnected to intelligently perceive, identify and manage the target objects. However, due to the limitations of the size of IoT devices, the computing resources of IoT devices are relatively limited, resulting in some small programs being unable to run on IoT devices with less computing resources, which limits the promotion and popularization of small programs.
[0025] In order to solve the above problem, the rendering method of this embodiment includes the following steps:
[0026] Step S102: According to the received page rendering request of the application, the hardware computing resource information of the device where the application is located is obtained.
[0027] The application may be an application that runs independently on the terminal device, or a small program that runs based on a carrier application, or other types of applications, which are not limited in this embodiment.
[0028] Taking the mini program as an example, one or more pages need to be rendered and displayed during the running of the mini program. For example, when the content data of the page of the mini program (such as the URI and / or URL of the content) is loaded, the page needs to be rendered. The device receives the page rendering request, and rendering the page needs to occupy a certain amount of hardware computing resources of the device where the mini program is located (this certain amount is determined according to the settings in the mini program, and this embodiment does not limit this) of the mini program. Resources, such as memory resources, CPU (central processing unit) resources, GPU (graphics processing unit) resources, etc.
[0029] The aforementioned URI (Uniform Resource Identifier) is a character string used to identify a certain Internet resource name. This type of identification allows users to interact with any (including local and Internet) content resources through a specific protocol.
[0030] The aforementioned URL (Uniform Resource Locator) is a character string used to identify the location of content.
[0031] If the device's hardware computing resources are insufficient or the proportion of hardware computing resources occupied by the mini-program page rendering is too high, it will lead to page rendering failure, device crash, excessive device response delay and other problems, which will affect the stability and reliability of the device operation and result in a poor user experience.
[0032] To solve this problem, in this embodiment, according to the received page rendering request, the hardware computing resource information of the device where the corresponding application is located is obtained. For example, if a page rendering request of a small program running in a smart speaker is received, the hardware computing resource information of the smart speaker is obtained.
[0033] The hardware computing resource information includes at least one of the following: the maximum available memory capacity of the device where the application is located, the real-time available memory capacity, the maximum available CPU capacity, the real-time available CPU capacity, the maximum available CPU cache capacity, the real-time available CPU cache capacity, the maximum available GPU capacity, the real-time available GPU capacity, the available storage space of the device, and the available network bandwidth of the device.
[0034] It should be noted that the aforementioned hardware may be inherent hardware configured inside the device, or may be removable external hardware (such as an external GPU, etc.) connected via an external interface.
[0035] In one case, the hardware computing resource information may be first hardware computing resource information obtained by detecting the device when the device (such as a smart speaker) is started. The first hardware computing resource information may be stored in a memory or an external storage space (such as a hard disk, etc.). When a page rendering request is received, the first hardware computing resource information is obtained by reading from the memory or the external storage space. The first hardware computing resource information is static and will not change during the execution of the method.
[0036] In another case, the hardware computing resource information may be second hardware computing resource information obtained by real-time detection of the device when receiving a page rendering request. The second hardware computing resource information is dynamic, and the second hardware computing resource information obtained at different times during the execution of the method may be different.
[0037] Step S104: allocating a rendering window for the page to be rendered requested by the page rendering request according to the hardware computing resource information and the preset rendering resource allocation information.
[0038] The rendering resource allocation information is used to indicate whether to use the existing rendering window of the application to render the page to be rendered. For example, whether to use the existing rendering window to render the page to be rendered is determined according to the hardware computing resource information.
[0039] The rendering resource allocation information may be determined according to specific needs of the application program, and this embodiment does not limit this.
[0040] For example, the rendering resource allocation information includes at least one of the following: a rendering window resource occupation threshold and a rendering window maximum value.
[0041] The rendering window resource occupation threshold is used to indicate the maximum amount of hardware computing resources occupied by creating a single rendering window. For example, a rendering window corresponding to application A needs to occupy 30M memory, or the CPU main frequency needs to be greater than or equal to 3.0GHz.
[0042] The maximum rendering window value is used to indicate the maximum number of rendering windows that can exist simultaneously corresponding to the hardware computing resources. For example, when the maximum available memory capacity of the device is 256M, the number of rendering windows corresponding to application B that can exist simultaneously is 2, and so on.
[0043] When the device's hardware computing resources meet the rendering window resource occupation threshold or the existing rendering window corresponding to the application is smaller than the maximum rendering window value, a new rendering window can be created for rendering; conversely, when the device's hardware computing resources cannot meet the rendering window resource occupation threshold or the existing rendering window corresponding to the application is greater than or equal to the maximum rendering window value, the existing rendering window is used for rendering.
[0044] Based on the obtained hardware computing resource information of the device and the rendering resource allocation information corresponding to the application, it is possible to determine whether the device can support the creation of a new rendering window. If it supports the creation of a new rendering window, it can be determined not to use the existing rendering window to render the page to be rendered, and a new rendering window can be allocated for the page to be rendered. This can retain the page rendered by the existing rendering window, ensuring that when the user needs to switch the interface back to the page rendered by the existing rendering window, it can be quickly switched back, reducing the user's waiting time.
[0045] On the contrary, if the creation of a new rendering window is not supported, in order to be able to render the page to be rendered, it is determined to use an existing rendering window to render the page to be rendered, and the existing rendering window is allocated to the page to be rendered. This ensures that the application page can be rendered, so that the application can be used normally, and the hardware computing resources required by the application can be reduced, thereby reducing the demand for the hardware configuration of the device to adapt to more devices, making it easier to promote.
[0046] Step S106: using the allocated rendering window to render the page to be rendered.
[0047] If a new rendering window is created, the new rendering window is used to render and display the page to be rendered; if a new rendering window is not created, the existing rendering window is used to render and display the page to be rendered. Those skilled in the art may render the page to be rendered in any appropriate manner, and this embodiment does not limit this.
[0048] The rendering method of this embodiment flexibly allocates the rendering window to be used according to the hardware computing resource information of the device when rendering the page of the application. On the one hand, it can improve the utilization efficiency of hardware computing resources, and on the other hand, it can reduce the occupation of hardware computing resources when the application renders the page, thereby reducing the application's requirements for hardware configuration, so that it can be applied to devices with relatively limited hardware computing resources (such as Internet of Things devices or artificial intelligence Internet of Things devices), and solve the problem that the mini-programs on Internet of Things devices cannot provide users with stable and reliable services, resulting in a poor user experience.
[0049] The following is an explanation of the implementation process of the rendering method based on a specific usage scenario:
[0050] In this usage scenario, the application is a small program running in the smart speaker with a screen, which can be run based on a browser or based on other carrier applications in the smart speaker with a screen.
[0051] like Figure 1b As shown in the middle interface 1, the mini-program tab of the carrier application C displays multiple available mini-programs. When the user triggers the displayed mini-program 1, the home page of the mini-program 1 is entered, as shown in FIG. Figure 1b As shown in the middle interface 2.
[0052] When the user triggers the first option corresponding to the live content a displayed in the home page of mini program 1, it means that the page corresponding to the live content a needs to be displayed to the user (referred to as the page to be rendered). The mini program generates a page rendering request and sends it to the rendering engine used to render the page. The rendering engine obtains the hardware computing resource information of the device where the mini program is located according to the page rendering request. For example, the second hardware computing resource information of the device is obtained by real-time detection of the device. The second hardware computing resource information includes the real-time available capacity of the device's memory, CPU usage, GPU usage, and real-time available capacity of the CPU cache. Based on the second hardware computing resource information and the rendering resource allocation information preset by mini program 1, it is determined whether the device can support the creation of a new rendering window. If it can be supported, a rendering window X is created, and the rendering window X is used to render the page to be rendered to obtain the page corresponding to the live content a. Figure 1b The middle interface 3 shows a schematic diagram of a page corresponding to the live broadcast content a.
[0053] Alternatively, if it is determined based on the second hardware computing resource information and rendering resource allocation information that the hardware computing resources of the device are insufficient to support the creation of a new rendering window, you can select one from the existing rendering windows corresponding to applet 1 and use the selected existing rendering window to render the page corresponding to the live content a.
[0054] Through this embodiment, the hardware computing resource information of the device where the application is located is obtained according to the page rendering request, and a rendering window is allocated to the page to be rendered according to the hardware computing resource information and the rendering resource allocation information, and it is determined whether to use the existing rendering window to render the page to be rendered, thereby ensuring that the page to be rendered can be rendered even when the hardware computing resources of the device are relatively limited, thereby reducing the application's requirements for hardware computing resources, making it more applicable, and ensuring that the application runs more stably and reliably on the device.
[0055] The rendering method of this embodiment can be executed by any appropriate electronic device with data processing capabilities, including but not limited to: a server, a mobile terminal (such as a tablet computer, a mobile phone, etc.) and a PC, etc.
[0056] Embodiment 2
[0057] 2 , there is shown a flowchart of the steps of a rendering method according to the second embodiment of the present invention.
[0058] The rendering method of this embodiment includes the aforementioned steps S102 to S106. In this embodiment, the method further includes steps S100a to S100c, which can be performed at any appropriate time before step S104, and can be performed before, after or in parallel with step S102.
[0059] Step S100a: Obtain configured rendering resource allocation information.
[0060] Those skilled in the art can configure the rendering resource allocation information as needed. For example, the rendering resource allocation information includes at least one of a rendering window resource occupation threshold and a rendering window maximum value.
[0061] The rendering window resource occupation threshold is used to indicate the maximum amount of hardware computing resources occupied by creating a single rendering window. For example, the rendering resource allocation information includes a threshold for indicating that the single rendering window resource occupation threshold corresponding to application A is 30M memory.
[0062] The maximum value of the rendering window is used to indicate the maximum number of rendering windows that can exist simultaneously corresponding to the hardware computing resources. For example, the rendering resource allocation information includes that if the maximum available capacity of the GPU cache of the device where application B is located is 2G, the maximum value of the rendering windows corresponding to application B is 10, if the maximum available capacity of the memory of the device is 8G, the maximum value of the rendering windows corresponding to application B is 20, etc.
[0063] Of course, in other embodiments, the rendering resource allocation information may also include other information, which is not limited in this embodiment. Different rendering resource allocation information may be configured for different application types to improve adaptability.
[0064] Step S100b: Acquire program type information of the application program.
[0065] The program type information includes at least one of the following: a shopping application, a music player application, a video player application, and an e-book application.
[0066] Step S100c: Determine rendering resource allocation information matching the program type information from a plurality of preset rendering resource allocation information.
[0067] Since different types of application programs occupy different hardware computing resources for rendering interfaces, different rendering resource allocation information may be matched to different types of application programs.
[0068] For example, for shopping applications and video playback applications, since their interface content is relatively large, the rendering resource allocation information matching the shopping applications or video playback applications indicates more hardware computing resources. For example, when the resource occupation threshold of the rendering window in the rendering resource allocation information is greater than 500M and the maximum available memory capacity of the device is 8G, the maximum number of rendering windows is 5, etc.
[0069] For example, for music playing applications and e-book applications, since their interface content is relatively less than that of shopping applications, the hardware computing resources indicated by the rendering resource allocation information that can match music playing applications or e-book applications are less. For example, when the resource occupancy threshold of the rendering window in the rendering resource allocation information is greater than 100M and the maximum available memory capacity of the device is 8G, the maximum number of rendering windows is 20, etc.
[0070] Based on the rendering resource allocation information determined through the above steps, in this embodiment, the following sub-steps are included in step S104:
[0071] Sub-step S1041: determining whether to allow creation of a new rendering window according to the hardware computing resource information and the rendering resource allocation information.
[0072] In the first case, the hardware computing resource information is the first hardware computing resource information detected and obtained when the device is started. The first hardware computing resource information is not limited to: the maximum available memory capacity of the device, the maximum available CPU cache capacity (including but not limited to the CPU first-level cache capacity, second-level cache capacity and third-level cache capacity), the maximum available GPU cache capacity (such as GPU cache), CPU main frequency, GPU main frequency, available network bandwidth, etc.
[0073] Since the first hardware computing resource information will not change during the execution of the method, the first hardware computing resource information will not include information about the currently available hardware computing resources of the device. Therefore, in this case, step S1041 can be implemented as follows: if the hardware computing resource information is the first hardware computing resource information detected and obtained when the device is started, the maximum value of the rendering window corresponding to the first hardware computing resource information is determined according to the rendering resource allocation information; if the number of existing rendering windows corresponding to the application is less than the maximum value of the rendering window, it is determined that a new rendering window is allowed to be created.
[0074] For example, if the first hardware computing resource information indicates that the maximum available memory capacity of the device is 256M, then the maximum number of rendering windows corresponding to the 256M memory can be determined from the rendering resource allocation information to be 2. If the number of existing rendering windows corresponding to the application is less than 2, then it is allowed to create a new rendering window, and step S1042 can be performed subsequently; conversely, if the number of existing rendering windows corresponding to the application is already 2, then it is not allowed to create a new rendering window, and step S1043 can be performed subsequently.
[0075] Since the first hardware computing resource information includes the computing resources of different hardware in the device, the maximum value of the rendering window determined according to the hardware computing resources corresponding to different hardware may be different. Therefore, the one with the smallest maximum value of the rendering window can be selected as the maximum value of the rendering window corresponding to the first hardware computing resource information, or the maximum value of the rendering window corresponding to the first hardware computing resource information can be determined according to other methods.
[0076] For example, if the first hardware computing resource information includes that the maximum available memory capacity of the device is 256M, and the corresponding maximum number of rendering windows is determined to be 2 based on the 256M memory, and the first hardware computing resource information includes that the CPU main frequency of the device is 3.0GHz, and the corresponding maximum number of rendering windows is 10. In this case, the maximum number of rendering windows corresponding to the first hardware computing resource information is 2.
[0077] In the second case, the hardware computing resource information is the second hardware computing resource information obtained by real-time detection of the device, and the second hardware computing resource information includes but is not limited to: the maximum available memory capacity of the device, the maximum available CPU cache capacity (including but not limited to CPU first-level cache capacity, second-level cache capacity and third-level cache capacity), the maximum available GPU cache capacity (such as GPU cache), CPU main frequency, GPU main frequency, CPU utilization rate, GPU utilization rate, real-time available memory capacity, external storage space (such as hard disk available storage space), available network bandwidth, etc.
[0078] Since the second hardware computing resource information is detected in real time, it is dynamic and changeable during the execution of the method, and may include information about the currently available hardware computing resources of the device. Therefore, when determining whether to allow the creation of a new rendering window based on the second hardware computing resource information, it can be achieved not only by the method in the aforementioned situation, but also by the information about the currently available hardware computing resources of the device.
[0079] In this case, step S1041 can be implemented as follows: if the hardware computing resource information is second hardware computing resource information obtained by real-time detection of the device, then determining whether the available hardware computing resources indicated by the second hardware computing resource information meets the rendering window resource occupancy threshold based on the rendering resource allocation information; if so, determining to allow the creation of a new rendering window.
[0080] For example, the second hardware computing resource information includes the real-time available capacity of the memory, and the real-time available capacity of the memory indicates that the available memory is 25M. According to the rendering window resource occupation threshold in the rendering resource allocation information, it is determined that the 25M available memory does not meet the threshold, then it is determined that the creation of a new rendering window is not allowed, and step S1043 is subsequently executed; conversely, if the 25M available memory meets the threshold, then it is determined that the creation of a new rendering window is allowed, and step S1042 is subsequently executed.
[0081] Similar to the first case mentioned above, the second hardware computing resource information includes the available hardware computing resources of different hardware in the device. The available hardware computing resources of different hardware are different. It is possible that the available hardware computing resources of some hardware can meet the rendering window resource occupation threshold, while the available hardware computing resources of some hardware cannot meet the rendering window resource occupation threshold. In this case, if there is hardware that cannot meet the rendering window resource occupation threshold, it is determined that the creation of a new rendering window is not allowed; alternatively, in other embodiments, other methods can be used to determine whether to allow the creation of a new rendering window, which is not limited in this embodiment.
[0082] Sub-step S1042: If allowed, create a first rendering window, and assign the first rendering window to the page to be rendered.
[0083] In the case where a new rendering window is allowed to be created, those skilled in the art may create the first rendering window in any appropriate manner, and this embodiment does not limit this. For example, a process or thread corresponding to the first rendering window is created, and the first rendering window is assigned to the page to be rendered, so that the page to be rendered is rendered using the first rendering window in step S106.
[0084] Sub-step S1043: If creation of a new rendering window is not allowed, determining whether there is an existing rendering window corresponding to the application.
[0085] If the creation of a new rendering window is not allowed, it means that the hardware computing resources of the device are insufficient. If a new rendering window is created, it may cause the device to crash or the response delay to be too high. In order to avoid this problem and be able to render the page to be rendered to ensure that the application can run correctly, in this embodiment, when the creation of a new rendering window is not allowed, it is determined whether the application has a corresponding existing rendering window. If there is an existing rendering window, sub-step S1044 is executed to use the existing rendering window to render the page to be rendered; conversely, if there is no existing rendering window, it means that the application currently has no corresponding rendering window. At this time, in order to ensure that the page to be rendered can still be rendered, sub-steps S1045 and S1046 can be executed, or an error can be directly reported and no rendering is performed.
[0086] Sub-step S1044: if there is an existing rendering window, determining a rendering window for rendering the to-be-rendered page from the existing rendering windows.
[0087] In a specific implementation, if there is only one existing rendering window, the existing rendering window is allocated to the page to be rendered, so that the page to be rendered is rendered using the existing rendering window.
[0088] In another specific implementation, if there are more than one existing rendering windows, one existing rendering window is selected from the existing rendering windows and allocated to the page to be rendered, so that the allocated existing rendering window is used for rendering in subsequent steps.
[0089] The selection of the existing rendering window may be random selection, or the least frequently used existing rendering window may be selected according to the usage frequencies of the existing rendering windows, thereby improving resource utilization.
[0090] Sub-step S1045: If there is no existing rendering window, the rendering resource allocation information is adjusted to obtain rendering resource test information.
[0091] If there is no existing rendering window, it means that the application does not have a rendering window. In order to ensure that the page to be rendered can be rendered and the application can run normally, the rendering resource allocation information can be adjusted, such as adjusting the rendering window resource occupation threshold in the rendering resource allocation information from 30M memory to 25M. The lowered rendering window resource occupation threshold is the rendering resource test information.
[0092] Sub-step S1046: creating a second rendering window corresponding to the application according to the rendering resource test information, and assigning the second rendering window to the page to be rendered.
[0093] Those skilled in the art may create the second rendering window in any appropriate manner, which is not limited in this embodiment, such as creating a process or thread corresponding to the second rendering window, and assigning the second rendering window to the page to be rendered, so as to use the second rendering window to render the page to be rendered in step S106.
[0094] Optionally, the method further includes step S108.
[0095] Step S108: if the rendering of the to-be-rendered page is completed using the second rendering window, the rendering resource allocation information is updated using the rendering resource test information.
[0096] When a second rendering window is created and assigned to the page to be rendered, if the second rendering window is used to render the page to be rendered in step S106, it means that 25M of memory can also meet the requirement of rendering the page to be rendered. Therefore, the rendering resource test information can be used to update the rendering resource allocation information, so that when the rendering window is subsequently allocated according to the updated rendering resource allocation information, less hardware computing resources are occupied, thereby improving resource utilization efficiency.
[0097] The implementation process of the rendering method of this embodiment is described below in conjunction with a specific usage scenario:
[0098] In this usage scenario, the device where the application is located is a mobile phone. However, it should be known that the device where the application is located can also be other devices, such as a smart speaker, a smart TV, and so on.
[0099] In this usage scenario, the rendering resource allocation information can be configured for the mini program 1 at any appropriate time, such as configuring the resource occupation threshold of the rendering window of a single page of the rendering mini program 1 to occupy 30M of memory, or the CPU occupation rate to be 5%.
[0100] like Figure 2b and Figure 2c As shown, Figure 2bInterface 1 shows the interface of the mini-program tab page of the carrier application. Mini-programs that can be run on the carrier application are displayed therein. When a user clicks on the mini-program 1 displayed therein, the mini-program 1 is started and a page rendering request sent by the mini-program 1 is obtained, and the page rendering request is used to instruct the rendering of the home page of the mini-program 1.
[0101] According to the received page rendering request, on the one hand, the URI or URL of the home page of the mini program 1 can be loaded. The URI or URL indicates the location of the content data in the home page.
[0102] On the other hand, the hardware computing resource information of the device where the mini program 1 is located can be obtained. The hardware computing resource information includes but is not limited to: the device's memory usage, CPU usage, GPU usage, GPU cache usage, CPU first, second and third level cache, external storage space, device network bandwidth, etc.
[0103] The acquired hardware computing resource information may be the first hardware computing resource information or the second hardware computing resource information. The first hardware computing resource information is static and is acquired when the device is started. The first hardware computing resource information does not change during each period of operation. The second hardware computing resource information is dynamic, that is, the hardware computing resource information of the device is detected in real time each time the page is rendered, which may include the remaining amount of the hardware computing resources of the device at the current moment.
[0104] The page to be rendered is rendered according to the obtained hardware computing resource information.
[0105] In the first specific implementation, if the hardware computing resource information is the maximum value of the rendering window in the first hardware computing resource information and the rendering resource allocation information, it is determined whether to create a new rendering window (which can be a window or a view) for rendering the home page, or to use an existing rendering window to render the home page.
[0106] For example, if the memory size of the device is determined to be 256M according to the first hardware computing resource information, the corresponding maximum value of the rendering window is determined to be 2, that is, 2 rendering windows are allowed to exist at the same time. If Mini Program 1 currently has 2 existing rendering windows, it is not allowed to create a new rendering window, and one of the 2 existing rendering windows is selected to render the home page; or if Mini Program 1 currently has less than 2 existing rendering windows, it is allowed to create a new rendering window, and the newly created rendering window is directly used to render the home page.
[0107] When selecting from the existing rendering windows, those skilled in the art can select the existing rendering window for rendering the home page from the existing rendering windows in an appropriate manner as needed, such as selecting the least used existing rendering window. However, it should be noted that this usage scenario does not limit the selection method.
[0108] For another example, if the current memory remaining of the device is determined to be 100M according to the second hardware computing resource information, and the threshold of the resource occupied by the rendering window in the rendering resource allocation information is 30M memory, a new rendering window is created, and the newly created rendering window is directly used to render the home page. Alternatively, if the current memory remaining of the device is determined to be 25M according to the second hardware computing resource information, and the remaining memory is insufficient to create a new rendering window, the rendering can be directly exited, or one of the existing rendering windows can be selected to render the home page.
[0109] In this case, if there is no corresponding existing rendering window for mini program 1, the rendering window resource occupation threshold in the rendering resource allocation information can be adjusted, for example, the threshold can be set to 25M, and then a new rendering window is created and the new rendering window is used to render the home page. If the rendering is successful, the rendering window resource occupation threshold is determined to be 25M.
[0110] After determining the rendering window for rendering the home page, the determined rendering window is used to render it, and the rendered home page is displayed on the screen of the mobile phone (such as Figure 2b (shown in the middle interface 2).
[0111] The rendering method solves the problem of the lack of computing resources on IoT devices (IoT devices) and the need to improve the utilization of computing resources. The hardware computing resource information of the device is obtained before rendering the page to be rendered, and it is determined whether to create a new rendering window or render the page to be rendered in an existing rendering window according to the hardware computing resource information.
[0112] Since rendering in an existing rendering window reduces the consumption of hardware computing resources, the applet 1 can reduce the requirements for the hardware computing resources of the device, making it more popular. In addition, the method can also adjust the threshold of resource occupation of the rendering window, so that the threshold of resource occupation of the rendering window is as small as possible while ensuring that the page can be rendered, so as to reduce resource occupation.
[0113] In another usage scenario, the rendering method can be configured in the hardware device by means of an additional upgrade installation package. For example, the hardware device may be an Internet of Things device (I oT device) such as a smart speaker with a screen. In this way, the existing IoT devices can be upgraded and transformed by sending an upgrade installation package to the IoT device, thereby improving the page rendering intelligence of the existing IoT devices. In this usage scenario, the rendering method is applied to a smart speaker with a screen to implement page rendering of the application in the smart speaker. In this usage scenario, the rendering resource allocation information can be configured at any appropriate time, such as configuring the resource occupation threshold of the rendering window of a single page of the rendering application to occupy 50M of memory; or the CPU occupancy rate is 7%, etc.
[0114] like Figure 2d As shown in the middle interface 1, when the user clicks the icon of application A in the interface of the smart speaker, the home page of application A is displayed, and a page rendering request sent by application A is obtained. In this usage scenario, the page rendering request indicates to render the home page of application A.
[0115] In this usage scenario, the hardware computing resource information of the device (i.e., smart speaker) where application A is located is dynamically obtained according to the page rendering request. That is, each time a page rendering request is obtained, the current memory usage, current CPU usage, current GPU usage, current GPU cache usage, CPU level 1, 2, and 3 caches, current external storage space, and device network bandwidth are obtained.
[0116] In one case, based on the current memory usage of the hardware computing resource information, it is determined that the current available memory margin is 500M, and the rendering window resource occupation threshold in the rendering resource allocation information is 50M, so a new rendering window is created directly, and the new rendering window is used to render the home page of the application.
[0117] In another case, according to the current memory usage rate of the hardware computing resource information, it is determined that the current available memory margin is 20M, and the threshold of the resource occupied by the rendering window in the rendering resource allocation information is 50M, then a new rendering window cannot be created, and the existing rendering window is used to render the home page. If there are more than one rendering windows, the one with the lowest usage rate is selected from the existing rendering windows to render the home page, so that the usage rate of the existing rendering windows can be improved.
[0118] The rendered home page can be displayed on the display of the smart speaker, such as Figure 2d As shown in the middle interface 2.
[0119] In another usage scenario, the rendering method can be configured on a first device, and the first device can be connected to a second device externally, such as connecting to the second device through an external socket, or communicating with the second device through a network. In this way, the hardware of the second device can be modified by using the first device, thereby expanding the function of the second device and improving the page rendering capability of the second device.
[0120] The first device may be any appropriate external device, such as an external smart terminal, an external chip, an external memory, etc. The second device may be any appropriate terminal device, such as a mobile phone, a smart speaker with a screen, a smart TV, a smart doorbell with a screen, etc.
[0121] The second device can render the page in the application by running the rendering method in the first device. For example, the second device obtains hardware computing resource information according to the page rendering request.
[0122] According to the obtained hardware computing resource information and the preset rendering resource allocation information, it is determined whether to use the existing rendering window to render the page to be rendered.
[0123] For example, if the hardware computing resource information is the first hardware computing resource information obtained when the second device is started, the maximum value of the rendering window is determined according to the first hardware computing resource information. If the number of existing rendering windows corresponding to the application in the second device is less than the maximum value of the rendering window, the existing rendering window is not used, but a new rendering window is created, and the new rendering window is used to render the page to be rendered. On the contrary, if it is not allowed to create a new rendering window, a rendering window is selected from the existing rendering windows, and the selected rendering window is used to render the page to be rendered.
[0124] For another example, if the hardware computing resource information is the second hardware computing resource information obtained by real-time detection, then whether to create a new rendering window is determined based on whether the available hardware computing resources indicated by the hardware computing resource information meet the threshold of resources occupied by the rendering window. If a new rendering window is created, the new rendering window is used to render the page to be rendered; otherwise, if a new rendering window is not created, one of the existing rendering windows is selected to render the page to be rendered.
[0125] In this way, the hardware of the second device can be modified using the external first device, so that the second device can be more intelligent when rendering pages.
[0126] In summary, the rendering method can be applied to the rendering of any page. The rendering window of the rendering page is allocated according to the hardware computing resources, which can realize the automatic configuration of the hardware computing resources, and the threshold of the resource occupation of the rendering window can be flexibly adjusted to make it more accurate. Through this embodiment, the hardware computing resource information of the device where the application is located is obtained according to the page rendering request, and the rendering window is allocated to the page to be rendered according to the hardware computing resource information and the rendering resource allocation information, and it is determined whether to use the existing rendering window to render the page to be rendered, so as to ensure that the page to be rendered can be rendered even when the hardware computing resources of the device are relatively limited, thereby reducing the requirements of the application on the hardware computing resources, making it more applicable, and ensuring that the application runs more stably and reliably on the device.
[0127] The rendering method of this embodiment can be executed by any appropriate electronic device with data processing capabilities, including but not limited to: a server, a mobile terminal (such as a tablet computer, a mobile phone, etc.) and a PC, etc.
[0128] Embodiment 3
[0129] Reference Figure 3 , shows a structural block diagram of a rendering device according to Embodiment 3 of the present invention.
[0130] The rendering device of this embodiment includes:
[0131] The acquisition module 302 is used to acquire hardware computing resource information of the device where the application is located according to the received page rendering request of the application;
[0132] An allocation module 304, configured to allocate a rendering window for the page to be rendered requested by the page rendering request according to the hardware computing resource information and preset rendering resource allocation information, wherein the rendering resource allocation information is used to indicate whether to use an existing rendering window of the application program to render the page to be rendered;
[0133] The rendering module 306 is configured to render the page to be rendered using the allocated rendering window.
[0134] Optionally, the allocation module 304 includes:
[0135] A first determination module 3041 is used to determine whether to allow the creation of a new rendering window according to the hardware computing resource information and the rendering resource allocation information;
[0136] The first creation module 3042 is configured to create a first rendering window if allowed, and assign the first rendering window to the page to be rendered.
[0137] Optionally, the rendering resource allocation information includes at least one of the following: a rendering window resource occupation threshold and a rendering window maximum value, wherein the rendering window resource occupation threshold is used to indicate the maximum amount of hardware computing resources occupied by creating a single rendering window, and the rendering window maximum value is used to indicate the maximum number of rendering windows that can exist simultaneously corresponding to the hardware computing resources.
[0138] Optionally, the first determination module 3041 is used to determine, if the hardware computing resource information is the first hardware computing resource information obtained by detection when the device is started, the maximum value of the rendering window corresponding to the first hardware computing resource information according to the rendering resource allocation information, and if the number of existing rendering windows corresponding to the application is less than the maximum value of the rendering window, determine whether a new rendering window is allowed to be created; or, if the hardware computing resource information is the second hardware computing resource information obtained by real-time detection of the device, determine whether the available hardware computing resources indicated by the second hardware computing resource information meet the rendering window resource occupation threshold according to the rendering resource allocation information, and if so, determine whether a new rendering window is allowed to be created.
[0139] Optionally, the device also includes: a second determination module 3043, which is used to determine whether there is an existing rendering window corresponding to the application if creation of a new rendering window is not allowed; and a selection module, which is used to determine a rendering window for rendering the page to be rendered from the existing rendering windows if there is an existing rendering window.
[0140] Optionally, the device also includes: an adjustment module 3044, which is used to adjust the rendering resource allocation information to obtain rendering resource test information if there is no existing rendering window; a second creation module 3045, which is used to create a second rendering window corresponding to the application according to the rendering resource test information, and allocate the second rendering window to the page to be rendered.
[0141] Optionally, the device further includes: an updating module 308, configured to update the rendering resource allocation information using the rendering resource testing information if the rendering of the to-be-rendered page is completed using the second rendering window.
[0142] Optionally, the application comprises an applet running in a carrier application.
[0143] Optionally, the device further comprises:
[0144] The type acquisition module 300a is used to acquire the program type information of the application before the allocation module 304 allocates a rendering window for the page to be rendered requested by the page rendering request according to the hardware computing resource information and the preset rendering resource allocation information, wherein the program type information includes at least one of the following: a shopping application, a music playing application, a video playing application, and an e-book application;
[0145] The resource determination module 300b is used to determine rendering resource allocation information matching the program type information from a plurality of preset rendering resource allocation information.
[0146] The rendering device of this embodiment is used to implement the corresponding rendering methods in the aforementioned multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be described in detail here. In addition, the functional implementation of each module in the rendering device of this embodiment can refer to the description of the corresponding parts in the aforementioned method embodiments, which will not be described in detail here.
[0147] Embodiment 4
[0148] Reference Figure 4 , shows a schematic diagram of the structure of an electronic device according to Embodiment 4 of the present invention. The specific embodiment of the present invention does not limit the specific implementation of the electronic device.
[0149] like Figure 4 As shown, the electronic device may include: a processor (processor) 402 , a communication interface (Communications Interface) 404 , a memory (memory) 406 , and a communication bus 408 .
[0150] in:
[0151] The processor 402 , the communication interface 404 , and the memory 406 communicate with each other via a communication bus 408 .
[0152] The communication interface 404 is used to communicate with other electronic devices such as terminal devices or servers.
[0153] The processor 402 is used to execute the program 410, and specifically can execute the relevant steps in the above rendering method embodiment.
[0154] Specifically, the program 410 may include program codes, which include computer operation instructions.
[0155] The processor 402 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the electronic device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0156] The memory 406 is used to store the program 410. The memory 406 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0157] Program 410 can be specifically used to enable processor 402 to perform the following operations: based on a page rendering request received from an application, obtain hardware computing resource information of a device where the application is located; based on the hardware computing resource information and preset rendering resource allocation information, allocate a rendering window for the page to be rendered requested by the page rendering request, wherein the rendering resource allocation information is used to indicate whether to use an existing rendering window of the application to render the page to be rendered; and use the allocated rendering window to render the page to be rendered.
[0158] In an optional embodiment, the program 410 is also used to enable the processor 402 to determine whether to allow the creation of a new rendering window based on the hardware computing resource information and the rendering resource allocation information when allocating a rendering window for the page to be rendered requested by the page rendering request according to the hardware computing resource information and the preset rendering resource allocation information; if allowed, create a first rendering window and allocate the first rendering window to the page to be rendered.
[0159] In an optional embodiment, the rendering resource allocation information includes at least one of the following: a rendering window resource occupation threshold and a rendering window maximum value, wherein the rendering window resource occupation threshold is used to indicate the maximum amount of hardware computing resources occupied by creating a single rendering window, and the rendering window maximum value is used to indicate the maximum number of rendering windows that can exist simultaneously corresponding to the hardware computing resources.
[0160] In an optional embodiment, the program 410 is also used to enable the processor 402 to determine whether to allow the creation of a new rendering window based on the hardware computing resource information and the rendering resource allocation information. If the hardware computing resource information is the first hardware computing resource information detected and obtained when the device is started, the maximum value of the rendering window corresponding to the first hardware computing resource information is determined according to the rendering resource allocation information, and if the number of existing rendering windows corresponding to the application is less than the maximum value of the rendering window, it is determined that the creation of a new rendering window is allowed; or, if the hardware computing resource information is the second hardware computing resource information obtained by real-time detection of the device, it is determined according to the rendering resource allocation information whether the available hardware computing resources indicated by the second hardware computing resource information meet the rendering window resource occupation threshold, and if so, it is determined that the creation of a new rendering window is allowed.
[0161] In an optional embodiment, the program 410 is also used to enable the processor 402 to determine whether there is an existing rendering window corresponding to the application if the creation of a new rendering window is not allowed; if there is an existing rendering window, determine the rendering window used to render the page to be rendered from the existing rendering windows.
[0162] In an optional embodiment, the program 410 is also used to enable the processor 402 to adjust the rendering resource allocation information to obtain rendering resource test information if there is no existing rendering window; create a second rendering window corresponding to the application according to the rendering resource test information, and allocate the second rendering window to the page to be rendered.
[0163] In an optional implementation, the program 410 is further configured to enable the processor 402 to update the rendering resource allocation information using the rendering resource test information if the second rendering window is used to complete rendering of the to-be-rendered page.
[0164] In an optional embodiment, the application includes an applet running in a carrier application.
[0165] In an optional embodiment, the program 410 is also used to enable the processor 402 to obtain program type information of the application before allocating a rendering window for the page to be rendered requested by the page rendering request according to the hardware computing resource information and the preset rendering resource allocation information, wherein the program type information includes at least one of the following: shopping applications, music playing applications, video playing applications, and e-book applications; and determine the rendering resource allocation information that matches the program type information from multiple preset rendering resource allocation information.
[0166] The specific implementation of each step in program 410 can refer to the corresponding description of the corresponding steps and units in the above rendering method embodiment, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the above-mentioned method embodiment, which will not be repeated here.
[0167] It should be pointed out that, according to the needs of implementation, the various components / steps described in the embodiments of the present invention can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present invention.
[0168] The above-described method according to an embodiment of the present invention may be implemented in hardware, firmware, or as software or computer code that can be stored in a recording medium (such as a CD ROM, RAM, floppy disk, hard disk, or magneto-optical disk), or as computer code that is originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded over a network and will be stored in a local recording medium, so that the method described herein may be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware (such as an ASIC or FPGA). It is understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor, or hardware, the rendering method described herein is implemented. In addition, when a general-purpose computer accesses code for implementing the rendering method shown herein, the execution of the code converts the general-purpose computer into a dedicated computer for executing the rendering method shown herein.
[0169] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present invention.
[0170] The above implementation methods are only used to illustrate the embodiments of the present invention, and are not limitations of the embodiments of the present invention. Ordinary technicians in the relevant technical field may make various changes and modifications without departing from the spirit and scope of the embodiments of the present invention. Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present invention. The patent protection scope of the embodiments of the present invention should be defined by the claims.
Claims
1. A rendering method, comprising: Obtaining hardware computing resource information of a device where the application is located according to a received page rendering request of the application; Allocate a rendering window for the page to be rendered requested by the page rendering request according to the hardware computing resource information and preset rendering resource allocation information, wherein the rendering resource allocation information is used to indicate whether to use an existing rendering window of the application to render the page to be rendered; Rendering the page to be rendered using the allocated rendering window; The allocating a rendering window for the page to be rendered requested by the page rendering request according to the hardware computing resource information and the preset rendering resource allocation information includes: Determining whether to allow creation of a new rendering window according to the hardware computing resource information and the rendering resource allocation information; If creation of a new rendering window is not allowed, determining whether there is an existing rendering window corresponding to the application; If there is no existing rendering window, adjusting the threshold of resource occupation of the rendering window in the rendering resource allocation information to obtain rendering resource test information, wherein the rendering resource test information is used to indicate the adjusted threshold of resource occupation of the rendering window; A second rendering window corresponding to the application is created according to the rendering resource test information, and the second rendering window is allocated to the page to be rendered.
2. The method according to claim 1, wherein: If creation of a new rendering window is allowed, a first rendering window is created, and the first rendering window is allocated to the page to be rendered.
3. The method according to claim 2, wherein the rendering resource allocation information comprises at least one of the following: a rendering window resource occupation threshold and a rendering window maximum value, wherein: The rendering window resource occupation threshold is used to indicate the maximum amount of hardware computing resources occupied by creating a single rendering window, and the rendering window maximum value is used to indicate the maximum number of rendering windows that can exist simultaneously corresponding to the hardware computing resources.
4. The method according to claim 3, wherein the determining whether to allow the creation of a new rendering window according to the hardware computing resource information and the rendering resource allocation information comprises: If the hardware computing resource information is first hardware computing resource information detected and obtained when the device is started, determining a maximum value of a rendering window corresponding to the first hardware computing resource information according to the rendering resource allocation information, and if the number of existing rendering windows corresponding to the application is less than the maximum value of the rendering window, determining to allow the creation of a new rendering window; or, If the hardware computing resource information is second hardware computing resource information obtained by real-time detection of the device, it is determined according to the rendering resource allocation information whether the available hardware computing resources indicated by the second hardware computing resource information meet the rendering window resource occupation threshold; if so, it is determined to allow the creation of a new rendering window.
5. The method according to claim 1, wherein the method further comprises: If there is an existing rendering window, a rendering window for rendering the to-be-rendered page is determined from the existing rendering windows.
6. The method according to claim 1, wherein: The method further comprises: If the rendering of the to-be-rendered page is completed using the second rendering window, the rendering resource allocation information is updated using the rendering resource test information.
7. The method according to any one of claims 1 to 6, wherein: The application includes an applet that runs in a carrier application.
8. The method according to claim 1, wherein: Before allocating a rendering window for the page to be rendered requested by the page rendering request according to the hardware computing resource information and the preset rendering resource allocation information, the method further includes: Acquire program type information of the application, wherein the program type information includes at least one of the following: a shopping application, a music playing application, a video playing application, and an e-book application; Determine rendering resource allocation information matching the program type information from a plurality of preset rendering resource allocation information.
9. A rendering device, comprising: An acquisition module, used to acquire hardware computing resource information of a device where the application is located according to a received page rendering request of the application; an allocation module, configured to allocate a rendering window for the page to be rendered requested by the page rendering request according to the hardware computing resource information and preset rendering resource allocation information, wherein the rendering resource allocation information is used to indicate whether to use an existing rendering window of the application program to render the page to be rendered; The allocating a rendering window for the page to be rendered requested by the page rendering request according to the hardware computing resource information and the preset rendering resource allocation information includes: determining whether to allow the creation of a new rendering window according to the hardware computing resource information and the rendering resource allocation information; if the creation of a new rendering window is not allowed, determining whether there is an existing rendering window corresponding to the application; if there is no existing rendering window, adjusting the rendering resource allocation information to obtain rendering resource test information; creating a second rendering window corresponding to the application according to the rendering resource test information, and allocating the second rendering window to the page to be rendered; A rendering module is used to render the page to be rendered using the allocated rendering window.
10. An electronic device comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the rendering method according to any one of claims 1 to 8.
11. A computer storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the rendering method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Browser page loading method and device
CN102880616A
Graph rendering method and device, electronic equipment and storage medium
CN110516179A