CN111124695B - Dynamic effect management method, system and equipment - Google Patents

Dynamic effect management method, system and equipment Download PDF

Info

Publication number
CN111124695B
CN111124695B CN201911162236.4A CN201911162236A CN111124695B CN 111124695 B CN111124695 B CN 111124695B CN 201911162236 A CN201911162236 A CN 201911162236A CN 111124695 B CN111124695 B CN 111124695B
Authority
CN
China
Prior art keywords
dynamic effect
dynamic
manager
scene
effects
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911162236.4A
Other languages
Chinese (zh)
Other versions
CN111124695A (en
Inventor
李雪鹏
周烨
张玉瑜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Alipay Hangzhou Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN201911162236.4A priority Critical patent/CN111124695B/en
Publication of CN111124695A publication Critical patent/CN111124695A/en
Application granted granted Critical
Publication of CN111124695B publication Critical patent/CN111124695B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/52Program synchronisation; Mutual exclusion, e.g. by means of semaphores
    • G06F9/526Mutual exclusion algorithms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • G06T13/203D [Three Dimensional] animation

Abstract

The application discloses a dynamic effect management method, a dynamic effect management system and dynamic effect management equipment. The method flow of an embodiment of the present disclosure includes: creating dynamic effect managers for management-level linkage effects, wherein each dynamic effect manager corresponds to one cascade dynamic effect, each cascade dynamic effect is formed by a series of scene dynamic effect combinations with a preset execution sequence, each scene dynamic effect is formed by a series of atomic dynamic effects aiming at a single dynamic effect display object, and the registering and instantiating dynamic effect manager comprises: registering the scene dynamic effects in the dynamic effect manager and designating a scene dynamic effect execution relation corresponding to the dynamic effect manager, wherein the scene dynamic effect execution relation is used for describing the execution relation among the scene dynamic effects in the cascade dynamic effects.

Description

Dynamic effect management method, system and equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, a system, and an apparatus for dynamic management.
Background
In prior art application scenarios, in order to enhance the user experience, basic dynamic display components (atomic dynamic) are provided in some program development engines (e.g., game development engines), such as simple point-to-point movements, scaling, rotations, etc. Thus, when the developer develops software, the developer can call atomic dynamic effects to combine, so that various 'cool' complex dynamic effect displays are formed.
However, in a practical application scenario, a complex dynamic display generally includes a series of dynamic effects of a plurality of display objects, and each dynamic effect of the display object itself is composed of a series of atomic dynamic effects. In a complex motion effect display, each atomic motion effect interlayer is abstract and has extremely complex interrelationships. A developer needs to arrange a complex execution logic for a plurality of atomic dynamic effects to realize a complex dynamic effect display, which makes management and maintenance on the complex dynamic effect display have great execution difficulty. Furthermore, when there are multiple complex dynamic effects, there are problems such as display conflict, repeated atomic dynamic effects call and repeated display object call among the complex dynamic effects, so that the difficulty of management and maintenance execution is further increased.
Disclosure of Invention
In view of this, the embodiments of the present disclosure provide a dynamic efficiency management method, system and device, which are used to solve the problem in the prior art that the execution difficulty of the management and maintenance for complex dynamic efficiency display is high.
The embodiment of the specification adopts the following technical scheme:
the embodiment of the specification provides a dynamic effect management method, which comprises the following steps:
creating dynamic effect managers for management-level linkage effects, wherein each dynamic effect manager corresponds to one cascade dynamic effect, each cascade dynamic effect is formed by a series of scene dynamic effect combinations with a preset execution sequence, each scene dynamic effect is formed by a series of atomic dynamic effects aiming at a single dynamic effect display object, and the registering and instantiating dynamic effect manager comprises:
Registering the scene dynamic effects in the dynamic effect manager and designating a scene dynamic effect execution relation corresponding to the dynamic effect manager, wherein the scene dynamic effect execution relation is used for describing the execution relation among the scene dynamic effects in the cascade dynamic effects.
In an embodiment of the present disclosure, the scenario dynamic effect includes an exit for notifying the dynamic effect manager that the dynamic effect is executed.
In an embodiment of the present disclosure, a scenario dynamic effect execution relationship corresponding to the dynamic effect manager is specified, where the scenario dynamic effect execution relationship corresponds to a directed acyclic graph without a right.
In an embodiment of the present disclosure, designating a scenario dynamic effect execution relationship corresponding to the dynamic effect manager includes:
modeling according to a preset execution sequence among the scene dynamic effects to generate a corresponding directed acyclic graph;
and saving the graph state of the directed acyclic graph.
In one embodiment of the present description, the graph state of the directed acyclic graph is saved, wherein the graph state is saved into a union.
In an embodiment of the present disclosure, registering the scenario dynamic effects in the dynamic effects manager and designating a scenario dynamic effects execution relationship corresponding to the dynamic effects manager, where:
Registering all scene dynamic effects to generate dynamic effect manager templates, and designating different scene dynamic effect execution relations based on the dynamic effect manager templates to generate different dynamic effect managers;
or alternatively, the process may be performed,
and registering scene dynamic effects contained in the corresponding cascade dynamic effects in the dynamic effect manager and designating the scene dynamic effect execution relation corresponding to the dynamic effect manager.
The embodiment of the specification also provides a dynamic operation method, which comprises the following steps:
monitoring whether a cascade action is triggered, wherein the cascade action corresponds to an action manager created according to the method described in the embodiments of the present specification;
if the cascade dynamic effect is triggered, determining the triggered cascade dynamic effect;
operating the dynamic effect manager corresponding to the triggered cascade dynamic effect, wherein operating the dynamic effect manager comprises: and executing the appointed scene dynamic effects in sequence according to the scene dynamic effect executing relation corresponding to the dynamic effect manager.
In one embodiment of the present description:
the method further comprises the steps of adding mutual exclusion locks for a plurality of corresponding dynamic effect managers based on operation conflicts among the plurality of levels of linkage effects;
and running the dynamic effect manager corresponding to the triggered cascade dynamic effect, wherein before executing the dynamic effect manager, detecting whether the dynamic effect manager is added with the mutual exclusion lock, if so, adding the current dynamic effect manager executing operation into a waiting execution queue, sequentially executing the dynamic effect manager according to the arrangement sequence of the waiting execution queue, and releasing the corresponding mutual exclusion lock after the dynamic effect manager is executed.
In one embodiment of the present description:
the scene dynamic execution relationship corresponding to the dynamic manager corresponds to a directed acyclic graph without weight, and the scene dynamic execution relationship is stored in a graph state form of the directed acyclic graph;
sequentially executing the appointed scene dynamic effects according to the scene dynamic effect execution relation corresponding to the dynamic effect manager, wherein the method comprises the following steps:
generating a corresponding directed acyclic graph according to the graph state;
and performing topological sorting on the directed acyclic graph, and sequentially executing specified scene dynamic effects based on a topological sorting result.
The embodiment of the specification also provides a dynamic effect management system, which comprises:
a manager building module for registering and instantiating dynamic effect managers for management level linkage effects, wherein each dynamic effect manager corresponds to a cascade dynamic effect, each cascade dynamic effect is composed of a series of scene dynamic effect combinations with a preset execution sequence, each scene dynamic effect is composed of a series of atomic dynamic effects for a single dynamic effect display object, and the manager building module comprises:
a scene dynamic effect registration unit for registering the scene dynamic effect in the dynamic effect manager;
The execution relation construction unit is used for appointing the scene dynamic effect execution relation corresponding to the dynamic effect manager, and the scene dynamic effect execution relation is used for describing the execution relation among the scene dynamic effects in the cascade dynamic effects.
The embodiment of the specification also provides a dynamic effect operation system, which comprises:
the dynamic effect monitoring module is used for monitoring whether the cascade dynamic effect is triggered or not, and if so, determining the triggered cascade dynamic effect;
the manager operation module is used for operating the dynamic effect manager corresponding to the triggered cascade dynamic effect, wherein:
the dynamic effect manager is created by the dynamic effect management system according to the embodiment of the specification;
and the running of the dynamic effect manager comprises the step of executing the appointed scene dynamic effect in sequence according to the scene dynamic effect executing relation corresponding to the dynamic effect manager.
The present description also proposes an apparatus for information processing at an access side device, the apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the apparatus to perform the method described by the system according to the embodiments of the present description.
The above-mentioned at least one technical scheme that this description embodiment adopted can reach following beneficial effect: according to the method of the embodiment of the specification, the complex interrelationship among the atomic dynamic effects in the cascade dynamic effects is divided by the different dynamic effect display objects, so that the complex interrelationship among the atomic dynamic effects is superior to the execution sequence among the scene dynamic effects, the relation among the dynamic effects in the cascade dynamic effects is more hierarchical and logical, the complexity of the cascade dynamic effects is greatly reduced, and the cascade dynamic effects are convenient to manage and maintain.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
fig. 1, 6 to 8 are flowcharts of an operation method of an application program in the embodiment of the present disclosure;
FIGS. 2, 4 and 5 are partial flowcharts of a method of operating an application program according to embodiments of the present disclosure;
FIG. 3 is a directed acyclic graph in an embodiment of the present disclosure;
fig. 9 and 10 are block diagrams of the system in the embodiment of the present specification.
Detailed Description
For the purposes, technical solutions and advantages of the present application, the technical solutions of the present application will be clearly and completely described below with reference to specific embodiments of the present application and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Aiming at the problem of high difficulty in executing complex dynamic effect display management maintenance in the prior art, an embodiment of the specification provides a dynamic effect management method. In order to propose the method of the embodiments of the present specification, the inventor first analyzes an application scenario of complex dynamic display in the prior art. In a practical application scenario, a complex dynamic display generally includes a series of dynamic effects of a plurality of display objects, where each display object is composed of a series of atomic dynamic effects.
For example, in a game, a series of dynamic effects for energy harvesting operations are shown as follows:
1. when the energy is collected, the energy ball is changed from large to small, and the energy is "wafted" out of the energy tank;
2. After energy is collected, the lens is pushed to enable the small person to be displayed in the center of the screen;
3. the character starts to jump and walk forward;
4. the bricks start to be paved while the person walks;
5. when the person walks, the lens starts to move at any time according to the position of the person;
6. after the person walks, the cloud layer shielding the end point starts to move upwards.
Through the dynamic effect display, it is easy to see that the complex dynamic effect has a plurality of display objects (for example, energy balls, energy slots, figures, bricks and cloud layers), different atomic dynamic effects need to be called for each display object respectively, the calling execution sequence (for example, execution in succession and synchronous execution) of each atomic dynamic effect is arranged, the same atomic dynamic effect calls for different display objects, the same atomic dynamic effect calls for the same display object in stages, and the like, and the dynamic effect developer is required to set in advance. The complicated dynamic effect display final display effect is more cool when the setting is completed, and the more atomic dynamic effects are called, the more the interrelationship among the atomic dynamic effects is contained. Moreover, the atomic effects are often repeatedly called, which makes the interrelationship among the atomic effects in the complex dynamic effect display difficult to be understood.
In view of the above, in an embodiment of the present disclosure, a hierarchical division manner is used to sort the correlations between atomic effects in the complex effects. Specifically, in the case of complex dynamic display, although there are cases where the same atomic dynamic is called for different display objects, the same atomic dynamic is called for the same display object in stages, and the like, there is a limit that can be clearly divided between different display objects in the complex dynamic display. Thus, in one embodiment of the present specification, a set of actions of a single display object, which is composed of a plurality of atomic actions, is defined as a scene action. And converting the complex dynamic effect display into a cascade dynamic effect formed by connecting a plurality of scene dynamic effects in series and/or in parallel. Therefore, the maintenance management of a plurality of atomic dynamic effects with complex correlations such as execution sequence logic, repeated calling and the like in the complex dynamic effect display can be converted into two parts of maintenance management (scene dynamic effect maintenance relationship) of the atomic dynamic effects aiming at a plurality of display objects and maintenance management of the dynamic effects aiming at a plurality of scenes, and the difficulty of maintenance management is greatly reduced.
According to the method of the embodiment of the specification, the complex interrelationship among the atomic dynamic effects in the cascade dynamic effects is divided by the different dynamic effect display objects, so that the complex interrelationship among the atomic dynamic effects is superior to the execution sequence among the scene dynamic effects, the relation among the dynamic effects in the cascade dynamic effects is more hierarchical and logical, the complexity of the cascade dynamic effects is greatly reduced, and the cascade dynamic effects are convenient to manage and maintain.
The following describes in detail the technical solutions provided by the embodiments of the present specification with reference to the accompanying drawings.
In an embodiment of the present disclosure, as shown in fig. 1, the dynamic efficiency management method includes:
s110, creating dynamic effect managers for managing level linkage effects, wherein each dynamic effect manager corresponds to one cascade dynamic effect, each cascade dynamic effect is formed by a series of scene dynamic effect combinations with a preset execution sequence, and each scene dynamic effect is formed by a series of atomic dynamic effects aiming at a single dynamic effect display object;
step S110 includes:
s111, registering the scene dynamic effects in a dynamic effect manager;
the method comprises the steps of,
s112, designating a scene dynamic effect execution relationship corresponding to the dynamic effect manager, wherein the scene dynamic effect execution relationship is used for describing the execution relationship among each scene dynamic effect in the level linkage effect.
According to the method of the embodiment of the specification, the complex interrelationship among the atomic dynamic effects in the cascade dynamic effects is divided by the different dynamic effect display objects, so that the complex interrelationship among the atomic dynamic effects is superior to the execution sequence among the scene dynamic effects, the relation among the dynamic effects in the cascade dynamic effects is more hierarchical and logical, the complexity of the cascade dynamic effects is greatly reduced, and the cascade dynamic effects are convenient to manage and maintain.
Specifically, in an embodiment of the present disclosure, in creating a dynamic effect manager for managing level linkage effects, a registered and instantiated flow is used to create the dynamic effect manager.
Specifically, in an embodiment of the present disclosure, registration is a process of setting an identifier for the dynamic effect manager, where one dynamic effect manager manages a cascade of dynamic effects, so each dynamic effect manager has a unique identifier.
Further, in object-oriented programming, the process of creating objects with classes is often referred to as instantiation. In one embodiment of the present description, instantiation refers to creating an action manager with a unique identification. In one embodiment of the present disclosure, all of the dynamic effects managers are instantiated by the dynamic effects manager class. The dynamic effect manager class is an abstract and descriptive template of dynamic effect managers, and can be regarded as a factory, which can produce a plurality of dynamic effect managers, the produced dynamic effect managers can respectively manage different cascade dynamic effects, and the production is called instantiation of the dynamic effect manager.
Specifically, in an embodiment of the present disclosure, when a cascade of dynamic effects needs to be managed, a dynamic effect manager needs to be registered and instantiated first, where the registration is to assign a unique identifier (i.e. name) to the dynamic effect manager that needs to be instantiated currently, and when the instantiation is completed, the dynamic effect manager will have the identifier attribute of the name. The instantiated dynamic effect manager has the ability to manage and execute the level of linked effects.
Specifically, in an embodiment of the present disclosure, in registering a scene action in the action manager, the registration refers to storing the scene action module in the action manager. The operation details of the registration scene dynamic effect comprise: taking the example of the level linkage effect in the interaction book, how to register a certain scene dynamic effect in the interaction book to the dynamic effect manager, and how to operate the certain scene dynamic effect when the level linkage effect is operated later.
Specifically, in an embodiment of the present disclosure, in a specific application scenario, the dynamic manager class attribute is described as follows:
■ cascadeName: dynamic effect manager unique identification
■ The relationship between cascadeManage: {// storage scene dynamic effects child: [ ], the relationship between// storage scene dynamic effects unionFind: { }// storage scene dynamic effects is a union. }
■ sceneManage: scene dynamic effect storage
■ graphInfo: graph information finally generated by dynamic effect manager
■ status: current dynamic manager execution state
■ finish scenenum: number of scene actions performed
■ sceneNum: registered scene dynamic number
■ before run: callback function before level linkage effective execution
■ finish: callback function for completing execution by level linkage effect
■ before next: callback functions before each scene is dynamically executed.
Further, when complex dynamic display is implemented, the following schemes are generally available: predefined actions are performed by listening for a specific event's back-off and/or for a specific data change. Because a complex dynamic effect contains a plurality of atomic dynamic effects, the event/data monitoring operation is nested layer by layer, the logic relationship is very chaotic, the readability and maintainability of codes are poor, and the expandability of the complex dynamic effect is greatly limited. The above problems are even more pronounced when there are a plurality of different complex dynamic displays.
In view of the foregoing, an embodiment of the present disclosure further provides a dynamic operation method. In one embodiment of the present description, a cascade action is performed as a whole when a cascade action is performed. Specifically, the dynamic effect managers for managing the level linkage effect are registered and instantiated, each dynamic effect manager corresponds to one level linkage effect, and the corresponding dynamic effect manager is operated when the level linkage effect display is needed.
Specifically, in an embodiment of the present disclosure, as shown in fig. 2, the dynamic efficiency management method further includes:
S220, monitoring whether the cascade dynamic effect is triggered or not, wherein the cascade dynamic effect corresponds to a dynamic effect manager generated according to the dynamic effect management method in the embodiment of the specification;
s221, if triggered, determining a triggered cascade dynamic effect;
s230, running a dynamic effect manager corresponding to the triggered cascade dynamic effect; step S230 includes sequentially executing the specified scene actions according to the scene action execution relationship corresponding to the action manager.
According to the method of the embodiment of the specification, the instantiated dynamic effect manager is used for managing the execution sequence of scene dynamic effects in the level linkage effect, so that the interrelationship among all dynamic effects in the level linkage effect does not need to be considered when the level linkage effect is realized, and the difficulty of managing and maintaining the level linkage effect is further reduced.
Further, in an embodiment of the present disclosure, in a process of registering a scenario action in an action manager and designating a scenario action execution relationship corresponding to the action manager, all scenario actions are registered to generate an action manager template, and different scenario action execution relationships are designated based on the action manager template to generate different action managers.
Further, in an embodiment of the present disclosure, in a process of registering a scenario action in an action manager and designating a scenario action execution relationship corresponding to the action manager, registering a scenario action included in a cascade action corresponding to the action manager in the action manager and designating a scenario action execution relationship corresponding to the action manager.
Further, in an embodiment of the present disclosure, the process of implementing the level linkage effect is to sequentially execute the specified scene dynamic effects according to the scene dynamic effect execution relationship corresponding to the dynamic effect manager. In order to facilitate execution of the scenario effects according to the predetermined execution sequence, in an embodiment of the present disclosure, the scenario effects include an exit for notifying the effects manager that the effects are executed. In the process of sequentially executing the specified scene dynamic effects according to the scene dynamic effect execution relation corresponding to the dynamic effect manager, after the execution of one scene dynamic effect is finished, the dynamic effect manager is informed through the outlet of the dynamic effect manager, and the dynamic effect manager can execute the next scene dynamic effect after the execution of the dynamic effect is finished.
Further, in the practical application scenario, the directed acyclic graph refers to a loop-free directed graph. The number of spanning trees of the directed acyclic graph is equal to the product of the degree of entry of the nodes with non-zero degrees of entry. In an embodiment of the present disclosure, in order to ensure smooth execution of scene actions, an execution sequence among a plurality of scene actions that form a cascade action corresponds to an execution sequence line that has a specific execution sequence but does not have a loop. Specifically, the scene dynamic effect execution relation corresponding to the dynamic effect manager is a directed acyclic graph without weight. Therefore, in an embodiment of the present disclosure, in specifying a scenario action execution relationship corresponding to an action manager, it is necessary to ensure that the scenario action execution relationship corresponds to a directed acyclic graph without a right.
Specifically, taking an application scenario as an example, a series of dynamic effects for energy harvesting operations in a game may generate a directed acyclic graph as shown in fig. 3.
Specifically, in an embodiment of the present disclosure, a scenario dynamic effect execution relationship corresponding to a dynamic effect manager is saved by saving a directed acyclic graph corresponding to the scenario dynamic effect execution relationship. Specifically, in an embodiment of the present disclosure, as shown in fig. 4, a process for specifying a scenario dynamic effect execution relationship corresponding to a dynamic effect manager includes:
s410, modeling is carried out according to a preset execution sequence among scene dynamic effects, and a corresponding directed acyclic graph is generated;
s420, the graph state of the directed acyclic graph is saved.
Further, in some set application problems with N elements, it is common to initially have each element form a set of unit elements, and then merge the sets of elements belonging to the same group in a certain order, during which it is repeatedly found in which set an element is. The collection thus ultimately constituted is called a union. In one embodiment of the present description, the graph states of the directed acyclic graph are saved into a union for facilitating the saving of the graph states of the directed acyclic graph, and for facilitating the later recall and parsing of the saved graph states.
Further, in the practical application scenario, topology ordering is performed on a directed acyclic graph G, where all vertices in the graph G are arranged into a linear sequence, so that if a side < u, v > ∈e (G) is located between any pair of vertices u and v in the graph, u appears before v in the linear sequence. Typically, such a linear sequence is called a sequence satisfying a topological order, simply referred to as a topological sequence.
In an embodiment of the present disclosure, in the dynamic operation method, a scenario dynamic execution relationship corresponding to a dynamic manager corresponds to a directed acyclic graph without a right, and the scenario dynamic execution relationship is stored in a graph state form of the directed acyclic graph.
As shown in fig. 5, the process of sequentially executing the specified scene actions according to the scene action execution relationship corresponding to the action manager includes:
s510, generating a corresponding directed acyclic graph according to a pre-stored graph state corresponding to the dynamic effect manager;
and S520, performing topological sorting on the directed acyclic graph, and sequentially executing specified scene dynamic effects based on a topological sorting result (topological sequence).
Specifically, in an embodiment of the present disclosure, in a specific application scenario, the definition of the execution code is as follows:
■ generateGraph: generating an execution topology map of a dynamic manager
■ bindScene: registering scene dynamic effects into cascade dynamic effects
■ addSceneSeq: execution order of dynamic effects of registration scenario
■ addScene: registration scenario dynamic effects
■ run: executive level linkage effect
■ initcascades: execution portal for dynamic manager
■ next: and informing the dynamic effect manager to finish the dynamic effect of the current scene and starting to execute the dynamic effect of the next scene.
Further, in an actual application scenario, different cascade dynamic effects may have a conflict during execution, so in an embodiment of the present disclosure, a tag is added to a dynamic effect manager corresponding to a cascade dynamic effect having a conflict, so as to ensure that a dynamic effect manager corresponding to a cascade dynamic effect having a conflict is not executed simultaneously.
Specifically, in programming, the concept of object mutex locking is introduced to ensure the integrity of shared data operations. Each object corresponds to a tag, which may be referred to as a "mutex lock," that is used to ensure that only one thread can access the object at any one time. Therefore, in an embodiment of the present disclosure, the dynamic efficiency management method further includes adding mutual exclusion locks for a plurality of corresponding dynamic efficiency managers based on operation conflicts among the plurality of levels of linkage efficiency; when the active effect manager corresponding to the triggered cascade active effect is operated, detecting whether the active effect manager is added with a mutual exclusion lock before executing the active effect manager, if yes, adding the current active effect manager executing operation into a waiting execution queue, sequentially executing the active effect manager according to the arrangement sequence of the waiting execution queue, and releasing the corresponding mutual exclusion lock after completing the execution of the cascade active effect corresponding to the active effect manager.
Specifically, in an embodiment of the present disclosure, the dynamic efficiency operation method further includes adding mutual exclusion locks for a plurality of corresponding dynamic efficiency managers based on operation conflicts among the plurality of levels of linkage efficiency; and running the action manager corresponding to the triggered cascade action, wherein before executing the action manager, detecting whether the action manager is added with the mutual exclusion lock, if so, adding the current action manager executing operation into a waiting execution queue, sequentially executing the action manager according to the arrangement sequence of the waiting execution queue, and releasing the corresponding mutual exclusion lock after the execution of the action manager is finished.
Further, in an embodiment of the present disclosure, the adding step of the mutual exclusion lock may be implemented in the dynamic manager registration step. Specifically, in an embodiment of the present disclosure, as shown in fig. 6, the dynamic efficiency management method includes:
s610, registering and instantiating a dynamic effect manager for managing level linkage effects, including:
s611, registering the scene dynamic effect in a dynamic effect manager;
s612, modeling is carried out according to a preset execution sequence among scene dynamic effects, and a corresponding directed acyclic graph is generated;
s613, saving the graph state of the directed acyclic graph to a union;
S620, adding a mutual exclusion lock for the dynamic effect manager based on the operation conflict among the level linkage effects.
Further, in an embodiment of the present disclosure, as shown in fig. 7, the dynamic operation method includes:
s710, monitoring whether the level linkage effect is triggered;
s711, if triggered, determining a triggered cascade dynamic effect;
s720, detecting whether a mutual exclusion lock is added to a dynamic effect manager corresponding to the triggered cascade dynamic effect;
s731, if the mutual exclusion lock is not added, executing the current action manager execution operation;
s741, if the mutual exclusion lock is added, adding the current execution operation of the dynamic effect manager into a waiting execution queue;
s742, executing the action manager executing operation when the mutual exclusion lock corresponding to the action manager executing operation in the waiting executing queue is released;
s743, releasing the corresponding mutual exclusion lock after the cascade action corresponding to the action manager is executed.
Further, in step S731 and step S743, a corresponding directed acyclic graph is generated according to the pre-stored graph state corresponding to the dynamic manager; and performing topological sorting on the directed acyclic graph, and sequentially executing specified scene dynamic effects based on a topological sorting result (topological sequence).
Further, in an embodiment of the present disclosure, a mutex lock is added for the same cascade dynamic effect during the running of the dynamic effect manager. Specifically, in an embodiment of the present disclosure, as shown in fig. 8, the dynamic efficiency management method includes:
s810, instantiating an action manager;
s811, registering scene dynamic effects and executing relations thereof in a dynamic effect manager;
s812, storing the state of the graph;
s820, starting operation level linkage effect;
s821, generating a directed acyclic graph, and initializing a current state machine;
s830, judging whether the current-stage linkage effect (dynamic effect manager) is locked or not;
s831, if the lock is locked, adding the current-stage linkage effect to a waiting execution queue, and executing after the lock is released;
s832, if not, adding a mutual exclusive lock for the same cascade dynamic effect;
when the exclusive lock is added for the same cascade action or the exclusive lock of the cascade action in the waiting execution queue is released, S840, topology is carried out from the directed acyclic graph source point and the corresponding scene action is executed;
s841, searching all nodes of the next level after the scene dynamic effect of the current node is executed, and executing the corresponding scene dynamic effect;
s850, after the scene dynamic effects corresponding to all the nodes are executed, the cascade dynamic effect execution is finished;
S851, releasing the corresponding mutual exclusion lock.
According to the method of the embodiment of the specification, the cascade dynamic effects formed by scene dynamic effect combination are managed through the dynamic effect manager. Firstly, registering executable dynamic effects, then, designating the execution relation among the dynamic effects, wherein the dynamic effect manager can automatically add mutual exclusion locks to the same cascade dynamic effects, and a user only needs to execute the cascade dynamic effects at an entrance where the cascade dynamic effects are required to be executed. The interface provided by the dynamic manager can also be used for expanding operations such as data monitoring. The pain point of using data flow and event mechanism to carry on the effective management is solved, the maintainability of the code is improved and the effective management cost is reduced to a great extent.
Further, based on the method of the embodiment of the present specification, the embodiment of the present specification further provides a dynamic efficiency management system. Specifically, in an embodiment of the present disclosure, as shown in fig. 9, the dynamic efficiency management system includes:
the manager building module 910 is configured to register and instantiate an action manager for managing level actions, where each action manager corresponds to a cascade action, each cascade action is formed by a series of scene actions with a preset execution sequence, and each scene action is formed by a series of atomic actions for a single action display object.
The manager building block 910 comprises:
a scene action registration unit 911 for registering scene actions in the action manager;
the execution relationship construction unit 912 is configured to specify a scenario dynamic effect execution relationship corresponding to the dynamic effect manager, where the scenario dynamic effect execution relationship is used to describe an execution relationship between each scenario dynamic effect in the level dynamic effect.
Further, based on the method of the embodiment of the present specification, the embodiment of the present specification further provides a dynamic operation system. Specifically, in one embodiment of the present disclosure, as shown in fig. 10, the dynamic operation system includes:
a dynamic effect monitoring module 110, configured to monitor whether the cascade dynamic effect is triggered, and if so, determine the triggered cascade dynamic effect;
the manager operation module 120 is configured to operate an active effect manager corresponding to the triggered cascade active effect, where:
the dynamic effect manager is generated by the dynamic effect management system according to the embodiment of the specification;
the operation effect manager comprises the step of sequentially executing the appointed scene effects according to the scene effect executing relation corresponding to the effect manager.
Further, based on the method of the present invention, the present invention also proposes an apparatus for information processing at an access side apparatus, the apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the apparatus to perform the method of the present invention.
In the 90 s of the 20 th century, improvements to one technology could clearly be distinguished as improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) or software (improvements to the process flow). However, with the development of technology, many improvements of the current method flows can be regarded as direct improvements of hardware circuit structures. Designers almost always obtain corresponding hardware circuit structures by programming improved method flows into hardware circuits. Therefore, an improvement of a method flow cannot be said to be realized by a hardware entity module. For example, a programmable logic device (Programmable Logic Device, PLD) (e.g., field programmable gate array (Field Programmable Gate Array, FPGA)) is an integrated circuit whose logic function is determined by the programming of the device by an accessing party. A designer programs to "integrate" a digital system onto a PLD without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, such programming is mostly implemented by using "logic compiler" software, which is similar to the software compiler used in program development and writing, and the original code before the compiling is also written in a specific programming language, which is called hardware description language (Hardware Description Language, HDL), but not just one of the hdds, but a plurality of kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), lava, lola, myHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog are currently most commonly used. It will also be apparent to those skilled in the art that a hardware circuit implementing the logic method flow can be readily obtained by merely slightly programming the method flow into an integrated circuit using several of the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable logic controllers, and embedded microcontrollers, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, atmel AT91SAM, microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic of the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller in a pure computer readable program code, it is well possible to implement the same functionality by logically programming the method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. Such a controller may thus be regarded as a kind of hardware component, and means for performing various functions included therein may also be regarded as structures within the hardware component. Or even means for achieving the various functions may be regarded as either software modules implementing the methods or structures within hardware components.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each element may be implemented in one or more software and/or hardware elements when implemented in the present application.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (10)

