Data processing method, device, computer equipment and storage medium

By dynamically adjusting the hierarchical tree node labels and rendering order of logical tree nodes in 2D GPU rasterized real-time rendering, the problem of low efficiency of a single Draw Call and poor flexibility of layer group planning is solved, achieving an efficient rendering process and minimization renew.

CN112685110BActive Publication Date: 2024-09-06GUANGDONG SANWEIJIA INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011556305.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-23
Publication Date
2024-09-06
Estimated Expiration
2040-12-23

AI Technical Summary

Technical Problem

In the existing technology, in 2D GPU rasterized real-time rendering, the efficiency of a single Draw Call is low, and the flexibility of layer group planning and rendering order is poor, resulting in high application threshold and inflexibility.

Method used

By using the logical tree node of the received modification instruction as the modification node, carrying the hierarchical tree node label, adding it to the tag list, obtaining the target rendering object and performing batch rendering, the rendering order and hierarchical structure are dynamically adjusted, only for modifications. nodes for batch rendering.

Benefits of technology

It improves the flexibility and efficiency of the rendering process, reduces the number of interactions between the GPU and CPU, and minimizes updates for batch rendering.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112685110B
    Figure CN112685110B
Patent Text Reader

Abstract

The present application relates to a data processing method, device, computer equipment and storage medium. The method includes: treating the logic tree node that receives the modification instruction as the modification node, each modification node carries a corresponding hierarchical tree node tag, and the modification instruction is used to modify the rendering attribute of the logic tree node; adding the hierarchical tree node tag corresponding to each modification node to a tag list; obtaining the target rendering object according to the tag list; and batch rendering the target rendering object. Based on the above method, only the rendering content corresponding to the modified hierarchical tree node tag is batch rendered, without the need to batch render all the logic nodes, and the rendering order can be adjusted in real time according to the modification instruction, which improves the flexibility of hierarchical adjustment during application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a data processing method, apparatus, computer device and storage medium. Background Art

[0002] In 2D GPU (Graphics Processing Unit) rasterization real-time rendering, the most important factor affecting efficiency is that a single DC (Draw Call, which means each time the CPU prepares data and notifies the GPU is called a Draw Call) is small and numerous, and optimization is done through batching. Batching is to batch the UI (User Interface) that meets the batch rendering conditions through vertices and textures, so that the effect of drawing these UIs can be achieved with one DC.

[0003] The most common implementation scheme at present is to plan and set up several layer groups in advance, and then assign the UI setting layer group ID to each layer group. When a certain layer changes, the UI under that layer is batched, and other layers reuse the previous batch results. However, this technical scheme must plan each layer group, and must determine the rendering order of each layer group and the rendering order of each UI element in each layer group to ensure the final rendering is correct. They cannot be nested with each other. The application threshold is a bit high and the flexibility is not good. Summary of the invention

[0004] In order to solve the above technical problems, the present application provides a data processing method, apparatus, computer device and storage medium.

[0005] In a first aspect, the present application provides a data processing method, comprising:

[0006] The logic tree node receiving the modification instruction is used as a modification node, each modification node carries a corresponding hierarchical tree node label, and the modification instruction is used to modify the rendering attribute of the logic tree node;

[0007] Adding the hierarchical tree node labels corresponding to each of the modification nodes to a tag list;

[0008] Obtain a target rendering object according to the tag list;

[0009] Batch rendering is performed on the target rendering object.

[0010] Optionally, acquiring a target rendering object according to the tag list includes:

[0011] The rendering content corresponding to each hierarchical tree node tag in the mark list is used as a target rendering object, and the rendering content corresponding to each hierarchical tree node tag includes a parent logic tree node content, a child logic tree node content and a rendering order.

[0012] Optionally, before taking the logic tree node that has received the modification instruction as the modification node, the method further includes:

[0013] Setting the hierarchical attributes corresponding to each of the logic tree nodes according to a preset hierarchical condition;

[0014] According to the hierarchical attributes of each of the logic tree nodes, a hierarchical tree node corresponding to each of the logic tree nodes is created, and the hierarchical tree node carries a corresponding hierarchical tree node label.

[0015] Optionally, after creating the hierarchical tree nodes corresponding to the respective logical tree nodes according to the hierarchical attributes of the respective logical tree nodes, the method further comprises:

[0016] If the current logic tree node receives a change instruction, the hierarchical attribute of the current logic tree node is changed according to the change instruction to obtain the changed hierarchical attribute;

[0017] The hierarchical tree node label corresponding to the current logical tree node is updated according to the changed hierarchical attribute.

