Data updating method and device, electronic equipment and storage medium

By introducing detection marks in mini-game development tools, data change detection is performed only on nodes and attributes that need to be detected, the problem of excessive memory usage and poor fluency caused by the Vue framework when detecting large amounts of data is solved, and the memory is achieved lower Occupancy and higher fluency.

CN119493557APending Publication Date: 2025-02-21TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311057222.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-21
Publication Date
2025-02-21

AI Technical Summary

Technical Problem

In mini-game development tools, the Vue framework needs to detect changes in a large number of game objects and attributes, resulting in excessive memory usage and poor fluency of the editing interface.

Method used

By introducing detection marks, only data change detection is performed on nodes and attributes associated with detection marks, pruning reduces the amount of detection data, and optimizing data update methods.

Benefits of technology

It reduces the memory usage of application development tools, improves the fluency of the editing interface, and avoids the risk of tool crashes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119493557A_ABST
    Figure CN119493557A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data updating method and device, electronic equipment and a storage medium, the method relates to the technical field of data processing in the technical field of computers, and the method comprises the steps that a scene node tree of an application program is acquired; based on whether a current node in the scene node tree is associated with a detection mark or not or based on whether an attribute associated with the current node is associated with the detection mark or not, determining a target attribute needing to be subjected to data change detection; detecting whether the data of the target attribute is changed or not; and under the condition that the data of the target attribute is changed, acquiring the changed data of the target attribute, and updating the view and the data displayed in the editing page based on the changed data of the target attribute. According to the method, memory occupation of an application development tool can be reduced, and the fluency of an editing interface is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the field of data processing technology in the field of computer technology, and more specifically, to a data updating method, device, electronic device, and storage medium. Background Art

[0002] The job of the mini-game developer tool (tool) is to edit and preview the mini-game that the developer is making. During this process, the attributes of the game need to be displayed in real time on the tool's editing and decoding interface for the developer to view and modify.

[0003] Typically, the front end of the tool can use Vue as the framework of the view layer. Vue can use objects in the game scene as Vue models to detect changes in game data. For example, when any data of an object in the game changes, Vue will promptly update the view and data displayed in the editing page so that the developer can modify the changed data.

[0004] Specifically, Vue can use objects in the game scene as Vue models to detect changes in game data. For example, when any data of an object in the game changes, Vue will promptly update the view and update the data displayed on the edit page to the changed data in real time, so that the developer can modify the changed data.

[0005] However, since there are too many objects in the game scene that can be used as Vue models to detect, and when Vue is used as the framework of the view layer, Vue needs to automatically collect data from all objects, that is, Vue needs to detect changes in each object. When a large game scene appears, there may be tens of thousands of game objects, hundreds of thousands of game components, and millions or even tens of millions of game attribute values. Vue detecting such a huge amount of data will not only greatly increase the tool's memory, but also cause serious jams when updating data, and may even crash the tool due to excessive memory, which will lead to poor fluency of the editing interface. Summary of the invention

[0006] The embodiments of the present application provide a data updating method, device, electronic device and storage medium, which can reduce the memory usage of application development tools and improve the fluency of the editing interface.

[0007] In a first aspect, an embodiment of the present application provides a data updating method, comprising:

[0008] Get the scene node tree of the application;

[0009] The root node of the scene node tree is a scene node, the nodes other than the root node in the scene node tree are entities obtained by instantiating the scene resources of the application, and the nodes other than the root node in the scene node tree are associated with one or more attributes;

[0010] Determine a target attribute that needs to be detected for data changes based on whether a current node in the scene node tree is associated with a detection tag or based on whether an attribute associated with the current node is associated with the detection tag;

[0011] Check whether the data of the target attribute has changed;

[0012] When the data of the target attribute changes, the changed data of the target attribute is acquired, and the view and data displayed in the editing page are updated based on the changed data of the target attribute.

[0013] In a second aspect, an embodiment of the present application provides a data updating method, including:

[0014] Get the scene node tree of the application;

[0015] The root node of the scene node tree is a scene node, the nodes other than the root node in the scene node tree are entities obtained by instantiating the scene resources of the application, and the nodes other than the root node in the scene node tree are associated with one or more attributes;

[0016] Determine a target attribute that needs to be detected for data changes based on whether a current node in the scene node tree is associated with a detection tag or based on whether an attribute associated with the current node is associated with the detection tag;

[0017] During the running of the application, when the data of the target attribute changes, the changed data of the target attribute is obtained and sent.

[0018] In a third aspect, an embodiment of the present application provides a data updating device, including:

[0019] The acquisition unit is used to obtain the scene node tree of the application;

[0020] The root node of the scene node tree is a scene node, the nodes other than the root node in the scene node tree are entities obtained by instantiating the scene resources of the application, and the nodes other than the root node in the scene node tree are associated with one or more attributes;

[0021] A determination unit, used for determining a target attribute that needs to be detected for data changes based on whether a current node in the scene node tree is associated with a detection tag or based on whether an attribute associated with the current node is associated with the detection tag;

[0022] A detection unit, used to detect whether the data of the target attribute has changed, and if so, to obtain the changed data of the target attribute;

[0023] The updating unit is used to obtain the changed data of the target attribute and update the view and data displayed in the editing page based on the changed data of the target attribute.

[0024] In a fourth aspect, an embodiment of the present application provides a data updating device, including:

[0025] The acquisition unit is used to obtain the scene node tree of the application;

[0026] The root node of the scene node tree is a scene node, the nodes other than the root node in the scene node tree are entities obtained by instantiating the scene resources of the application, and the nodes other than the root node in the scene node tree are associated with one or more attributes;

[0027] A determination unit, used for determining a target attribute that needs to be detected for data changes based on whether a current node in the scene node tree is associated with a detection tag or based on whether an attribute associated with the current node is associated with the detection tag;

[0028] The sending unit is used to obtain the changed data of the target attribute and send the changed data of the target attribute when the data of the target attribute changes during the running process of the application.

[0029] In a fifth aspect, an embodiment of the present application provides an electronic device, including:

[0030] a processor adapted to implement computer instructions; and,

[0031] A computer-readable storage medium stores computer instructions, wherein the computer instructions are suitable for being loaded by a processor and executing the method provided by the first aspect or the second aspect mentioned above.

[0032] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are read and executed by a processor of a computer device, the computer device executes the method provided in the first aspect or the second aspect involved above.

[0033] In a seventh aspect, an embodiment of the present application provides a computer program product or a computer program, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method provided in the first aspect or the second aspect mentioned above.

[0034] In an embodiment of the present application, by introducing a detection tag, and then based on whether the current node is associated with a detection tag or whether the associated attribute of the current node is associated with a detection tag, the target attribute that ultimately needs to be detected for data changes is determined, that is, the global data detection process is optimized to only detect the data of the target attribute, thereby greatly reducing the amount of data detected in a pruning manner, thereby reducing the memory usage of the application development tool and improving the fluency of the editing interface. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 This is an example of an application scenario provided by the embodiments of the present application.