1. A dynamic effect management method, the method comprising:
creating dynamic effect managers for management-level linkage effects, wherein each dynamic effect manager corresponds to one cascade dynamic effect, each cascade dynamic effect is formed by a series of scene dynamic effect combinations with a preset execution sequence, each scene dynamic effect is formed by a series of atomic dynamic effects aiming at a single dynamic effect display object, and registering and instantiating the dynamic effect manager comprises:
Registering the scene dynamic effects in the dynamic effect manager, and designating a scene dynamic effect execution relation corresponding to the dynamic effect manager, wherein the scene dynamic effect execution relation is used for describing the execution relation among all scene dynamic effects in the cascade dynamic effects, the scene dynamic effects comprise an outlet used for notifying the dynamic effect manager that the dynamic effects are executed, and the scene dynamic effect execution relation corresponds to an unauthorized directed acyclic graph.
2. The method of claim 1, specifying a scenario dynamic effect execution relationship corresponding to the dynamic effect manager, comprising:
modeling according to a preset execution sequence among the scene dynamic effects to generate a corresponding directed acyclic graph;
and saving the graph state of the directed acyclic graph.
3. The method of claim 2, saving a graph state of the directed acyclic graph, wherein the graph state is saved into a union.
4. The method according to any one of claims 1-3, registering the scenario dynamic effects in the dynamic effects manager and specifying scenario dynamic effects execution relationships corresponding to the dynamic effects manager, wherein:
registering all scene dynamic effects to generate dynamic effect manager templates, and designating different scene dynamic effect execution relations based on the dynamic effect manager templates to generate different dynamic effect managers;
Or alternatively, the process may be performed,
and registering scene dynamic effects contained in the corresponding cascade dynamic effects in the dynamic effect manager and designating the scene dynamic effect execution relation corresponding to the dynamic effect manager.
5. A method of dynamic operation, the method comprising:
monitoring whether a cascade action is triggered, wherein the cascade action corresponds to an action manager created according to the method of any one of claims 1 to 4;
if the cascade dynamic effect is triggered, determining the triggered cascade dynamic effect;
operating the dynamic effect manager corresponding to the triggered cascade dynamic effect, wherein operating the dynamic effect manager comprises: and executing the appointed scene dynamic effects in sequence according to the scene dynamic effect executing relation corresponding to the dynamic effect manager.
6. The method according to claim 5:
the method further comprises the steps of adding mutual exclusion locks for a plurality of corresponding dynamic effect managers based on operation conflicts among the plurality of levels of linkage effects;
and running the dynamic effect manager corresponding to the triggered cascade dynamic effect, wherein before executing the dynamic effect manager, detecting whether the dynamic effect manager is added with the mutual exclusion lock, if so, adding the current dynamic effect manager executing operation into a waiting execution queue, sequentially executing the dynamic effect manager according to the arrangement sequence of the waiting execution queue, and releasing the corresponding mutual exclusion lock after the dynamic effect manager is executed.
7. The method according to claim 5 or 6:
the scene dynamic execution relationship corresponding to the dynamic manager corresponds to a directed acyclic graph without weight, and the scene dynamic execution relationship is stored in a graph state form of the directed acyclic graph;
sequentially executing the appointed scene dynamic effects according to the scene dynamic effect execution relation corresponding to the dynamic effect manager, wherein the method comprises the following steps:
generating a corresponding directed acyclic graph according to the graph state;
and performing topological sorting on the directed acyclic graph, and sequentially executing specified scene dynamic effects based on a topological sorting result.
8. A dynamic effect management system, the system comprising:
a manager building module for creating dynamic effects managers for managing level dynamic effects, wherein each dynamic effect manager corresponds to a cascade dynamic effect, each cascade dynamic effect is formed by a series of scene dynamic effect combinations with a preset execution sequence, each scene dynamic effect is formed by a series of atomic dynamic effects for a single dynamic effect display object, and the manager building module comprises:
a scene dynamic effect registration unit for registering the scene dynamic effect in the dynamic effect manager;
the execution relation construction unit is used for appointing a scene dynamic effect execution relation corresponding to the dynamic effect manager, wherein the scene dynamic effect execution relation is used for describing the execution relation among all scene dynamic effects in the cascade dynamic effect, the scene dynamic effect comprises an outlet used for informing the dynamic effect manager that the dynamic effect is executed, and the scene dynamic effect execution relation corresponds to a directed acyclic graph without a right.
9. A dynamic operation system, the system comprising:
the dynamic effect monitoring module is used for monitoring whether the cascade dynamic effect is triggered or not, and if so, determining the triggered cascade dynamic effect;
the manager operation module is used for operating the dynamic effect manager corresponding to the triggered cascade dynamic effect, wherein:
the dynamic effect manager is a dynamic effect manager created by the system according to claim 8;
and the running of the dynamic effect manager comprises the step of executing the appointed scene dynamic effect in sequence according to the scene dynamic effect executing relation corresponding to the dynamic effect manager.
10. An apparatus for information processing at an accessing device side, the apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the apparatus to perform the method of any of claims 1 to 7.
CN201911162236.4A 2019-11-25 2019-11-25 Dynamic effect management method, system and equipment Active CN111124695B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911162236.4A CN111124695B (en) 2019-11-25 2019-11-25 Dynamic effect management method, system and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911162236.4A CN111124695B (en) 2019-11-25 2019-11-25 Dynamic effect management method, system and equipment