[0018] Optionally, the change instruction includes a split instruction, and changing the hierarchical attribute of the current logic tree node according to the change instruction to obtain the changed hierarchical attribute includes:

[0019] Modify the hierarchical attribute of the current logic tree node according to the split instruction to obtain a first hierarchical attribute containing a hierarchical flag;

[0020] The updating of the hierarchical tree node label corresponding to the current logical tree node according to the changed hierarchical attribute includes:

[0021] Creating a first hierarchical tree node corresponding to the current logical tree node according to the first hierarchical attribute, wherein the first hierarchical tree node carries a corresponding first hierarchical tree node label;

[0022] The hierarchical tree node label corresponding to the current logical tree node is updated according to the first hierarchical tree node label.

[0023] Optionally, the modification instruction includes a merge instruction, and modifying the hierarchical attribute of the current logic tree node according to the modification instruction to obtain the modified hierarchical attribute includes:

[0024] Modify the hierarchical attribute of the current logic tree node according to the merge instruction to obtain a second hierarchical attribute containing a hierarchical prohibition flag;

[0025] The updating of the hierarchical tree node label corresponding to the current logical tree node according to the changed hierarchical attribute includes:

[0026] Deleting the hierarchical tree node corresponding to the current logical tree node according to the second hierarchical attribute;

[0027] Obtaining an upper level hierarchical tree node of the current logical tree node, wherein the upper level hierarchical tree node carries a corresponding upper level hierarchical tree node label;

[0028] The hierarchical tree node label of the current logical tree node is updated according to the upper hierarchical tree node label.

[0029] Optionally, the batch rendering of the target rendering objects includes:

[0030] Determining a hierarchical rendering order according to the hierarchical tree node labels in the tag list;

[0031] The target rendering objects are batch rendered according to the hierarchical rendering order.

[0032] In a second aspect, the present application provides a data processing device, comprising:

[0033] A modification node determination module, used to take the logic tree node that receives the modification instruction as a modification node, each modification node carries a corresponding hierarchical tree node label, and the modification instruction is used to modify the rendering attribute of the logic tree node;

[0034] A node adding module, used for adding the hierarchical tree node labels corresponding to each of the modification nodes to a tag list;

[0035] A target object acquisition module, used for acquiring a target rendering object according to the tag list;

[0036] A rendering module is used to perform batch rendering on the target rendering object.

[0037] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:

[0038] The logic tree node receiving the modification instruction is used as a modification node, each modification node carries a corresponding hierarchical tree node label, and the modification instruction is used to modify the rendering attribute of the logic tree node;

[0039] Adding the hierarchical tree node labels corresponding to each of the modification nodes to a tag list;

[0040] Obtain a target rendering object according to the tag list;

[0041] Batch rendering is performed on the target rendering object.

[0042] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0043] The logic tree node receiving the modification instruction is used as a modification node, each modification node carries a corresponding hierarchical tree node label, and the modification instruction is used to modify the rendering attribute of the logic tree node;

[0044] Adding the hierarchical tree node labels corresponding to each of the modification nodes to a tag list;

[0045] Obtain a target rendering object according to the tag list;

[0046] Batch rendering is performed on the target rendering object.

[0047] The above-mentioned data processing method, device, computer equipment and storage medium, the method includes: taking the logic tree node that receives the modification instruction as the modification node, each modification node carries the corresponding hierarchical tree node label, and the modification instruction is used to modify the rendering attribute of the logic tree node; adding the hierarchical tree node label corresponding to each modification node to the tag list; obtaining the target rendering object according to the tag list; and batch rendering the target rendering object. Based on the above method, only the rendering content corresponding to the modified hierarchical tree node label is batch rendered, without the need to batch render all the logic nodes, and the rendering order can be adjusted in real time according to the modification instruction, which improves the flexibility of hierarchical adjustment during application. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0049] 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0050] Figure 1 An application environment diagram of a data processing method in an embodiment;

[0051] Figure 2 is a flow chart of a data processing method in one embodiment;

[0052] Figure 3 A schematic diagram of the comparison relationship between the rendering logic tree and the hierarchical tree nodes in one embodiment;

[0053] Figure 4 is a structural block diagram of a data processing device in one embodiment;

[0054] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution 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 part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0056] Figure 1 FIG. 1 is an application environment diagram of a data processing method in an embodiment. Figure 1 , the data processing method is applied to a data processing system. The data processing system includes a terminal 110 and a server 120. The terminal 110 and the server 120 are connected via a network. The terminal 110 can be a desktop terminal or a mobile terminal, and the mobile terminal can be at least one of a mobile phone, a tablet computer, a laptop computer, etc. The server 120 can be implemented by an independent server or a server cluster composed of multiple servers.