[0036] Figure 2 It is a schematic diagram of the editing interface provided in the embodiment of the present application.

[0037] Figure 3 This is an example of the structure of the application development tool provided in the embodiments of the present application.

[0038] Figure 4 This is an example of the interaction process between the engine and the engine IDE in the application development tool provided in the embodiment of the present application.

[0039] Figure 5 It is a schematic flow chart of the data updating method provided in the embodiment of the present application.

[0040] Figure 6 It is a schematic flowchart of a method for determining target attributes provided in an embodiment of the present application.

[0041] Figure 7 It is another schematic flow chart of the data updating method provided in an embodiment of the present application.

[0042] Figure 8 This is another example of the interaction process between the engine and the engine IDE in the application development tool provided in the embodiment of the present application.

[0043] Fig. 9 It is a schematic block diagram of a data updating device provided in an embodiment of the present application.

[0044] Fig.10 It is another schematic block diagram of the data updating device provided in an embodiment of the present application.

[0045] Fig.11 It is a schematic block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments provided by this application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0047] To facilitate understanding of the technical solution provided by this application, the relevant terms are explained below.

[0048] Client: refers to the program that corresponds to the server and provides local services to customers. It is usually installed on ordinary user machines and needs to work with the server. After the development of the Internet, the more commonly used clients include web browsers used for the World Wide Web, email clients for sending and receiving emails, and client software for real-time communication.

[0049] Application development tools: used to help developers develop and debug applications conveniently and efficiently.

[0050] Mini games: Compared with the large stand-alone games and online games, mini games generally refer to all games with small size and simple gameplay. Usually, these games are mainly casual puzzle games, with stand-alone and web versions. Mini games also include stand-alone games, small game consoles, etc. Generally, games with a size of less than 10m are collectively referred to as mini games.

[0051] Integrated Development Environment (IDE): An application program that provides a program development environment, generally including tools such as code editors, compilers, debuggers, and graphical user interfaces. It is an integrated development software service suite that integrates code writing, analysis, compilation, and debugging functions. All software or software suites (groups) that have this feature can be called an integrated development environment.

[0052] Class: Used to describe a collection of objects with the same properties and methods.

[0053] Instantiation: refers to creating an instance of a class, that is, a specific object.

[0054] Object: A real entity.

[0055] Game resources: files used to store game information data, which can be instantiated as game instances at runtime. For example, scene resources can be instantiated as game scenes. Scene resources are files used to store game scene information data.

[0056] Vue: is a progressive framework for building user interfaces. Progressive means integrating functions gradually as needed. Vue has a responsive design. Developers only need to bind the view to the corresponding model, and Vue will automatically observe the changes in the model and redraw the view. This feature makes Vue's state management quite simple and intuitive.

[0057] It should be noted that the terms used in the implementation method section of this application are only used to explain the specific embodiments of this application and are not intended to limit this application.

[0058] For example, the term "and / or" in this article is only a way to describe the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The term "at least one" is only a way to describe the combination relationship of listed objects, indicating that one or more items may exist. For example, at least one of the following: A, B, C can mean the following combinations: A exists alone, B exists alone, C exists alone, A and B exist at the same time, A and C exist at the same time, B and C exist at the same time, and A, B, and C exist at the same time. The term "multiple" means two or more. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0059] For another example, the term "corresponding" may indicate that there is a direct or indirect correspondence between the two, or that there is an association relationship between the two, or that there is an indication and being indicated, configuration and being configured, etc. The term "indication" may be a direct indication, an indirect indication, or an indication of an association relationship. For example, A indicates B, which may indicate that A directly indicates B, such as B can be obtained through A; it may also indicate that A indirectly indicates B, such as A indicates C, B can be obtained through C; it may also indicate that there is an association relationship between A and B. The term "predefined" or "preconfigured" may refer to the pre-storage of corresponding codes, tables or other relevant information that can be used for indication in the device, or it may refer to an agreement by protocol. "Protocol" may refer to a standard protocol in this field. The term "when..." may be interpreted as "if" or "if" or "when..." or "in response to" and other similar descriptions. Similarly, depending on the context, the phrase "if determined" or "if (stated condition or event) is detected" may be interpreted as "when determined" or "in response to determining" or "when (stated condition or event) is detected" or "in response to detecting (stated condition or event)" and similar descriptions. The terms "first", "second", "third", "fourth", "Ath", "Bth", etc. are used to distinguish different objects rather than to describe a specific order. The terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. Among them, digital video compression technology mainly compresses huge digital image video data for easy transmission and storage.

[0060] The following describes the technical problems to be solved by the embodiments of the present application as well as the inventive concepts and application scenarios.

[0061] Figure 1 This is an example of an application scenario provided by the embodiments of the present application.

[0062] like Figure 1 As shown, the application scenario includes a terminal device, on which an application development tool may be installed, and the terminal device may be a desktop terminal or a mobile terminal, and the mobile terminal may specifically be at least one of a mobile phone, a tablet computer, a laptop computer, a vehicle-mounted terminal, etc. The application development tool may be used to help developers develop and debug applications conveniently and efficiently.

[0063] Figure 2 It is a schematic diagram of the editing interface provided in the embodiment of the present application.

[0064] like Figure 2As shown, the editing interface may include a display area A of a scene node tree, a display area B of files, a display area C of views, and a display area D of data. Specifically, the root node of the scene node tree is a scene node, and the nodes other than the root node in the scene node tree are entities obtained by instantiating the scene resources of the application, and the nodes other than the root node in the scene node tree are associated with one or more attributes.

[0065] Among them, display area A can display the scene node tree, and the developer can select the node in the scene node tree by clicking or similar operations. Display area B can display the file corresponding to the scene resource of the application. Display area C can display the image corresponding to the scene node tree. Display area D can display the various properties of the selected node. During the development process of the application, on the one hand, when the properties of each node in the scene node tree change, the view displayed in display area C and the data displayed in display area D will be automatically updated based on the changed data. On the other hand, the data displayed in display area D is for the developer to view and modify.

[0066] Typically, the front end of the tool can use Vue as the framework of the view layer. Vue can use objects in the game scene as Vue models to detect changes in game data.

[0067] Specifically, when there is any data change in the ordered objects in the game (for example, during the running of the game) (for example, the position of the character changes), Vue will promptly update the view (i.e., the view in display area C) and update the data displayed on the editing page (i.e., the data displayed in display area D) in real time to the changed data so that the developer can modify the changed data.

[0068] Figure 3 This is an example of the structure of the application development tool provided in the embodiments of the present application.

[0069] like Figure 3 As shown, the mini-game development tool can be deployed as a module of the application development tool. The job of the mini-game developer tool (tool) is to edit and preview the mini-game that the developer is making. In this process, the attributes in the game need to be displayed in real time on the compilation and decoding interface of the application development tool for the developer to view and modify.