Publications (2)

Publication Number Publication Date
CN111124695A CN111124695A (en) 2020-05-08
CN111124695B true CN111124695B (en) 2023-05-16

Family

ID=70496454

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911162236.4A Active CN111124695B (en) 2019-11-25 2019-11-25 Dynamic effect management method, system and equipment

Country Status (1)

Country Link
CN (1) CN111124695B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114827165B (en) * 2022-05-30 2024-01-23 蚂蚁区块链科技(上海)有限公司 Method and block link point for grouping multiple transactions

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2002301127B2 (en) * 1996-06-05 2005-11-03 Sega Enterprises, Ltd Fictitious virtual centripetal calculation and simulation system
CN102521202A (en) * 2011-11-18 2012-06-27 东南大学 Automatic discovery method of complex system oriented MAXQ task graph structure
CN107943457A (en) * 2017-11-17 2018-04-20 中山大学 A kind of workflow modeling method and system of service-oriented object
CN108319547A (en) * 2017-01-17 2018-07-24 阿里巴巴集团控股有限公司 Method for generating test case, device and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7602946B2 (en) * 2004-09-24 2009-10-13 Nissan Motor Co., Ltd. Motion detection apparatus and motion detection method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2002301127B2 (en) * 1996-06-05 2005-11-03 Sega Enterprises, Ltd Fictitious virtual centripetal calculation and simulation system
CN102521202A (en) * 2011-11-18 2012-06-27 东南大学 Automatic discovery method of complex system oriented MAXQ task graph structure
CN108319547A (en) * 2017-01-17 2018-07-24 阿里巴巴集团控股有限公司 Method for generating test case, device and system
CN107943457A (en) * 2017-11-17 2018-04-20 中山大学 A kind of workflow modeling method and system of service-oriented object