[0057] In one embodiment, Figure 2 is a flow chart of a data processing method in one embodiment, referring to Figure 2 , provides a data processing method. This embodiment mainly applies this method to the above Figure 1 Taking the terminal 110 (or server 120) in FIG. 1 as an example, the data processing method specifically includes the following steps:

[0058] Step S210: The logic tree node that receives the modification instruction is used as a modification node, each modification node carries a corresponding hierarchical tree node label, and the modification instruction is used to modify the rendering attribute of the logic tree node.

[0059] Specifically, the logic tree node is any node forming the rendering logic tree, the rendering logic tree is formed by each rendering object distributed according to the rendering order, the logic tree nodes in the rendering logic tree can be nested with each other, the logic tree nodes in the rendering logic tree carry hierarchical tree node labels, the modification instruction is an instruction for modifying the rendering attributes of each logic node in a frame interface, the rendering attributes include position parameters, shape parameters, color parameters, text parameters, function parameters, etc., and receiving the modification instruction means that the user has modified the screen parameters or function parameters in the graphical interface. The logic tree node that receives the modification instruction is marked dirty to obtain the modified node.

[0060] For example, refer to Figure 3 The left side is a schematic diagram of a rendering logic tree, and the right side is a hierarchical node tree corresponding to the rendering logic tree, where each rectangular box is a logic tree node, node A is the logic tree root node of the rendering logic tree, node B is the child logic tree node under node A, and hierarchical tree nodes are created at nodes A, B, and C. The hierarchical tree nodes carry corresponding hierarchical tree node labels, the hierarchical tree node label corresponding to node A is 0, the hierarchical tree node label corresponding to node B is 1, and the hierarchical tree node label corresponding to node C is 2. Therefore, the hierarchical tree node label of node A and the logic tree node under node A is 0, but a hierarchical tree node is created at node B, so the hierarchical tree node label of node B and the logic tree node under node B is 1, and a hierarchical tree node is created at node C, so the hierarchical tree node label of node C and the logic tree node under node C is 2. If no hierarchical tree node is created at node C, the hierarchical tree node label of node C and the logic tree node under node C is the hierarchical tree node label of node A.

[0061] Step S220: adding the hierarchical tree node labels corresponding to the modified nodes to the mark list.

[0062] Specifically, the hierarchical tree node labels corresponding to all the modified nodes marked dirty in a frame interface are added to the mark list for aggregation, that is, only the hierarchical node IDs corresponding to the modified nodes are added to the mark list.

[0063] Step S230: acquiring a target rendering object according to the tag list.

[0064] Specifically, according to the hierarchical node IDs in the mark list, the renderable objects of the logic tree nodes corresponding to the respective hierarchical node IDs are obtained, and all the obtained renderable objects are used as target rendering objects.

[0065] Step S240: batch rendering is performed on the target rendering objects.

[0066] Specifically, batch rendering is performed uniformly on the target rendering objects within a frame interface, reducing the number of interactions between the GPU and CPU during the rendering process. Batch rendering is only performed again for the modified nodes, without the need to batch render all the logic tree nodes, thus achieving minimized updates of batch rendering.

[0067] In one embodiment, the rendering content corresponding to each hierarchical tree node tag in the mark list is used as the target rendering object, and the rendering content corresponding to each hierarchical tree node tag includes the parent logic tree node content, the child logic tree node content and the node rendering order.

[0068] Specifically, the rendering content corresponding to each hierarchical tree node label in the mark list includes the renderable objects within the logical tree node corresponding to the hierarchical tree node label, and the logical tree node corresponding to the hierarchical tree node label includes a parent logical tree node and a child logical tree node. The parent logical tree node is the current logical tree node for creating the hierarchical tree node, and the child logical tree node is any logical tree node located under the parent logical tree node.

[0069] For example, the logic tree node corresponding to the hierarchical node ID 1 includes the parent logic tree node B and the child logic tree node under the B node. The rendering content includes the renderable objects in the B node and the renderable objects in the child logic tree nodes under the B node, and also includes the node rendering order between each child logic tree node.

[0070] In one embodiment, before the logic tree node that receives the modification instruction is used as the modification node, the hierarchical attributes corresponding to each of the logic tree nodes are set according to preset hierarchical conditions; according to the hierarchical attributes of each of the logic tree nodes, hierarchical tree nodes corresponding to each of the logic tree nodes are created, and the hierarchical tree nodes carry corresponding hierarchical tree node labels.

[0071] Specifically, a plurality of logic tree nodes are divided into layer groups according to preset hierarchical conditions, each hierarchical tree node corresponds to a hierarchical tree node label, that is, corresponds to a hierarchical node ID, and a hierarchical tree node corresponds to one or more logic tree nodes. The hierarchical tree nodes are divided according to the depth area of ​​the UI interface, such as the main panel and the pop-up layer, or according to the functional modules, such as the left directory bar and the canvas area. The hierarchical attributes of each logic tree node are set according to the hierarchical node ID after the division. For example, the hierarchical attribute of node A is set to the hierarchical flag true, and a hierarchical tree node is created according to node A, and the hierarchical tree node label corresponding to the hierarchical tree node is 0.

[0072] In one embodiment, if the current logic tree node receives a change instruction, the hierarchical attribute of the current logic tree node is changed according to the change instruction to obtain the changed hierarchical attribute; and the hierarchical tree node label corresponding to the current logic tree node is updated according to the changed hierarchical attribute.

[0073] Specifically, the change instruction is used to change the hierarchical attribute of the current logical tree node, that is, to change the hierarchical attribute of the current logical tree node from the hierarchical flag true to the hierarchical prohibition flag false, or from the hierarchical prohibition flag false to the hierarchical flag true. After the hierarchical attribute is changed, the corresponding hierarchical tree node will also change. The hierarchical tree node label corresponding to the current logical tree node is updated according to the change of the hierarchical tree node.

[0074] For example, node B is the current logical tree node, and the change instruction modifies the hierarchical attribute of node B from the hierarchical flag true to the hierarchical prohibition flag false, then the hierarchical tree node of node B becomes the hierarchical tree node corresponding to node A, thereby updating the hierarchical tree node label of node B according to the hierarchical tree node label of node A.

[0075] In one embodiment, the change instruction includes a split instruction, and the hierarchical attribute of the current logical tree node is changed according to the split instruction to obtain a first hierarchical attribute containing a hierarchical flag; a first hierarchical tree node corresponding to the current logical tree node is created according to the first hierarchical attribute, and the first hierarchical tree node carries a corresponding first hierarchical tree node label; and the hierarchical tree node label corresponding to the current logical tree node is updated according to the first hierarchical tree node label.

[0076] Specifically, the split instruction is used to modify the hierarchical attribute of the current logical tree node from the hierarchical prohibition flag false to the hierarchical flag true, obtain the modified first hierarchical attribute, and based on the first hierarchical attribute, create a first hierarchical tree node according to the current logical tree node and the logical tree nodes under the current logical tree node, and use the first hierarchical tree node label corresponding to the first hierarchical tree node to update the hierarchical tree node label corresponding to the current logical tree node and the sub-logical tree nodes under the current logical tree node.

[0077] For example, if the hierarchical attribute of node B is false and is changed to true according to the change instruction, a first hierarchical tree node is created according to node B and the sub-logical tree node under node B. The first hierarchical tree node extracts node B and the sub-logical tree node under node B from the hierarchical tree node corresponding to node A, and uses the first hierarchical tree node label corresponding to the first hierarchical tree node as the hierarchical tree node label corresponding to node B and the sub-logical tree node under node B. In this way, flexible dynamic stratification is achieved in real time according to the hierarchical attributes of the logical tree nodes.

[0078] In one embodiment, the change instruction includes a merge instruction, which changes the hierarchical attribute of the current logical tree node according to the merge instruction to obtain a second hierarchical attribute containing a prohibited hierarchical flag; deletes the hierarchical tree node corresponding to the current logical tree node according to the second hierarchical attribute; obtains the parent hierarchical tree node of the current logical tree node, the parent hierarchical tree node carries the corresponding parent hierarchical tree node label; and updates the hierarchical tree node label of the current logical tree node according to the parent hierarchical tree node label.

[0079] Specifically, the merge instruction is used to change the hierarchical attribute from the hierarchical flag true to the hierarchical prohibition flag false, delete the hierarchical tree node corresponding to the current logical tree node according to the merge instruction, obtain the upper hierarchical tree node that is above the current logical tree node and the closest to it, merge the current logical tree node and the sub-logical tree nodes under the current logical tree node into the upper hierarchical tree node, that is, update the hierarchical tree node labels of the current logical tree node and the sub-logical tree nodes under the current logical tree node according to the upper hierarchical tree node label of the upper hierarchical tree node.

[0080] For example, according to the change instruction, the hierarchical attribute of node B is changed from the hierarchical flag true to the hierarchical prohibition flag false, the hierarchical tree node corresponding to node B is deleted, node B and all sub-logical tree nodes under node B are merged into the upper hierarchical tree node corresponding to node A, and the hierarchical tree node label of node B and all sub-logical tree nodes under node B is updated to the upper hierarchical tree node label, that is, the hierarchical tree node label of node B and all sub-logical tree nodes under node B is updated to 0.

[0081] In one embodiment, a hierarchical rendering order is determined according to each hierarchical tree node label in the mark list; and the target rendering objects are batch rendered according to the hierarchical rendering order.

[0082] Specifically, the hierarchical tree node labels in the mark list determine the hierarchical rendering order according to the distribution level in the rendering logic tree. For example, the hierarchical tree node label corresponding to node A is 0, the hierarchical tree node label corresponding to node B is 1, and the hierarchical tree node label corresponding to node C is 2. The three hierarchical tree nodes divide the entire rendering logic tree into three levels. According to the distribution level of node A, node B, and node C in the rendering logic tree, if the three hierarchical tree nodes are all modified and added to the mark list, that is, the rendering level of node A is higher than that of node B, and the rendering level of node B is higher than that of node C, the hierarchical rendering order is determined, that is, the first part of the hierarchical node label 0 is rendered first, that is, Figure 3In batches1, the first part of the layer node label 0 is the rendering content of node A; secondly, the rendering content of the layer node label 1 is rendered, that is, the rendering content of node B and the rendering content of the child logic tree nodes under node B; thirdly, the second part of the layer node label 0 is rendered, that is, Figure 3 In batches2, the logic tree node corresponding to the second part with the hierarchical node label of 0 is a sibling node of node B in the rendering logic tree, that is, a logic tree node belonging to the same logic layer as node B; fourth, render the rendering content of the hierarchical node 2, that is, render the rendering content of node C and the rendering content of the child logic tree nodes under node C; finally, render the third part with the hierarchical node label of 0, that is Figure 3 In batches3, the logic tree nodes corresponding to the third part with the hierarchical node label of 0 are sibling nodes of the C node in the rendering logic tree, or are child logic tree nodes with a distribution level below the C node and a hierarchical tree node label of 0 in the rendering logic tree. The hierarchical rendering order is obtained according to the hierarchical distribution of the rendering logic tree, and the target rendering objects are batched and rendered according to the hierarchical rendering order.

[0083] At runtime, according to the hierarchical properties of each logic tree node in the rendering logic tree, the corresponding hierarchical tree nodes are added or deleted in the hierarchical node tree, and the hierarchical adjustment of any logic tree node is carried out in real time and dynamically to achieve dynamic stratification or cancellation of stratification. The stratification can be flexible and unlimited. When the rendering properties of the logic tree node change, it is only necessary to determine the hierarchical tree node corresponding to the logic tree node, and batch render the rendering contents of all the logic tree nodes under the hierarchical tree node to achieve minimized updates.

[0084] Figure 2 FIG. 1 is a flow chart of a data processing method in one embodiment. It should be understood that although Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0085] In one embodiment, Figure 4 As shown, a data processing device is provided, comprising:

[0086] A modification node determination module 310, configured to use the logic tree node that receives the modification instruction as a modification node, each modification node carries a corresponding hierarchical tree node label, and the modification instruction is used to modify the rendering attribute of the logic tree node;

[0087] A node adding module 320, used for adding the hierarchical tree node label corresponding to each of the modification nodes to the tag list;

[0088] A target object acquisition module 330, configured to acquire a target rendering object according to the tag list;

[0089] The rendering module 340 is used to perform batch rendering on the target rendering object.

[0090] In one embodiment, the target object acquisition module 330 includes:

[0091] The target object acquisition unit is used to use the rendering content corresponding to each hierarchical tree node label in the mark list as the target rendering object. The rendering content corresponding to each hierarchical tree node label includes the parent logic tree node content, the child logic tree node content and the node rendering order.

[0092] In one embodiment, the apparatus further comprises:

[0093] An attribute setting module, used to set the hierarchical attributes corresponding to each of the logic tree nodes according to a preset hierarchical condition;

[0094] The hierarchical adjustment module is used to create hierarchical tree nodes corresponding to each of the logical tree nodes according to the hierarchical attributes of each of the logical tree nodes, and the hierarchical tree nodes carry corresponding hierarchical tree node labels.

[0095] In one embodiment, the apparatus further comprises:

[0096] An attribute changing module, used for changing the hierarchical attribute of the current logic tree node according to the change instruction to obtain the changed hierarchical attribute if the current logic tree node receives the change instruction;

[0097] The label updating module is used to update the hierarchical tree node label corresponding to the current logical tree node according to the changed hierarchical attribute.

[0098] In one embodiment, the change instruction includes a split instruction, and the attribute change module includes:

[0099] A first changing unit, used for changing the hierarchical attribute of the current logic tree node according to the split instruction to obtain a first hierarchical attribute containing a hierarchical flag;

[0100] The label updating module comprises:

[0101] A hierarchical unit, configured to create a first hierarchical tree node corresponding to the current logical tree node according to the first hierarchical attribute, wherein the first hierarchical tree node carries a corresponding first hierarchical tree node label;

[0102] The first updating unit is used to update the hierarchical tree node label corresponding to the current logical tree node according to the first hierarchical tree node label.

[0103] In one embodiment, the change instruction includes a merge instruction, and the attribute change module includes:

[0104] A second changing unit, configured to change the hierarchical attribute of the current logic tree node according to the merge instruction, to obtain a second hierarchical attribute containing a hierarchical prohibition flag;

[0105] The label updating module comprises:

[0106] a deleting unit, configured to delete the hierarchical tree node corresponding to the current logical tree node according to the second hierarchical attribute;

[0107] An upper-level node acquisition unit, used to acquire an upper-level hierarchical tree node of the current logical tree node, wherein the upper-level hierarchical tree node carries a corresponding upper-level hierarchical tree node label;

[0108] The second updating unit is used to update the hierarchical tree node label of the current logical tree node according to the upper hierarchical tree node label.

[0109] In one embodiment, the rendering module 340 includes:

[0110] A rendering order determination unit, used to determine a hierarchical rendering order according to each hierarchical tree node label in the mark list;

[0111] A rendering unit is used to batch render the target rendering objects according to the hierarchical rendering order.

[0112] Figure 5 The internal structure diagram of a computer device in one embodiment is shown. The computer device may specifically be Figure 1 The terminal 110 (or server 120) in FIG. Figure 5As shown, the computer device includes a processor, a memory, a network interface, an input device and a display screen connected through a system bus. Among them, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program, which, when executed by the processor, enables the processor to implement a data processing method. The internal memory may also store a computer program, which, when executed by the processor, enables the processor to execute a data processing method. The display screen of the computer device may be a liquid crystal display or an electronic ink display screen, and the input device of the computer device may be a touch layer covered on the display screen, or a button, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.

[0113] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0114] In one embodiment, the data processing device provided by the present application can be implemented in the form of a computer program. The computer program can be Figure 5 The computer device shown in the figure is run on the computer device. The memory of the computer device can store various program modules constituting the data processing device, such as: Figure 4 The modified node determination module 310, the node adding module 320, the target object acquisition module 330 and the rendering module 340 are shown. The computer program composed of various program modules enables the processor to execute the steps in the data processing method of each embodiment of the present application described in this specification.

[0115] Figure 5 The computer device shown can be Figure 4 The modification node determination module 310 in the data processing device shown in the figure executes to treat the logic tree node that receives the modification instruction as the modification node, each of the modification nodes carries a corresponding hierarchical tree node tag, and the modification instruction is used to modify the rendering attribute of the logic tree node. The computer device can add the hierarchical tree node tags corresponding to each of the modification nodes to the tag list through the node adding module 320. The computer device can obtain the target rendering object according to the tag list through the target object acquisition module 330. The computer device can perform batch rendering of the target rendering object through the rendering module 340.

[0116] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented: a logic tree node that receives a modification instruction is used as a modification node, each modification node carries a corresponding hierarchical tree node tag, and the modification instruction is used to modify the rendering properties of the logic tree node; the hierarchical tree node tags corresponding to each modification node are added to a tag list; a target rendering object is obtained according to the tag list; and the target rendering object is batch rendered.

[0117] In one embodiment, when the processor executes the computer program, the following steps are also implemented: the rendering content corresponding to each hierarchical tree node label in the mark list is used as the target rendering object, and the rendering content corresponding to each hierarchical tree node label includes the parent logic tree node content, the child logic tree node content and the node rendering order.

[0118] In one embodiment, when the processor executes the computer program, the following steps are also implemented: the hierarchical attributes corresponding to each of the logical tree nodes are set according to preset hierarchical conditions; and according to the hierarchical attributes of each of the logical tree nodes, a hierarchical tree node corresponding to each of the logical tree nodes is created, and the hierarchical tree node carries a corresponding hierarchical tree node label.

[0119] In one embodiment, when the processor executes the computer program, the following steps are also implemented: if the current logic tree node receives a change instruction, the hierarchical attribute of the current logic tree node is changed according to the change instruction to obtain the changed hierarchical attribute; and the hierarchical tree node label corresponding to the current logic tree node is updated according to the changed hierarchical attribute.

[0120] In one embodiment, when the processor executes the computer program, the following steps are also implemented: the hierarchical attribute of the current logical tree node is changed according to the split instruction to obtain a first hierarchical attribute containing a hierarchical flag; a first hierarchical tree node corresponding to the current logical tree node is created according to the first hierarchical attribute, and the first hierarchical tree node carries a corresponding first hierarchical tree node label; and the hierarchical tree node label corresponding to the current logical tree node is updated according to the first hierarchical tree node label.

[0121] In one embodiment, when the processor executes the computer program, the following steps are also implemented: the hierarchical attribute of the current logical tree node is changed according to the merge instruction to obtain a second hierarchical attribute containing a prohibited hierarchical flag; the hierarchical tree node corresponding to the current logical tree node is deleted according to the second hierarchical attribute; the parent hierarchical tree node of the current logical tree node is obtained, the parent hierarchical tree node carries the corresponding parent hierarchical tree node label; and the hierarchical tree node label of the current logical tree node is updated according to the parent hierarchical tree node label.

[0122] In one embodiment, when the processor executes the computer program, the following steps are also implemented: determining a hierarchical rendering order according to each hierarchical tree node label in the mark list; and batch rendering the target rendering objects according to the hierarchical rendering order.

[0123] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: a logic tree node that receives a modification instruction is used as a modification node, each modification node carries a corresponding hierarchical tree node tag, and the modification instruction is used to modify the rendering properties of the logic tree node; the hierarchical tree node tag corresponding to each modification node is added to a tag list; a target rendering object is obtained according to the tag list; and the target rendering object is batch rendered.

[0124] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: the rendering content corresponding to each hierarchical tree node label in the mark list is used as the target rendering object, and the rendering content corresponding to each hierarchical tree node label includes the parent logic tree node content, the child logic tree node content and the node rendering order.

[0125] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: the hierarchical attributes corresponding to each of the logical tree nodes are set according to preset hierarchical conditions; and the hierarchical tree nodes corresponding to each of the logical tree nodes are created according to the hierarchical attributes of each of the logical tree nodes, and the hierarchical tree nodes carry corresponding hierarchical tree node labels.

[0126] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: if the current logic tree node receives a change instruction, the hierarchical attributes of the current logic tree node are changed according to the change instruction to obtain the changed hierarchical attributes; and the hierarchical tree node label corresponding to the current logic tree node is updated according to the changed hierarchical attributes.

[0127] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: the hierarchical attribute of the current logical tree node is changed according to the split instruction to obtain a first hierarchical attribute containing a hierarchical flag; a first hierarchical tree node corresponding to the current logical tree node is created according to the first hierarchical attribute, and the first hierarchical tree node carries a corresponding first hierarchical tree node label; and the hierarchical tree node label corresponding to the current logical tree node is updated according to the first hierarchical tree node label.

[0128] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: the hierarchical attribute of the current logical tree node is changed according to the merge instruction to obtain a second hierarchical attribute containing a prohibited hierarchical flag; the hierarchical tree node corresponding to the current logical tree node is deleted according to the second hierarchical attribute; the parent hierarchical tree node of the current logical tree node is obtained, the parent hierarchical tree node carries the corresponding parent hierarchical tree node label; and the hierarchical tree node label of the current logical tree node is updated according to the parent hierarchical tree node label.

[0129] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: determining a hierarchical rendering order according to each hierarchical tree node label in the mark list; and batch rendering the target rendering objects according to the hierarchical rendering order.

[0130] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0131] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0132] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A data processing method, characterized in that: The method comprises: The logic tree is formed by distributing each rendering object according to the rendering order, and the logic tree node is any node forming the logic tree; Divide multiple logic tree nodes into layer groups according to preset layer conditions, and the logic tree nodes in each layer group correspond to the same layer node ID, that is, the layer tree node label; each layer tree node corresponds to a layer tree node label, and each layer tree node corresponds to one or more logic tree nodes; The logic tree node receiving the modification instruction is used as a modification node, each modification node carries a corresponding hierarchical tree node label, and the modification instruction is used to modify the rendering attributes of the logic tree node; wherein the rendering attributes include position parameters, shape parameters, color parameters, text parameters, and function parameters; Adding the hierarchical tree node labels corresponding to each of the modification nodes to a tag list; The rendering content corresponding to each hierarchical tree node label in the mark list is used as the target rendering object, wherein the rendering content corresponding to each hierarchical tree node label includes the parent logic tree node content, the child logic tree node content and the node rendering order; the node rendering order is the hierarchical rendering order of the logic tree; Determine the hierarchical rendering order of each hierarchical tree node label in the logical tree according to each hierarchical tree node label in the mark list; The target rendering objects are batch rendered according to the hierarchical rendering order.

2. The method according to claim 1, characterized in that Before using the logic tree node that has received the modification instruction as the modification node, the method further includes: Setting the hierarchical attributes corresponding to each of the logic tree nodes according to a preset hierarchical condition; According to the hierarchical attributes of each of the logic tree nodes, a hierarchical tree node corresponding to each of the logic tree nodes is created, and the hierarchical tree node carries a corresponding hierarchical tree node label; The layering attributes include a layering flag of true and a layering prohibition flag of false.

3. The method according to claim 2, characterized in that After creating hierarchical tree nodes corresponding to each of the logical tree nodes according to the hierarchical attributes of each of the logical tree nodes, the method further includes: If the current logic tree node receives a change instruction, the hierarchical attribute of the current logic tree node is changed according to the change instruction to obtain the changed hierarchical attribute; The hierarchical tree node label corresponding to the current logical tree node is updated according to the changed hierarchical attribute.

4. The method according to claim 3, characterized in that The change instruction includes a split instruction, and changing the hierarchical attribute of the current logic tree node according to the change instruction to obtain the changed hierarchical attribute includes: Modify the hierarchical attribute of the current logic tree node according to the split instruction to obtain a first hierarchical attribute containing a hierarchical flag; The updating of the hierarchical tree node label corresponding to the current logical tree node according to the changed hierarchical attribute includes: Creating a first hierarchical tree node corresponding to the current logical tree node according to the first hierarchical attribute, wherein the first hierarchical tree node carries a corresponding first hierarchical tree node label; The hierarchical tree node label corresponding to the current logical tree node is updated according to the first hierarchical tree node label.

5. The method according to claim 3, characterized in that: The modification instruction includes a merge instruction, and the step of modifying the hierarchical attribute of the current logic tree node according to the modification instruction to obtain the modified hierarchical attribute includes: Modify the hierarchical attribute of the current logic tree node according to the merge instruction to obtain a second hierarchical attribute containing a hierarchical prohibition flag; The updating of the hierarchical tree node label corresponding to the current logical tree node according to the changed hierarchical attribute includes: Deleting the hierarchical tree node corresponding to the current logical tree node according to the second hierarchical attribute; Obtaining an upper level hierarchical tree node of the current logical tree node, wherein the upper level hierarchical tree node carries a corresponding upper level hierarchical tree node label; The hierarchical tree node label of the current logical tree node is updated according to the upper hierarchical tree node label.

6. A data processing device, characterized in that: The device comprises: A modification node determination module, used to use the logic tree node that receives the modification instruction as the modification node, each modification node carries a corresponding hierarchical tree node label, and the modification instruction is used to modify the rendering attributes of the logic tree node; wherein the rendering attributes include position parameters, shape parameters, color parameters, text parameters, and function parameters; wherein the logic tree is formed by each rendering object distributed in a rendering order, and the logic tree node is any node forming the logic tree; Divide multiple logic tree nodes into layer groups according to preset layer conditions, and the logic tree nodes in each layer group correspond to the same layer node ID, that is, the layer tree node label; each layer tree node corresponds to a layer tree node label, and each layer tree node corresponds to one or more logic tree nodes; A node adding module, used for adding the hierarchical tree node labels corresponding to each of the modification nodes to a tag list; A target object acquisition module, used to use the rendering content corresponding to each hierarchical tree node label in the mark list as the target rendering object, wherein the rendering content corresponding to each hierarchical tree node label includes the parent logic tree node content, the child logic tree node content and the node rendering order; the node rendering order is the hierarchical rendering order of the logic tree; The rendering module is used to determine the hierarchical rendering order of each hierarchical tree node label in the logic tree according to each hierarchical tree node label in the mark list; and batch render the target rendering object according to the hierarchical rendering order.

7. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.