[0070] Among them, the mini-game development tools may include the engine and the engine IDE. The engine is the core of the game application, which contains game objects and the logic of game operation and rendering. The engine IDE is used to provide an editing interface for game developers and can be written in the Vue framework. The interaction logic between the two is that the engine gives the game object as a Vue data model to the engine IDE for data display. The engine IDE detects changes in game data. If there is a data change in the game object in the engine, it will be automatically updated on the editing interface. In addition, game developers can also modify game data on the editing interface, which is equivalent to directly modifying the game object.

[0071] Figure 4 This is an example of the interaction process 100 between the engine and the engine IDE in the application development tool provided in an embodiment of the present application.

[0072] like Figure 4 As shown, the interaction process 100 may include:

[0073] S110, the engine instantiates game resources and generates a scene node tree.

[0074] The engine can use the scene node as the root node of the scene node tree, instantiate the scene resource of the application to obtain an entity, and use the instantiated entity as a node other than the root node in the scene node tree, and the nodes other than the root node in the scene node tree are associated with one or more attributes. The number of attributes associated with different nodes in the scene node tree may be equal or unequal.

[0075] S120: The engine sends the root node as a model to the engine IDE.

[0076] The engine sends the root node as a model to the engine IDE. After receiving the root node, the engine IDE can obtain the scene node tree based on the root node by reference or call, so as to perform subsequent operations.

[0077] S130, the engine IDE detects data changes of each node starting from the root node.

[0078] After the engine IDE obtains the scene node tree based on the root node by reference or call, it can traverse each attribute associated with each node in the scene node tree and detect whether the data of each attribute associated with each node has changed. Specifically, after the engine IDE obtains the scene node tree based on the root node, it references or calls each attribute associated with each node in the scene node tree, and then performs a detection operation on each object associated with each node.

[0079] S140, the engine IDE obtains the changed data from the engine.

[0080] After the engine IDE detects that the data of a certain attribute has changed, the changed data can be obtained from the engine. For example, after the engine IDE detects that the data of a certain attribute has changed, the changed data can be obtained by reference or call. It is worth noting that after the engine IDE obtains the scene node tree based on the root node, if each attribute associated with each node in the scene node tree is referenced or called, then when the data changes during the game's running cycle, the engine can automatically send the changed data to the engine IDE. In other words, the process of the engine IDE detecting data changes and obtaining the changed data from the engine when changes occur can be implemented as the engine IDE referencing or calling nodes in the scene node tree, thereby enabling the engine to automatically trigger the data update process.

[0081] Of course, in other alternative embodiments, the engine IDE can detect data changes by sending a change query request to the engine and obtain the changed data by sending a data request to the engine, wherein the change query request is used to request whether the data of the nodes and attributes in the scene node tree have changed, and the data request is used to request the changed data, and the present application does not make specific limitations on this.

[0082] In addition, after the engine IDE obtains the changed data from the engine, it can also update the views and data displayed in the editing interface of the engine IDE based on the changed data, which is not specifically limited in this application.

[0083] S150, the engine IDE sends the data modified through the editing interface to the engine.

[0084] After the developer modifies the data of some or all attributes associated with a node through the editing interface, the engine IDE sends the developer's modified data to the engine so that the engine can run the game based on the modified data.

[0085] It can be seen from the interactive process 100 that when the application development tool adopts Vue as the framework of the view layer (i.e., the engine IDE is written in the Vue framework), the engine IDE needs to automatically collect data of all objects (including nodes and attributes associated with each node), that is, the engine IDE needs to detect changes in each object. However, when a large game scene appears, there may be tens of thousands of game objects, hundreds of thousands of game components, and millions or even tens of millions of game attribute values. The engine IDE detects such a huge amount of data, which will not only greatly increase the memory of the tool, but also cause serious jams when the data is updated, and may even cause the tool to crash due to excessive memory, which will lead to poor fluency of the editing interface.

[0086] In order to improve the stability and fluency of the application development tool, this application first rewrites the Vue framework, changes the default capability of Vue (i.e., automatically traversing all objects in the data model and detecting data changes), and no longer detects changes on all objects, so that Vue only collects data from some objects marked for detection, and only re-renders at the view level when the data of these objects changes. This can greatly reduce the amount of data detected by Vue, thereby reducing the memory of the tool and improving the fluency and stability of the entire tool.

[0087] It should be understood that the data update solution provided in this application belongs to the performance optimization of the application development tool, and does not require any operational changes for the users of the application development tool (game developers), because there is no change in the use of the application development tool, but the developer's operation will be smoother and more convenient.

[0088] The data updating method provided by this application is described below.

[0089] Figure 5 A schematic flow chart of a data update method 200 according to an embodiment of the present application is shown, and the method 200 can be executed by any electronic device with data processing capabilities. For example, the electronic device can be implemented as a terminal device. The terminal device can be a desktop terminal or a mobile terminal, and the mobile terminal can specifically be at least one of a mobile phone, a tablet computer, a laptop computer, a vehicle-mounted terminal, etc. An application development tool can be installed on the terminal device, and the application development tool can be used to help developers develop and debug applications conveniently and efficiently. Of course, the terminal device can also be a device for providing an engine IDE (Engine IDE) for the application development tool, and the present application does not make specific limitations on this. For ease of description, the data update method 200 is described below with a terminal device equipped with an application development tool as the execution subject.

[0090] like Figure 5 As shown, the method 200 may include:

[0091] S210, the terminal device obtains a scene node tree of the application; wherein the root node of the scene node tree is a scene node, the nodes in the scene node tree other than the root node are entities obtained by instantiating the scene resources of the application, and the nodes in the scene node tree other than the root node are associated with one or more attributes.

[0092] Exemplarily, the terminal device may be installed with an application development tool, which may include an engine (Engine) and an engine IDE (Engine IDE).

[0093] The engine is the core of the application, which contains game objects and the logic of game operation and rendering. The engine IDE is used to provide an editing interface for game developers and can be written in the Vue framework.

[0094] Exemplarily, the engine of the application development tool can use the scene node as the root node of the scene node tree, instantiate the scene resources of the application to obtain an entity, and use the instantiated entity as the node other than the root node in the scene node tree, and the nodes other than the root node in the scene node tree are associated with one or more attributes. Among them, the number of attributes associated with different nodes in the scene node tree can be equal or unequal. After the engine of the application development tool builds the scene node tree, the root node (i.e., the scene node) of the scene node tree can be sent to the engine IDE of the application development tool, so that the engine IDE of the application development tool can obtain the scene node tree based on the root node by reference or call.

[0095] S220: The terminal device determines a target attribute that needs to be detected for data change based on whether the current node in the scene node tree is associated with a detection tag or based on whether an attribute associated with the current node is associated with the detection tag.

[0096] Exemplarily, the engine IDE of the application development tool obtains the scene node tree based on the root node by reference or call, and can traverse each attribute associated with each node in the scene node tree, detect whether the data of each node or each attribute is associated with a detection mark, and determine the target attribute based on the traversal result.

[0097] It should be understood that the present application does not specifically limit the association method of the detection marker.

[0098] For example, when acquiring the scene node tree, the engine IDE of the application development tool can acquire the scene node tree in response to a marking operation in the editing interface. For example, in response to a marking operation in the editing interface, the engine IDE of the application development tool can send indication information to the engine of the application development tool, the indication information being used to indicate the node or attribute that will need to be associated with the detection mark, so that the engine of the application development tool updates the scene node tree based on the indication information, whereby the application development tool IDE can detect whether the data of each node or each attribute is associated with a detection mark when traversing each attribute associated with each node in the scene node tree by reference or call, and determine the target attribute based on the traversal result.

[0099] For another example, before constructing the scene node tree, the engine of the application development tool can associate a detection tag with some scene resources of the application by modifying the script of the application or the script of the application development tool. Thus, when the engine of the application development tool instantiates the part of the scene resources into entities and uses them as nodes in the scene node tree during the process of constructing the scene node tree, it can ensure that they are associated with the detection tag. Furthermore, when the engine IDE of the application development tool traverses each attribute associated with each node in the scene node tree by reference or call, it can detect whether the data of each node or each attribute is associated with the detection tag, and determine the target attribute based on the traversal result.

[0100] S230, the terminal device detects whether the data of the target attribute changes.

[0101] Exemplarily, the engine IDE of the application development tool may detect whether the data of the target attribute is changed by reference or call.

[0102] S240, when the data of the target attribute changes, the terminal device obtains the changed data of the target attribute, and updates the view and data displayed in the editing page based on the changed data of the target attribute.

[0103] Exemplarily, when the data of the target attribute changes, the engine IDE of the application development tool can obtain the changed data of the target attribute by reference or call.

[0104] It is worth noting that after the engine IDE of the application development tool obtains the scene node tree based on the root node, if each attribute associated with each node in the scene node tree is referenced or called, when data changes occur during the running cycle of the application, the engine of the application development tool can automatically send the changed data to the engine IDE of the application development tool. In other words, the process of the engine IDE of the application development tool detecting data changes and obtaining the changed data from the engine when changes occur can be implemented as the engine IDE of the application development tool referencing or calling nodes in the scene node tree, thereby realizing that the data update process is automatically triggered by the engine of the application development tool.

[0105] Of course, in other alternative embodiments, the engine IDE of the application development tool can detect data changes by sending a change query request to the engine of the application development tool and obtain the changed data by sending a data request to the engine, wherein the change query request is used to request whether the data of the nodes and attributes in the scene node tree have changed, and the data request is used to request the changed data, and the present application does not make specific limitations on this.

[0106] In an embodiment of the present application, by introducing a detection tag, and then based on whether the current node is associated with a detection tag or whether the associated attribute of the current node is associated with a detection tag, the target attribute that ultimately needs to be detected for data changes is determined, that is, the global data detection process is optimized to only detect the data of the target attribute, thereby greatly reducing the amount of data detected in a pruning manner, thereby reducing the memory usage of the application development tool and improving the fluency of the editing interface.

[0107] In some embodiments, the S220 may include:

[0108] The terminal device determines the attribute associated with the current node and associated with the detection mark as the target attribute.

[0109] Exemplarily, the engine IDE in the application development tool determines the attribute associated with the current node and associated with the detection mark as the target attribute. For example, when the attribute associated with the current node includes the attribute associated with the detection mark, the engine IDE in the application development tool may determine the attribute associated with the current node and associated with the detection mark as the target attribute.

[0110] In this embodiment, the engine IDE in the application development tool determines the attribute associated with the current node and associated with the detection mark as the target attribute and performs data change detection on it. It can filter out the attributes associated with the current node and that need to be detected for data changes, that is, it can ensure the accuracy of data change detection.

[0111] In some embodiments, when the current node is associated with the detection tag, the terminal device determines the attribute associated with the current node and associated with the detection tag as the target attribute.

[0112] Exemplarily, in the case where the current node is associated with the detection tag, the engine IDE in the application development tool may determine the attribute associated with the current node and associated with the detection tag as the target attribute. For example, in the case where the current node is associated with the detection tag and the attribute associated with the current node includes the attribute associated with the detection tag, the engine IDE in the application development tool may determine the attribute associated with the current node and associated with the detection tag as the target attribute.

[0113] In this embodiment, the engine IDE in the application development tool determines the attribute associated with the current node and associated with the detection mark as the target attribute and performs data change detection on it, which can screen out the attributes associated with the current node and that need to be detected for data changes, that is, the accuracy of data change detection can be guaranteed. In addition, when the current node is associated with the detection mark, the engine IDE in the application development tool determines the attribute associated with the current node and associated with the detection mark as the target attribute, which can reduce the number of traversed attributes, thereby improving the efficiency of determining the target attribute.

[0114] In some embodiments, the S220 may include:

[0115] When the current node is associated with the detection tag, the terminal device determines each attribute associated with the current node as the target attribute.

[0116] Exemplarily, when the current node is associated with the detection tag, the engine IDE in the application development tool determines each attribute associated with the current node as the target attribute. For example, when the current node is associated with the detection tag, regardless of whether the attribute associated with the current node is associated with the detection tag, the engine IDE in the application development tool can determine each attribute associated with the current node as the target attribute.

[0117] In this embodiment, when the current node is associated with the detection mark, the engine IDE in the application development tool determines the various attributes associated with the current node as the target attribute, and can filter out the attributes associated with the current node and that need to be detected for data changes, that is, the accuracy of data change detection can be guaranteed. In addition, when the current node is associated with the detection mark, the engine IDE in the application development tool determines the various attributes associated with the current node as the target attribute, which can avoid determining the target attribute by traversing the attributes, thereby improving the efficiency of determining the target attribute.

[0118] In some embodiments, the S220 may include:

[0119] The terminal device determines whether the current node is empty; if the current node is not empty, the target attribute is determined based on whether the current node is associated with the detection tag or based on whether the attribute associated with the current node is associated with the detection tag.

[0120] Exemplarily, the engine IDE in the application development tool determines whether the current node is empty; if the current node is not empty, the engine IDE in the application development tool determines the target attribute based on whether the current node is associated with the detection tag or based on whether the attribute associated with the current node is associated with the detection tag. When the current node is empty, it is equivalent to that the current node does not exist. In other words, when the current node exists, the engine IDE in the application development tool determines the target attribute based on whether the current node is associated with the detection tag or based on whether the attribute associated with the current node is associated with the detection tag; when the current node is empty, it means that the current node does not exist, that is, the engine IDE has not only completed the traversal of the nodes in the scene node tree, but also found all target attributes that need to be detected for data changes in the attributes associated with the nodes in the scene node tree.

[0121] In some embodiments, the method 200 may further include:

[0122] The terminal device uses the child node of the current node as a new current node, and determines the target attribute based on whether the new current node is associated with the detection tag or based on whether the attribute associated with the new current node is associated with the detection tag.

[0123] Exemplarily, the engine IDE in the application development tool uses the child node of the current node as the new current node, and determines the target attribute based on whether the new current node is associated with the detection tag or based on whether the attribute associated with the new current node is associated with the detection tag.

[0124] For example, when the attribute associated with the current node includes an attribute associated with the detection mark, the engine IDE in the application development tool may determine the attribute associated with the current node and associated with the detection mark as the target attribute. Otherwise, the engine IDE in the application development tool uses the child node of the current node as the new current node, and determines the target attribute based on whether the new current node is associated with the detection mark or based on whether the attribute associated with the new current node is associated with the detection mark.

[0125] For another example, when the current node is associated with the detection tag, the engine IDE in the application development tool may determine the attribute associated with the current node and associated with the detection tag as the target attribute. Otherwise, the engine IDE in the application development tool uses the child node of the current node as the new current node, and determines the target attribute based on whether the new current node is associated with the detection tag or based on whether the attribute associated with the new current node is associated with the detection tag.

[0126] For another example, when the current node is associated with the detection tag, the engine IDE in the application development tool determines each attribute associated with the current node as the target attribute. Otherwise, the engine IDE in the application development tool uses the child node of the current node as the new current node, and determines the target attribute based on whether the new current node is associated with the detection tag or based on whether the attribute associated with the new current node is associated with the detection tag.

[0127] Figure 6 It is a schematic flowchart of a method 300 for determining target attributes provided in an embodiment of the present application.

[0128] like Figure 6 As shown, the determination method 300 may include:

[0129] S310, start.

[0130] S320, the engine IDE obtains the root node of the scene tree node tree.

[0131] The engine IDE can obtain the scene node tree based on the root node by reference or call. The root node of the scene node tree is the scene node, and the nodes in the scene node tree other than the root node are entities obtained by instantiating the scene resources of the application. The nodes in the scene node tree other than the root node are associated with one or more attributes.

[0132] S330: The engine IDE sets the root node as the current node.

[0133] After the engine IDE obtains the scene node tree based on the root node, it can traverse each node in the scene node tree with the root node as the current node, and then find all target attributes that need to be detected for data changes in the attributes associated with the nodes in the scene node tree.

[0134] S340, the engine IDE determines whether the current node is empty.

[0135] When the current node is empty, that is, the current node does not exist. That is to say, after the engine IDE takes the root node as the current node, it needs to determine whether the current node actually exists and perform subsequent operations based on the determination result.

[0136] S341, end.

[0137] When the current node is empty, it indicates that the current node does not exist, that is, the engine IDE has not only completed the traversal of the nodes in the scene node tree, but also found all target attributes that need to be detected for data changes in the attributes associated with the nodes in the scene node tree.

[0138] S350: When the engine IDE determines that the current node is not empty, it checks whether the current node is associated with a detection tag.

[0139] In the case that the current node is not empty, the engine IDE checks whether the current node is associated with a detection tag, so that the engine IDE can determine whether to traverse the attributes associated with the current node based on the detection result.

[0140] S360: The engine IDE traverses the child nodes of the current node.

[0141] In the case that the current node is not associated with the detection mark, the engine IDE may use the child nodes of the current node as the new current node, and find all target attributes that need to be detected for data changes in the attributes associated with the new current node.

[0142] S370: The engine IDE checks whether the attribute associated with the current node is associated with a detection mark.

[0143] When the current node is associated with the detection tag, the engine IDE checks whether the attribute associated with the current node is associated with the detection tag, so that the engine IDE finds all target attributes that need to be detected for data changes in the attributes associated with the current node based on the detection result.

[0144] S380: The engine IDE determines the attribute associated with the current node and associated with the detection mark as the target attribute that needs to be detected for data changes.

[0145] In the case where the current node is associated with the detection tag, the engine IDE checks whether the attribute associated with the current node is associated with the detection tag, and determines the attribute associated with the current node and associated with the detection tag as the target attribute. Otherwise, the IDE uses the child node of the current node as the new current node, and finds all target attributes that need to be detected for data changes in the attributes associated with the new current node.

[0146] In some embodiments, the method 200 may further include:

[0147] The terminal device updates the view displayed in the editing page in response to the data modification operation performed on the target attribute in the editing page.

[0148] Exemplarily, the engine IDE of the application development tool responds to the data modification operation performed on the target attribute in the editing page, and sends the modified data to the engine of the application development tool, so that the engine of the application development tool performs image rendering based on the modified data and obtains the rendered image. After obtaining the rendered image, the engine of the application development tool sends the rendered image to the engine IDE of the application development tool, so that the engine IDE of the application development tool displays the rendered image on the editing interface.

[0149] Figure 7 A schematic flow chart of a data update method 400 according to an embodiment of the present application is shown, and the method 400 can be executed by any electronic device with data processing capabilities. For example, the electronic device can be implemented as a terminal device. The terminal device can be a desktop terminal or a mobile terminal, and the mobile terminal can specifically be at least one of a mobile phone, a tablet computer, a laptop computer, a vehicle-mounted terminal, etc. An application can be installed on the terminal device, and the application can be an independent application or a sub-application. Of course, the terminal device can also be a device for providing an engine (Engine) for an application development tool, and this application does not make specific limitations on this. For ease of description, the data update method 200 is described below with a terminal device equipped with an application development tool as the execution subject.

[0150] like Figure 7 As shown, the method 400 may include:

[0151] S410, the terminal device obtains a scene node tree of the application; wherein the root node of the scene node tree is a scene node, the nodes in the scene node tree other than the root node are entities obtained by instantiating the scene resources of the application, and the nodes in the scene node tree other than the root node are associated with one or more attributes.

[0152] Exemplarily, the terminal device may be installed with an application development tool, which may include an engine (Engine) and an engine IDE (Engine IDE).

[0153] The engine is the core of the application, which contains game objects and the logic of game operation and rendering. The engine IDE is used to provide an editing interface for game developers and can be written in the Vue framework.

[0154] Exemplarily, the engine of the application development tool can use the scene node as the root node of the scene node tree, instantiate the scene resources of the application to obtain an entity, and use the instantiated entity as the node other than the root node in the scene node tree, and the nodes other than the root node in the scene node tree are associated with one or more attributes. Among them, the number of attributes associated with different nodes in the scene node tree can be equal or unequal. After the engine of the application development tool builds the scene node tree, the root node (i.e., the scene node) of the scene node tree can be sent to the engine IDE of the application development tool, so that the engine IDE of the application development tool can obtain the scene node tree based on the root node by reference or call.

[0155] S420: The terminal device determines a target attribute that needs to be detected for data change based on whether the current node in the scene node tree is associated with a detection tag or based on whether an attribute associated with the current node is associated with the detection tag.

[0156] Exemplarily, the engine of the application development tool may traverse each attribute associated with each node in the scene node tree, detect whether the data of each node or each attribute is associated with a detection mark, and determine the target attribute based on the traversal result.

[0157] S430, when the data of the target attribute changes during the running of the application, the terminal device obtains the changed data of the target attribute and sends the changed data of the target attribute.

[0158] Exemplarily, when the data of the target attribute changes, the engine IDE of the application development tool can control the engine of the application development tool by reference or call to obtain the changed data of the target attribute and send the changed data of the target attribute to the engine IDE of the application development tool.

[0159] In some embodiments, the method 400 may further include:

[0160] In response to the data modification operation performed on the target attribute, modified data of the target attribute is obtained.

[0161] Figure 8 This is another example of the interaction process 500 between the engine and the engine IDE in the application development tool provided in an embodiment of the present application.

[0162] like Figure 8 As shown, the interaction process 500 may include:

[0163] S510, the engine instantiates game resources and generates a scene node tree.

[0164] The engine can use the scene node as the root node of the scene node tree, instantiate the scene resource of the application to obtain an entity, and use the instantiated entity as a node other than the root node in the scene node tree, and the nodes other than the root node in the scene node tree are associated with one or more attributes. The number of attributes associated with different nodes in the scene node tree may be equal or unequal.

[0165] S520: The engine sends the root node as a model to the engine IDE.

[0166] The engine sends the root node as a model to the engine IDE. After receiving the root node, the engine IDE can obtain the scene node tree based on the root node by reference or call, so as to perform subsequent operations.

[0167] S530 , the engine IDE determines the target attribute based on the detection tag from the root node and performs data change detection.

[0168] The engine IDE obtains the scene node tree based on the root node by quoting or calling, and can traverse each attribute associated with each node in the scene node tree, and detect whether the data of each node or each attribute is associated with a detection mark, and determine the target attribute based on the traversal result. For example, for the current node in the scene node tree, the engine IDE is determined as the target attribute by the attribute associated with the current node and associated with the detection mark. For another example, for the current node in the scene node tree, when the current node is associated with the detection mark, IDE can be determined as the target attribute by the attribute associated with the current node and associated with the detection mark. For another example, for the current node in the scene node tree, when the current node is associated with the detection mark, the engine IDE determines the target attribute by the attributes associated with the current node.

[0169] S540: The engine IDE obtains the changed data from the engine.

[0170] After the engine IDE detects that the data of a certain attribute has changed, the changed data can be obtained from the engine. For example, after the engine IDE detects that the data of a certain attribute has changed, the changed data can be obtained by reference or call. It is worth noting that after the engine IDE obtains the scene node tree based on the root node, if the changed data of a certain attribute in the scene node tree is referenced or called, then when a certain attribute changes data during the game's running cycle, the engine can automatically send the changed data to the engine IDE. In other words, the process of the engine IDE detecting data changes and obtaining the changed data from the engine when changes occur can be implemented as the engine IDE referencing or calling nodes or attributes in the scene node tree, thereby realizing the automatic triggering of the data update process by the engine.

[0171] Of course, in other alternative embodiments, the engine IDE can detect data changes by sending a change query request to the engine and obtain the changed data by sending a data request to the engine, wherein the change query request is used to request whether the data of the nodes and attributes in the scene node tree have changed, and the data request is used to request the changed data, and the present application does not make specific limitations on this.

[0172] In addition, after the engine IDE obtains the changed data from the engine, it can also update the views and data displayed in the editing interface of the engine IDE based on the changed data, which is not specifically limited in this application.

[0173] S550: The engine IDE sends the data modified through the editing interface to the engine.

[0174] After the developer modifies the data of some or all attributes associated with a node through the editing interface, the engine IDE sends the developer's modified data to the engine so that the engine can run the game based on the modified data.

[0175] In this embodiment, the engine IDE automatically traverses the data and detects changes in all data, which will cause a surge in memory and a decrease in the frame rate (fps) of the editor. However, only a small part of the data needs to be displayed and interacted in the editing interface of the engine IDE, and most of the underlying game data does not need to be displayed and interacted. Therefore, the core idea of ​​this embodiment is pruning, so that the engine IDE only detects the part of the data that needs to be displayed, and the rest of the data is not detected, so as to minimize the memory surge and the impact on fps caused by data detection.

[0176] Specifically, by rewriting the engine IDE, a special mark is used to identify which data needs to be detected. Then, when defining the node classes and attributes in the game engine, special marks need to be added according to the requirements to indicate that they need to be rendered. Other nodes and attributes that are not marked will not be added with data change detection operations by the engine IDE after the nodes and attributes are instantiated. Figure 8 As shown, in the modification of the actual game engine, the node class and attribute class that need to be displayed are marked (such as the entities and attributes with gray background in the figure). If there is such a mark, data change detection is added to it when the engine IDE traverses the data model. The solution provided in this embodiment can greatly reduce the memory usage of the application development tool, improve the stability and fluency of the application development tool, and bring a better experience to the developer.

[0177] The preferred embodiments of the present application are described in detail above in conjunction with the accompanying drawings. However, the present application is not limited to the specific details in the embodiments mentioned above. Within the technical concept of the present application, the technical solution of the present application can be subjected to a variety of simple modifications, and these simple modifications all belong to the protection scope of the present application. For example, the various specific technical features described in the specific embodiments mentioned above can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present application will not further explain various possible combinations. For another example, the various different embodiments of the present application can also be arbitrarily combined, as long as they do not violate the ideas of the present application, they should also be regarded as the contents disclosed in the present application.

[0178] It should also be understood that in the various method embodiments of the present application, the size of the serial numbers of the processes involved above does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0179] The method provided in the embodiment of the present application is described above, and the device provided in the embodiment of the present application is described below.

[0180] Fig. 9 It is a schematic block diagram of a data updating device 600 provided in an embodiment of the present application.

[0181] like Fig. 9 As shown, the data updating device 600 may include:

[0182] An acquisition unit 610 is used to acquire a scene node tree of an application program;

[0183] The root node of the scene node tree is a scene node, the nodes other than the root node in the scene node tree are entities obtained by instantiating the scene resources of the application, and the nodes other than the root node in the scene node tree are associated with one or more attributes;

[0184] A determination unit 620, configured to determine a target attribute for which data change detection is required based on whether a current node in the scene node tree is associated with a detection tag or based on whether an attribute associated with the current node is associated with the detection tag;

[0185] A detection unit 630 is used to detect whether the data of the target attribute has changed, and if so, to obtain the changed data of the target attribute;

[0186] The updating unit 640 is used to obtain the changed data of the target attribute, and update the view and data displayed in the editing page based on the changed data of the target attribute.

[0187] In some embodiments, the determining unit 620 is specifically configured to:

[0188] An attribute associated with the current node and associated with the detection mark is determined as the target attribute.

[0189] In some embodiments, the determining unit 620 is specifically configured to:

[0190] In the case where the current node is associated with the detection tag, the attribute associated with the current node and associated with the detection tag is determined as the target attribute.

[0191] In some embodiments, the determining unit 620 is specifically configured to:

[0192] When the current node is associated with the detection tag, each attribute associated with the current node is determined as the target attribute.

[0193] In some embodiments, the determining unit 620 is specifically configured to:

[0194] Determine whether the current node is empty;

[0195] When the current node is not empty, the target attribute is determined based on whether the current node is associated with the detection tag or based on whether an attribute associated with the current node is associated with the detection tag.

[0196] In some embodiments, the determining unit 620 is further configured to:

[0197] The child node of the current node is used as a new current node, and the target attribute is determined based on whether the new current node is associated with the detection tag or based on whether an attribute associated with the new current node is associated with the detection tag.

[0198] In some embodiments, the updating unit 640 is specifically configured to:

[0199] In response to a data modification operation performed on the target attribute in the edit page, a view displayed in the edit page is updated.

[0200] It should be understood that the device embodiment and the method embodiment may correspond to each other, and similar descriptions may refer to the method embodiment. To avoid repetition, no further description is given here. Specifically, the data update device 600 may correspond to the corresponding subjects in the methods 200, 300 and 500 of the embodiments of the present application, and the various units in the data update device 600 are respectively for implementing the corresponding processes in the methods 200, 300 and 500, and for the sake of brevity, no further description is given here.

[0201] Fig.10 It is a schematic block diagram of a data updating device 700 provided in an embodiment of the present application.

[0202] like Fig.10 As shown, the data updating device 700 may include:

[0203] An acquisition unit 710, used to acquire a scene node tree of an application;

[0204] The root node of the scene node tree is a scene node, the nodes other than the root node in the scene node tree are entities obtained by instantiating the scene resources of the application, and the nodes other than the root node in the scene node tree are associated with one or more attributes;

[0205] A determination unit 720, configured to determine a target attribute for which data change detection is required based on whether a current node in the scene node tree is associated with a detection tag or based on whether an attribute associated with the current node is associated with the detection tag;

[0206] The sending unit 730 is used to obtain the changed data of the target attribute and send the changed data of the target attribute when the data of the target attribute changes during the running process of the application.

[0207] In some embodiments, the acquisition unit 710 is further configured to:

[0208] In response to the data modification operation performed on the target attribute, modified data of the target attribute is obtained.

[0209] It should be understood that the device embodiment and the method embodiment may correspond to each other, and similar descriptions may refer to the method embodiment. To avoid repetition, no further description is given here. Specifically, the data update device 700 may correspond to the corresponding subject in the method 400 to 500 of the embodiment of the present application, and the various units in the data update device 700 are respectively for implementing the corresponding processes in the method 400 to 500, which are not described here for the sake of brevity.

[0210] It should also be understood that the various units in the data update device 600 or the data update device 700 involved in the embodiment of the present application are divided based on logical functions. In practical applications, the function of a unit can also be implemented by multiple units, or the functions of multiple units are implemented by one unit, and even these functions can also be implemented with the assistance of one or more other units. For example, part or all of the data update device 600 or the data update device 700 are merged into one or more other units. For another example, a certain (some) unit in the data update device 600 or the data update device 700 can also be split into multiple smaller units in function to constitute, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. For another example, the data update device 600 or the data update device 700 can also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.

[0211] According to another embodiment of the present application, the data updating device 600 or the data updating device 700 involved in the embodiment of the present application can be constructed by running a computer program (including program code) capable of executing each step involved in the corresponding method on a general computing device of a general-purpose computer including processing elements and storage elements such as a central processing unit (CPU), a random access storage medium (RAM), and a read-only storage medium (ROM), and the method of the embodiment of the present application can be implemented. The computer program can be recorded on, for example, a computer-readable storage medium, and loaded into an electronic device through a computer-readable storage medium, and run therein to implement the corresponding method of the embodiment of the present application. In other words, the units involved above can be implemented in hardware form, can be implemented by instructions in software form, and can also be implemented in the form of a combination of software and hardware. Specifically, the steps of the method embodiment in the embodiment of the present application can be completed by the hardware integrated logic circuit and / or software form of the processor, and the steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to execute, or a combination of hardware and software in the decoding processor to execute. Optionally, the software can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, and a register. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps in the method embodiment mentioned above in combination with its hardware.

[0212] Fig.11 It is a schematic structural diagram of an electronic device 800 provided in an embodiment of the present application.

[0213] like Fig.11 As shown, the electronic device 800 at least includes a processor 810 and a computer-readable storage medium 820. The processor 810 and the computer-readable storage medium 820 may be connected via a bus or other means. The computer-readable storage medium 820 is used to store a computer program 821, which includes computer instructions, and the processor 810 is used to execute the computer instructions stored in the computer-readable storage medium 820. The processor 810 is the computing core and control core of the electronic device 800, which is suitable for implementing one or more computer instructions, and is specifically suitable for loading and executing one or more computer instructions to implement the corresponding method flow or corresponding function.

[0214] As an example, the processor 810 may also be referred to as a central processing unit (CPU). The processor 810 may include, but is not limited to, a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete component gates or transistor logic devices, discrete hardware components, and the like.

[0215] As an example, the computer-readable storage medium 820 may be a high-speed RAM memory, or a non-volatile memory (Non-Volatile Memory), such as at least one disk memory; optionally, it may also be at least one computer-readable storage medium located away from the aforementioned processor 810. Specifically, the computer-readable storage medium 820 includes, but is not limited to: a volatile memory and / or a non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus random access memory (DR RAM).

[0216] like Fig.11 As shown, the electronic device 800 may further include a transceiver 830 .

[0217] The processor 810 may control the transceiver 830 to communicate with other devices, specifically, to send information or data to other devices, or to receive information or data sent by other devices. The transceiver 830 may include a transmitter and a receiver. The transceiver 830 may further include an antenna, and the number of antennas may be one or more.

[0218] It should be understood that the various components in the electronic device 800 are connected via a bus system, wherein the bus system includes a power bus, a control bus, and a status signal bus in addition to a data bus. It is worth noting that the electronic device 800 can be any electronic device with data processing capabilities; the computer-readable storage medium 820 stores a first computer instruction; the processor 810 loads and executes the first computer instruction stored in the computer-readable storage medium 820 to implement Figure 1 The corresponding steps in the method embodiment shown; in the specific implementation, the first computer instruction in the computer-readable storage medium 820 is loaded by the processor 810 and executes the corresponding steps. To avoid repetition, they are not repeated here.

[0219] According to another aspect of the present application, an embodiment of the present application provides a chip. The chip may be an integrated circuit chip having signal processing capabilities, and may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The chip may also be referred to as a system-on-chip, a system-on-chip, a chip system, or a system-on-chip chip, etc. The chip may be applied to various electronic devices capable of installing the chip, so that the device equipped with the chip may execute the corresponding steps in the methods or logic block diagrams disclosed in the embodiments of the present application. For example, the chip may be suitable for implementing one or more computer instructions, specifically suitable for loading and executing one or more computer instructions to implement the corresponding method flow or corresponding function.

[0220] According to another aspect of the present application, an embodiment of the present application provides a computer-readable storage medium (Memory). The computer-readable storage medium is a memory device of a computer for storing programs and data. It is understandable that the computer-readable storage medium herein may include both a built-in storage medium in a computer and, of course, an extended storage medium supported by a computer. The computer-readable storage medium provides a storage space, which stores an operating system of an electronic device. The storage space stores computer instructions suitable for being loaded and executed by a processor, and when the computer instructions are read and executed by a processor of a computer device, the computer device executes the corresponding steps in each method or logic block diagram disclosed in the embodiment of the present application.

[0221] According to another aspect of the present application, an embodiment of the present application provides a computer program product or a computer program. The computer program product or computer program includes a computer instruction, which is stored in a computer-readable storage medium. The processor of a computer device reads the computer instruction from a computer-readable storage medium, and the processor executes the computer instruction so that the computer device executes the corresponding steps in each method disclosed in the embodiment of the present application or the logic block diagram. In other words, when the solution provided by the present application is implemented using software, it can be implemented in whole or in part in the form of a computer program product or a computer program. The computer program product or computer program includes one or more computer instructions. When these computer program instructions are loaded and executed on a computer, the process of the embodiment of the present application is run in whole or in part or the function of the embodiment of the present application is implemented.

[0222] It is worth noting that the computer involved in the present application can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions involved in the present application can be stored in a computer-readable storage medium, or can be transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means.

[0223] Those of ordinary skill in the art will appreciate that the units and process 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. In other words, 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 exceed the scope of protection of this application.

[0224] Finally, it should be noted that the above content is only a specific implementation method of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims. For example, the various specific technical features described in the above specific implementation methods can be combined in any suitable manner without contradiction. For another example, the various implementation methods of the present application can also be arbitrarily combined, as long as they do not violate the basic idea of ​​the present application, they should also be regarded as the content disclosed in the present application.

Claims

1. A data updating method, characterized in that: include: Get the scene node tree of the application; The root node of the scene node tree is a scene node, the nodes other than the root node in the scene node tree are entities instantiated from the scene resources of the application, and the nodes other than the root node in the scene node tree are associated with one or more attributes; Determining a target attribute for which data change detection is required based on whether a current node in the scene node tree is associated with a detection tag or based on whether an attribute associated with the current node is associated with the detection tag; Detecting whether the data of the target attribute changes; When the data of the target attribute changes, the changed data of the target attribute is acquired, and the view and data displayed in the editing page are updated based on the changed data of the target attribute.

2. The method according to claim 1, characterized in that The determining of a target attribute requiring data change detection based on whether a current node in the scene node tree is associated with a detection tag or based on whether an attribute associated with the current node is associated with the detection tag includes: An attribute associated with the current node and associated with the detection mark is determined as the target attribute.

3. The method according to claim 2, characterized in that The step of determining the attribute associated with the current node and associated with the detection mark as the target attribute includes: In the case where the current node is associated with the detection tag, an attribute associated with the current node and associated with the detection tag is determined as the target attribute.

4. The method according to claim 2, characterized in that: The method further comprises: In the case where the current node is associated with the detection tag, each attribute associated with the current node is determined as the target attribute.

5. The method according to claim 1, characterized in that The determining of a target attribute requiring data change detection based on whether a current node in the scene node tree is associated with a detection tag or based on whether an attribute associated with the current node is associated with the detection tag includes: Determine whether the current node is empty; When the current node is not empty, the target attribute is determined based on whether the current node is associated with the detection tag or based on whether an attribute associated with the current node is associated with the detection tag.

6. The method according to claim 1, characterized in that The method further comprises: The child node of the current node is used as a new current node, and the target attribute is determined based on whether the new current node is associated with the detection tag or based on whether the attribute associated with the new current node is associated with the detection tag.

7. The method according to claim 1, characterized in that The method further comprises: In response to a data modification operation performed on the target attribute in the edit page, a view displayed in the edit page is updated.

8. A data updating method, characterized in that: include: Get the scene node tree of the application; The root node of the scene node tree is a scene node, the nodes other than the root node in the scene node tree are entities instantiated from the scene resources of the application, and the nodes other than the root node in the scene node tree are associated with one or more attributes; Determining a target attribute for which data change detection is required based on whether a current node in the scene node tree is associated with a detection tag or based on whether an attribute associated with the current node is associated with the detection tag; During the running of the application, when the data of the target attribute changes, the changed data of the target attribute is acquired and the changed data of the target attribute is sent.

9. The method according to claim 8, characterized in that The method further comprises: In response to the data modification operation performed on the target attribute, modified data of the target attribute is obtained.

10. A data updating device, characterized in that: include: The acquisition unit is used to obtain the scene node tree of the application; The root node of the scene node tree is a scene node, the nodes other than the root node in the scene node tree are entities instantiated from the scene resources of the application, and the nodes other than the root node in the scene node tree are associated with one or more attributes; A determination unit, configured to determine a target attribute for which data change detection is required based on whether a current node in the scene node tree is associated with a detection tag or based on whether an attribute associated with the current node is associated with the detection tag; a detection unit, used to detect whether the data of the target attribute has changed, and if so, to obtain the changed data of the target attribute; The updating unit is used to obtain the changed data of the target attribute and update the view and data displayed in the editing page based on the changed data of the target attribute.

11. A data updating device, characterized in that: include: The acquisition unit is used to obtain the scene node tree of the application; The root node of the scene node tree is a scene node, the nodes other than the root node in the scene node tree are entities instantiated from the scene resources of the application, and the nodes other than the root node in the scene node tree are associated with one or more attributes; A determination unit, configured to determine a target attribute for which data change detection is required based on whether a current node in the scene node tree is associated with a detection tag or based on whether an attribute associated with the current node is associated with the detection tag; The sending unit is used to obtain the changed data of the target attribute and send the changed data of the target attribute when the data of the target attribute changes during the running process of the application.

12. An electronic device, characterized in that: include: a processor adapted to execute a computer program; A computer-readable storage medium having a computer program stored therein, wherein when the computer program is executed by the processor, the method according to any one of claims 1 to 7 or the method according to any one of claims 8 to 9 is implemented.

13. A computer-readable storage medium, characterized in that: Used to store a computer program, the computer program causing a computer to execute the method of any one of claims 1 to 7 or any one of claims 8 to 9.