Also Published As

Publication number Publication date
CN111124695A (en) 2020-05-08

Similar Documents

Publication Publication Date Title
CN116126365B (en) Model deployment method, system, storage medium and electronic equipment
CN116880995B (en) Execution method and device of model task, storage medium and electronic equipment
CN116185532B (en) Task execution system, method, storage medium and electronic equipment
CN111124695B (en) Dynamic effect management method, system and equipment
US20060041525A1 (en) Web application framework
CN116932175B (en) Heterogeneous chip task scheduling method and device based on sequence generation
CN111144132B (en) Semantic recognition method and device
CN116107728B (en) Task execution method and device, storage medium and electronic equipment
CN116341642B (en) Data processing method and device, storage medium and electronic equipment
CN110502575B (en) Method, device and equipment for data synchronization
US20020078251A1 (en) Self-determining command path architecture
ENGELS et al. Object-oriented modeling of multimedia applications
CN116719591A (en) Stock right map display method and device, storage system and electronic equipment
Adiga et al. Object-oriented software modeling of a flexible manufacturing system
Elia et al. Object-oriented design of flexible manufacturing systems
CN117032999B (en) CPU-GPU cooperative scheduling method and device based on asynchronous running
CN117033527B (en) Knowledge graph construction method and device, storage medium and electronic equipment
CN116382877B (en) Task execution method and device, storage medium and electronic equipment
CN116302564B (en) Program distributed execution method based on stateless running
CN112000694B (en) Data acquisition method, device, equipment and medium
CN116167437B (en) Chip management system, method, device and storage medium
CN116484768B (en) System dynamics model construction method and device
Kath et al. An open modeling infrastructure integrating EDOC and CCM
CN117591217A (en) Information display method, device, equipment and storage medium
López et al. Use of Data Flow Diagrams for Building Process with Message Passing: A Parallel Design Proposal.

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant