Event signal transmission method and apparatus, computer device, and storage medium
By using the cross-region server transmission method of event signals in the virtual world and using preset propagation parameters to determine the topological propagation path, the problem of low interaction efficiency among different regional servers in the virtual world is solved, and efficient virtual object interaction and message transmission are achieved.
Patent Information
- Application Number
- PCT/CN2024/076909
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-31
- Filing Date
- 2024-02-08
- Publication Date
- 2024-10-03
AI Technical Summary
Existing technology is difficult to achieve efficient interaction between different regional servers in the virtual world, resulting in low user interaction experience and low human-computer interaction rate.
By introducing the cross-server transmission method of event signals in the virtual world, and using preset propagation parameters to determine the topological propagation path, the cross-region server transmission of event signals is realized and interaction efficiency is improved.
It improves user interaction experience and human-computer interaction rate, greatly improves message transmission efficiency, and enables user-controlled virtual objects to interact efficiently between different regional servers.
Smart Images

Figure CN2024076909_03102024_PF_FP_ABST
Abstract
Description
Event signal transmission method, device, computer equipment and storage medium
[0001] This application claims priority to Chinese patent application No. 202310363625.3 filed on March 31, 2023, entitled “Method, device, computer equipment and storage medium for transmitting event signals,” the entire contents of which are incorporated herein by reference. Technical Field
[0002] The present application relates to the field of computer technology, and in particular to a method, apparatus, computer equipment, and storage medium for transmitting an event signal. Background Art
[0003] With the advancement of computer technology, users can now open a client on their terminal and enter the virtual world provided by the client at any time. Currently, users need to select a server to log in to their account and then enter the virtual world through that server. A server refers to a regional server, each of which handles the services of a sub-virtual world within a virtual world.
[0004] Summary of the Invention
[0005] The embodiments of the present application provide a method, apparatus, computer device, and storage medium for transmitting event signals, which can realize the cross-server transmission of event signals and greatly improve the transmission efficiency of event signals. The technical solution is as follows:
[0006] On the one hand, a method for transmitting an event signal is provided, which is executed by a server, and the method includes: for an event signal configured to a first service zone in a service zone set, determining a topological propagation path of the event signal in the service zone set based on preset propagation parameters of the event signal, wherein the topological propagation path is a propagation path from the first service zone to a second service zone in the service zone set, the second service zone being specified by the first service zone or determined from the service zone set based on the preset propagation parameters, and the preset propagation parameters indicating at least one of the propagation direction or propagation mode of the event signal; and sending the event signal from the first service zone to the second service zone along the topological propagation path.
[0007] On the one hand, a device for transmitting an event signal is provided, the device comprising: a determination module for determining, for an event signal configured to a first service zone in a service zone set, a topological propagation path of the event signal in the service zone set based on preset propagation parameters of the event signal, wherein the topological propagation path is a propagation path from the first service zone to a second service zone in the service zone set, the second service zone being specified by the first service zone or determined from the service zone set based on the preset propagation parameters, and the preset propagation parameters indicating at least one of the propagation direction or propagation mode of the event signal; a sending module for sending the event signal from the first service zone to the second service zone along the topological propagation path.
[0008] On the one hand, a computer device is provided, which includes one or more processors and one or more memories, wherein at least one computer program is stored in the one or more memories, and the at least one computer program is loaded and executed by the one or more processors to enable the computer device to implement the above-mentioned event signal transmission method.
[0009] On the one hand, a non-volatile computer-readable storage medium is provided, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to enable a computer to implement the above-mentioned event signal transmission method.
[0010] In one aspect, a computer program product is provided, comprising one or more computer programs stored in a non-volatile computer-readable storage medium. One or more processors of a computer device can read the one or more computer programs from the non-volatile computer-readable storage medium and execute the one or more computer programs, thereby enabling the computer device to perform the above-described method for transmitting an event signal.
[0011] The technical solution provided by the embodiments of the present application customizes preset propagation parameters for event signals. Based on the preset propagation parameters, the topological propagation path of the event signal can be determined, thereby ensuring that the event signal can flow between different servers and realizing cross-server transmission of the event signal. In this way, even if the virtual objects controlled by the user are located in different servers in the virtual world, the user can still interact across servers through cross-server transmission of the event signal, improving interaction efficiency, thereby enhancing the user's interactive experience and increasing the human-computer interaction rate. In addition, because messages can be transmitted using event signals as the carrier, the efficiency of message transmission can be greatly improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] FIG1 is a schematic diagram of an implementation environment of a method for transmitting an event signal provided in an embodiment of the present application;
[0013] FIG2 is a schematic diagram of a topological space of a virtual world provided in an embodiment of the present application;
[0014] FIG3 is a schematic diagram of a server expansion of a virtual world provided by an embodiment of the present application;
[0015] FIG4 is a flow chart of a method for transmitting an event signal according to an embodiment of the present application;
[0016] FIG5 is a flow chart of a method for transmitting an event signal according to an embodiment of the present application;
[0017] FIG6 is a propagation topology diagram of a diffusion event signal provided in an embodiment of the present application;
[0018] FIG7 is a diagram of a message transmission mechanism for a diffusion event signal provided by an embodiment of the present application;
[0019] FIG8 is a flowchart of a method for transmitting an event signal according to an embodiment of the present application;
[0020] FIG9 is a propagation topology diagram of a one-way transmission event signal provided by an embodiment of the present application;
[0021] FIG10 is a flowchart of a method for transmitting an event signal according to an embodiment of the present application;
[0022] FIG11 is a topological diagram of an internal zone server provided in an embodiment of the present application;
[0023] FIG12 is a flowchart of a method for transmitting an event signal according to an embodiment of the present application;
[0024] FIG13 is a flow chart of a method for expanding a zone service provided in an embodiment of the present application;
[0025] FIG14 is a schematic structural diagram of an event signal transmission device provided in an embodiment of the present application;
[0026] FIG15 is a schematic structural diagram of an event signal transmission device provided in an embodiment of the present application;
[0027] FIG16 is a schematic structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings. In the present application, the terms "first", "second", etc. are used to distinguish between identical items or similar items with substantially the same effects and functions. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", nor is there any limitation on the quantity and execution order. In the present application, the term "at least one" means one or more, and the meaning of "multiple" means two or more. For example, multiple nodes refer to two or more nodes. In the present application, the term "including at least one of A or B" refers to the following situations: including only A, including only B, and including both A and B.
[0029] The user-related information (including but not limited to the user's device information, personal information, behavioral information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application, when applied to specific products or technologies in the manner of the embodiments of this application, are all permitted, agreed, authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant information, data and signals must comply with the relevant laws, regulations and standards of the relevant countries and regions. For example, the event signals involved in this application are all obtained with full authorization.
[0030] Cloud Gaming, also known as Gaming on Demand, is an online gaming technology based on cloud computing. Cloud gaming enables thin clients with relatively limited graphics and data processing capabilities to run high-quality games. In cloud gaming scenarios, the game runs not on the player's terminal but on a cloud server. The cloud server renders the game scene as a video and audio stream, which is transmitted to the player's terminal over the network. The player's terminal does not need powerful graphics and data processing capabilities; it only needs basic streaming capabilities and the ability to receive player input and transmit it to the cloud server.
[0031] A virtual world can be any world in which virtual objects can move. The virtual world can be a virtual world in a game, or a virtual world in VR (Virtual Reality) / AR (Augmented Reality), etc., and the embodiments of this application are not limited to this. Below, the technical concept of this application is described using the virtual world in a game as an example. In some embodiments, the virtual world in a game can also be referred to as a game world, a game-based open world, etc.
[0032] Traditional games are bounded, finite game worlds built on the foundation of classical mechanics. Limited by computing power, it's impossible to store all player data on a single server for business logic operations. Consequently, player data is essentially dispersed and isolated across different servers. The data of players in different servers is independent of each other, making cross-server interaction difficult. Traditional games maintain a global clock in the backend, and servers must maintain synchronization, similar to the concept of "absolute time" in classical mechanics. Furthermore, traditional games treat message transmission time as latency, assuming that message transmission is infinite.
[0033] In traditional game worlds, when accessing gaming services, users must select the server zone they log into their account with, and then enter the game's virtual world through that server zone. This isolates data between different servers, and virtual objects controlled by different users logging into the game's virtual world from different servers cannot meet each other, even if they are in the same virtual world location. This lacks a cross-server interaction mechanism between users, resulting in low interaction efficiency, a reduced user experience, and, consequently, lower human-computer interaction rates. In some embodiments, users may also be referred to as players.
[0034] In the embodiment of the present application, an open world based on games (such as cloud games) is proposed. This open world originates from the principle of special relativity in modern physics and abandons the traditional game world view and time and space view. In the open world, there is no need to maintain a globally unified clock between different districts and servers. It is only necessary to regard each district and server as an independent node in the game world, and each node as a local inertial system to maintain its own clock. In addition, the special theory of relativity points out that the speed of light has an upper limit, so the speed of message transmission must also be limited. In the open world, the process of message transmission itself is also part of the game mechanism and will not be treated as a delay. This open world based on games (such as cloud games) can break through the bounded and limited limitations of traditional games and present an unbounded and infinite game (such as cloud games) world to the outside world.
[0035] The following explains the terms in the embodiments of the present application.
[0036] Games, also known as network games or online games, are multiplayer online games that use the internet as a transmission medium and servers as processing terminals. The games provided in this embodiment are based on the principles of special relativity in modern physics and abandon the game worldview used in related technologies. The basic principles of the game worldview in this embodiment are as follows:
[0037] 1. Time relativity and local inertial reference system: In related technologies, each server of the game (referred to as a zone in this embodiment) has a global clock (referred to as a virtual time zone in this embodiment), and the clocks need to be synchronized between the zones, which is similar to the absolute time in classical mechanics. In the new game worldview, there is no need to maintain a global unified clock. Each independent zone in the game only needs to regard itself as a local inertial reference system and maintain its own clock. For example: Zone 1 maintains its own clock 1, which can be a 24-hour system, and Zone 2 maintains its own clock 2, which is a 48-hour system. Clock 1 and clock 2 are different clocks. In some embodiments, the inertial reference system can also be called an inertial system.
[0038] 2. The Principle of the Constancy of the Speed of Light: In related technologies, games treat the time it takes for information to travel as a delay, not as part of the game flow. Game logic assumes that the speed of information travels infinitely. However, the theory of special relativity states that the speed of light has an upper limit, meaning that the speed of information travel is finite. In this new gaming worldview, the process of information travel itself is considered part of the game. For example, if a player travels from server 1 to server 2, the travel process is also considered part of the game.
[0039] Virtual world: This is the virtual environment displayed (or provided) by the game client when running on a terminal. This virtual world can be a simulation of the real world, a virtual environment that is partially simulated and partially fictional, or a purely fictional virtual environment. The virtual world can be any of two-dimensional, 2.5-dimensional, or three-dimensional virtual worlds. The embodiments of this application do not limit the dimensionality of the virtual world. Users can control the movement of virtual objects in this virtual world.
[0040] Virtual object: refers to an active object in the virtual world. The virtual object can be a player character controlled by the user through the game client, or a non-player character (NPC) set in the virtual world that can interact, or a wild monster or a playmate robot that is not controlled by the user. Schematically, the virtual object is a virtual image in the virtual world that is used to represent the user, such as a virtual person, a virtual animal, an anime character, etc. The virtual world may include multiple virtual objects, each of which has its own shape and volume in the virtual world and occupies a part of the space in the virtual world. Optionally, when the virtual world is a three-dimensional virtual world, the virtual object can be a three-dimensional stereo model, which can be a three-dimensional character built based on three-dimensional human skeleton technology. The same virtual object can show different external images by wearing different skins. In some embodiments, the virtual object can also be implemented using a 2.5-dimensional or 2-dimensional model, which is not limited in the embodiments of the present application.
[0041] Virtual elements: These are the various elements that appear in the virtual world and are used to construct the entire virtual world. These include land, lakes, the sky, various virtual animals, various virtual plants, various virtual buildings, and various virtual props. Virtual objects controlled by players are also considered virtual elements.
[0042] Graphics Processing Unit (GPU): A dedicated chip used in modern personal computers, servers, mobile devices, game consoles, etc. specifically for graphics and image processing.
[0043] Business zone server set: In traditional games, game services are implemented in units of zones and servers to implement business logic calculations. Zone servers refer to regional servers, and each zone server is used to handle the game services of a sub-virtual world in the virtual world. For example, the game server is divided into multiple regional servers, and each regional server is further divided into multiple zone servers. The division standards of regional servers and zone servers are usually different. For example, different regional servers are divided according to the authorized login channels of the game account. Each regional server is divided into multiple zone servers according to the geographical location, and the player data between different zone servers are isolated from each other. In the games involved in this application (such as cloud games), since a cross-zone server message transmission mechanism is provided, the player data between different zone servers is no longer isolated, and all zone servers of the game business are abstractly referred to as a business zone server set.
[0044] Server: The business server set used to deploy the virtual world includes multiple servers. Each server can be implemented as a single server or a server cluster consisting of multiple servers. Servers are also called servers or nodes. In the physical world, servers are not directly connected to each other, but are logically connected through message relay nodes. Each server can only pass messages to other servers with which it is logically connected, and cannot pass messages to other servers that are not logically connected to it.
[0045] In one example, the entire virtual world of the game is regarded as a sphere (refer to a football). The virtual world includes multiple independently running servers (refer to each pentagonal area on the football). Multiple servers are distributed on the surface of the virtual world. Each server extends outward and communicates with a limited number of other servers through message relay nodes. Each server (or message relay node) has a message transmission path with each node adjacent to the boundary, that is, there is a signal line connected in the physical world, and messages can be sent and received to each other.
[0046] Computing Units: These refer to the multiple units into which a server (node) is divided. A server includes multiple computing units. Each computing unit can be implemented as a CPU (Central Processing Unit) or GPU on any server in its server. Each computing unit has an associated sub-area within the shared storage area shared by multiple computing units in the physical server. Multiple parallel computing units within a server are similar to multiple parallel computing cores within a GPU. Messages between computing units are no longer transmitted via signal lines, but rather via shared storage areas. All computing units within a server share a shared clock. Stated another way, all computing units within a server are in the same virtual time zone. To put it another way, the close proximity of computing units allows relativistic effects to be ignored, returning to the classical mechanics approach. Therefore, according to this definition, all events occurring within the same server within the same clock within computing units occur simultaneously but differently. That is, within the same server, all game elements (i.e., virtual elements within the game world) and events can still operate directly based on the shared clock.
[0047] Message transfer node: In the cloud gaming architecture involved in this application, a type of message transfer node is also provided. The message transfer node only provides message transfer functions between different regions and servers, but does not participate in the game business logic calculations. It neither represents the region and server nor the computing unit.
[0048] Events are the foundation of the entire game world. Similar to the description of events in relativity, due to the relativity of time, when describing an objective fact in the game world, we cannot express it as "X event occurred at X location," but rather as "X event occurred at X location at X in an inertial system at X time." In other words, an event always occurs at [x, y, z, t] in a selected inertial system, where x, y, and z are the coordinates of the x, y, and z directions in the inertial system, respectively, and t is the time recorded by the shared clock in that inertial system.
[0049] Given this, events in the game world are also defined by their attributes (what event), the node they are located in (which inertial reference frame, i.e., which server), their logical position within the node (spatial position x, y, z in the selected inertial frame), and the moment they occur within the node (time t in the selected inertial frame). Therefore, an event requires at least the following vectors to describe it: [what, which, where, when], which are called event description vectors.
[0050] In one example, a virtual element in the game world can also be abstracted as an event: what kind of virtual element, which node it is located in, its logical position in the node, and the moment in the node. The only difference between a virtual element and an event is that the virtual element will eventually be rendered in the game world and can be seen by the user. Events and virtual elements can be transformed into and interact with each other. Events can generate virtual elements, and virtual elements can also generate events. This is similar to the relationship between mass and energy in modern physics. Events are more like a kind of virtual energy, and virtual elements are more like a kind of virtual mass. In other words, an event corresponds to at least one of virtual energy and virtual mass. Events include at least one of one-way transmission events and diffusion events.
[0051] Diffusion Events: These are events with no fixed direction, virtual energy, and no virtual mass. They can be sent to all directly connected nodes. Their virtual energy decays with distance. If this does not decay, the Diffusion Event will continue to spread in the game world forever.
[0052] One-way transmission event: an event with a fixed direction and end conditions, with transmission energy and virtual mass. Its transmission energy will decay with the transmission distance, but its virtual mass will not decay with the transmission distance.
[0053] The following describes the system architecture of this application.
[0054] Figure 1 is a schematic diagram of the implementation environment of a method for transmitting an event signal provided in an embodiment of the present application. As shown in Figure 1, in the virtual world based on cloud gaming provided in an embodiment of the present application, at least one independently running zone is provided, and each zone is hosted by a server or a server cluster in the physical world. Each zone is an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.
[0055] For example, a service zone set 100 for deploying a virtual world includes zone 101, zone 102, zone 103, and zone 104. The service zone set 100 is also called a cloud game server, or a cloud game system. Each zone in the service zone set 100 has at least one logically connected zone in the set. For example, zone 101 has logically connected zones 102 and 103, and zone 102 has logically connected zones 101 and 104. For zone 101, it can only send data to logically connected zones 102 and / or 103, and cannot send data directly to zone 104. In the embodiment of the present application, there is no unified global clock between different zones in the service zone set 100. Each zone acts as a local inertial system and only needs to maintain the clock shared by different computing units within itself.
[0056] When an event is generated in a certain zone server, before the event signal of the event is passed to another zone server, the event signal of the event will not have any impact on the operation of the other zone server. Until the event signal of the event is passed to the other zone server, the event signal of the event will participate in the business logic operation of the other zone server. For example, when an event is generated in zone server 101, before the event signal of the event is passed to zone server 102, the event signal of the event will not have any impact on the operation of zone server 102. Until the event signal of the event is passed to zone server 102, the event signal of the event will participate in the business logic operation of zone server 102. An event signal refers to a signal used to carry an event, and an event is transmitted (or called propagation, transmission, or flow) between different zones servers in the form of an event signal.
[0057] Drawing on the Big Bang theory, the universe is in constant expansion, and galaxies are moving away from each other. Therefore, by analogy with the Big Bang theory, "expansion" is a basic property of the virtual world based on cloud gaming in this application. The entire virtual world continues to expand spontaneously, and the topological relationship between the servers is dynamic. This is completely different from traditional games. The increase in servers in traditional games is not due to the nature of the game itself, but is due to external human interference. The number and topological relationship of servers are static. If the server reaches the service limit, players can only wait in line.
[0058] On this basis, each zone in the service zone set 100 can split to generate a new zone and its associated message transfer node when the zone expansion conditions are met. The new zone will be added to the virtual world, that is, connected to the service zone set 100. The new zone added to the virtual world will not have any impact on the existing zones. Only when the event signal in the new zone is transmitted to the existing zone will it affect the operation of the existing zone. For example, the new zone is zone 105. When zone 105 joins the service zone set 100, it will not have any impact on zone 101, zone 102, zone 103 and zone 104. Assuming that zone 105 is logically connected to zone 101, the operation of zone 101 will be affected only when the event signal in zone 105 is transmitted to zone 101.
[0059] In the cloud gaming-based virtual world of this application embodiment, each server only needs to compute and maintain information transmitted to that server, without having to worry about or synchronize data with other servers, let alone maintain a global clock between servers. This allows the expansion of the number of server regions in the game world to be independent of the server's computing power, achieving unbounded and unlimited gaming and providing a completely new gaming worldview.
[0060] In the cloud gaming framework, users can experience cloud gaming through terminals, but the game client on the terminal side only plays and displays the game screen stream and does not participate in business logic operations or game screen rendering. The cloud game actually runs on the cloud gaming server, and the game client on the terminal side only provides simple operation instruction sending and receiving functions and game screen stream playback functions. Optionally, the terminal is a smartphone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, etc., but is not limited to this. The terminal and the server can be connected directly or indirectly through wired or wireless communication, and this application does not impose any restrictions on this.
[0061] To further illustrate based on Figure 1, assume that the virtual world is abstracted as a sphere in a topological space. The various zones and servers in the virtual world are distributed on the surface of the sphere. Each zone and server extends a limited number of communication connections outward. Each zone and server is hosted by a server or server cluster, and the zone and server maintains the clock cycle of its own inertial system. In one possible implementation, the zones and servers are not directly connected. That is, in addition to the zones and servers, there are also multiple message transfer nodes (not shown in Figure 1) distributed on the surface of the sphere. Each message transfer node is connected to a limited number of zones and servers or other message transfer nodes. The difference between message transfer nodes and zones and servers is that message transfer nodes are only used for the transmission of event signals and simple event processing, and do not participate in the business logic operations of cloud games. That is, player characters will not run in message transfer nodes. Message transfer nodes and zones and servers are both "nodes" in the virtual world. The above-mentioned message transfer nodes and zones and servers together constitute the cloud game world.
[0062] In the virtual world, however, the event signals used to carry events can only propagate along the surface of the sphere. That is, the event signals generated by each server can only be directly transmitted to adjacent nodes (such as adjacent servers or adjacent message relay nodes). Servers and message relay nodes can both send and receive event signals. Event signals propagate at a finite speed in the virtual world. The propagation speed is the speed at which these nodes can send and receive event signals. It should be noted that because each node has different processing speeds for event signals, the propagation speed of event signals in different nodes is not necessarily equal.
[0063] Events carried by event signals are divided into two types: one-way transmission events and diffusion events. One-way transmission events propagate in a specific connection direction, with their traversal energy attenuating as they propagate, but their virtual mass does not. Diffusion events propagate in all directions, lacking virtual mass, and with their virtual energy attenuating as they propagate. For example, the movement of a player-controlled virtual object between different servers in the game world can be treated as a one-way transmission event. During this transmission process, the virtual object acts as an event signal, flowing through the virtual world like energy. Because the virtual world has the property of spontaneous expansion, it automatically expands according to predefined rules (i.e., server expansion conditions). Player-controlled virtual objects can be born in existing servers with insufficient capacity or in newly created servers generated by expansion. Expansion occurs in both the physical world and the topological sphere. New servers and new message relay nodes are generated from the nodes that expand from existing servers. Therefore, new servers can be selected from the nodes that expand from existing servers. New servers created after expansion connect only to surrounding nodes, without changing the connections between non-adjacent nodes. It is precisely because the zones are distributed like an area on the surface of a football at both the physical and logical levels that it is possible to achieve: infinite expansion of the game world, infinite expansion of the number of zones, infinite increase of virtual objects, and all virtual elements in the game world can operate and interact at the same time, and flow arbitrarily within and across zones.
[0064] Below, we will use Figure 2 as an example to illustrate a possible topological space of a virtual world. As shown in Figure 2, when the virtual world is initialized, an inscribed regular tetrahedron 210 is found based on the sphere 200 of the topological space, and the four vertices 211 to 214 of the inscribed regular tetrahedron 210 are used as the boundary vertices of one zone and three message transfer nodes respectively. For any two boundary vertices, a great circle arc passing through these two boundary vertices can be found on the sphere (i.e., the surface of the sphere). The "great circle arc on the sphere" here refers to the intersection of the plane passing through the center of the sphere and the sphere. Using the great circle arc between the vertices as the boundary, one zone and three message transfer nodes can be divided on the sphere. In one possible division method, one zone 201 and three message transfer nodes 202 to 204 are divided on the sphere. For example, three bold arcs form the boundaries of server 201. The portion enclosed by the arcs on the sphere is server 201, while the portions enclosed by the bold arcs and the remaining arcs constitute message relay nodes 202 to 204. It should be noted that both "server" and "message relay node" refer to the closed area enclosed by the arcs on the sphere, not the boundary vertices. This shows that the topological distribution between servers and message relay nodes is like the distribution of planets in space.
[0065] In the virtual world of this application, event signals can only be transmitted across the boundary on the sphere, and cannot be transmitted outside the sphere (such as through the interior of the sphere). This may be equivalent to each zone server or message transfer node having a message transmission path with three nodes adjacent to the boundary (which may be other zone servers or message transfer nodes). The two physical machines where the two nodes with the message transmission path are located are connected by a signal line, and can send and receive information such as event signals to each other.
[0066] Below, we will use Figure 3 as an example to illustrate a possible implementation of the server expansion process. As shown in Figure 3, the servers and message transfer nodes in the game world can generate more servers and message transfer nodes in a similar splitting manner. Taking the boundary of the message transfer node 202 as an example, the boundary of the message transfer node 202 includes three large arcs 31 to 33, with the midpoint of each large arc as the new boundary vertex, so that the connection between the three boundary vertices generates new large arcs 34 to 36. In this way, the original boundary of the message transfer node 202 is naturally divided into two. For example, the large arc 31 is divided into two segments 31a and 31b with the midpoint as the boundary. Similarly, the large arc 32 is divided into two segments 32a and 32b, and the large arc 33 is also divided into two segments 33a and 33b. Thus, the new large arcs 34-36 and the two-part large arcs 31a, 31b, 32a, 32b, 33a, and 33b, enclose the portion of the sphere that these large arcs enclose, constitute a newly created server A and three new message relay nodes B, C, and D. Each time a server (or message relay node) splits into four on the sphere, the central portion can be used as the server, and the surrounding portions as message relay nodes. In this way, existing servers and message relay nodes can be repeatedly split to create new nodes in a similar manner, allowing the virtual world to expand indefinitely. From the perspective of surface area, this splitting method may not appear to cause expansion (i.e., it does not increase the volume of the sphere). However, because the message transmission speed between two nodes is constant, splitting into more small pieces will cause the message transmission paths between servers to become longer, just like the distance between galaxies in the universe. This essentially allows the virtual world to continue to expand in this way.
[0067] The following will introduce the basic communication process between different regions and servers in the virtual world of this application in conjunction with Figure 4.
[0068] Figure 4 is a flowchart of a method for transmitting an event signal provided by an embodiment of the present application. Referring to Figure 4, this embodiment is executed by a server, and the server refers to a server for processing the business of the virtual world. Exemplarily, the server includes a business zone server set for deploying the virtual world, and this embodiment can be executed by the business zone server set in the server. The business zone server set is a set composed of all zones in the server, which can provide business services to the outside world and can therefore be regarded as a server in the virtual world. The business zone server set includes at least two zones, and the at least two zones include a first zone server and a second zone server that are logically connected. The first zone server and the second zone server are logically connected, which means that signals or data can be transmitted between the first zone server and the second zone server. Below, the first zone server is used as the source node of the event signal and the second zone server is used as the target node of the event signal as an example to introduce the method for transmitting the event signal. The method for transmitting the event signal includes the following steps 401 and 402:
[0069] 401. For an event signal configured for a first service zone in a service zone set, determine a topological propagation path of the event signal in the service zone set based on preset propagation parameters of the event signal, wherein the topological propagation path is a propagation path from the first service zone to a second service zone in the service zone set, and the second service zone is specified by the first service zone or determined from the service zone set based on the preset propagation parameters, and the preset propagation parameters indicate at least one of a propagation direction or a propagation mode of the event signal.
[0070] An event signal refers to a signal used to carry an event. In other words, an event is transmitted (or called propagation, transmission, or flow) between different servers in the form of an event signal. Events are the basic units of operation in a virtual world. In some embodiments, events may refer to interactive operations. Interactive operations refer to operations in which users control virtual objects to interact in the virtual world. For example, interactive operations may include but are not limited to operations such as sending messages, moving, launching virtual props, aiming and shooting at a certain location, attacking, and defending. In some embodiments, interactive operations may refer to interactive operations in a game. In this case, event signals refer to signals of interactive operations in the game, for example, signals of operations that launch virtual props.
[0071] In some embodiments, a user can control a virtual object to perform an action (i.e., an interactive operation) in the first zone server through a game client on a terminal. The first zone server generates an event signal for the event generated by the action instruction information provided by the game client. If the event only acts within the first zone server, the event signal only involves the transmission between different computing units within the first zone server, or is directly processed on the current computing unit without the need to interact with other computing units. If the event acts on a second zone server other than the first zone server, then the event signal needs to be sent from the first zone server to the second zone server in the virtual world. Only after the event signal reaches the second zone server will it participate in the business logic operation of the second zone server. Otherwise, the second zone server will not perceive the event signal. It should be noted that since the message transmission mechanism between different computing units within the zone server is the same as the message transmission mechanism between different zones servers, the message transmission mechanism between different zones servers is first described in this embodiment.
[0072] In some embodiments, when the event acts on a second zone other than the first zone, there are two situations. The second zone is a zone designated by the first zone, or the second zone is a currently unknown pending zone. Depending on whether the event signal of the event clearly points to the determined second zone, the type of event signal can be divided into diffusion event signals and one-way transmission event signals. The diffusion event signal does not point to the determined second zone, so it does not have a given propagation direction. The propagation mode of the diffusion event signal in the topological space is similar to broadcast, groupcast or multicast, while the one-way transmission event signal points to the determined second zone, so it has a given propagation direction. The propagation mode of the one-way transmission event signal in the topological space is similar to unicast.
[0073] Before transmitting an event signal, it is necessary to determine preset propagation parameters for the event signal. These preset propagation parameters indicate at least one of the propagation direction and propagation mode of the event signal. The propagation direction indicates the direction in which the event signal propagates, and the propagation mode indicates the mode in which the event signal propagates. In some embodiments, the preset propagation parameters for the event signal can be configured by a technician or based on the type of event signal.
[0074] The propagation mode is used to constrain at least one propagation element in the propagation process. A propagation element is the basic unit that constitutes the propagation process. For example, a propagation element may include at least one of the start condition of the propagation process, the end condition of the propagation process, the number of propagations, the change pattern of the propagation direction, and the propagation rate. For example, when the propagation mode is used to constrain the start and end conditions of the propagation process, the propagation mode may mean that propagation begins based on the initial value of the virtual energy and stops when the initial value of the virtual energy decays to the termination threshold. For another example, when the propagation mode is used to constrain the change pattern of the propagation direction of the propagation process, the propagation mode may mean that the propagation direction of the next propagation is rotated 15 degrees clockwise relative to the propagation direction of the previous propagation.
[0075] Exemplarily, when the preset propagation parameters of an event signal are configured based on the type of the event signal, the process of determining the preset propagation parameters includes: configuring preset propagation parameters that match the type of the event signal based on the type of the event signal. The type of the event signal is categorized based on whether the event signal has a given propagation direction. Exemplarily, the type of event signal can be categorized into diffusion event signals and unidirectional transmission event signals. Diffusion event signals do not have a given propagation direction, while unidirectional transmission event signals do have a given propagation direction.
[0076] It should be noted that the type of the event signal matches the event type of the event carried by the event signal. If the event type of the event carried by the event signal is a diffusion event, the type of the event signal is a diffusion event signal. If the event type of the event carried by the event signal is a one-way transmission event, the type of the event signal is a one-way transmission event signal. In some embodiments, the diffusion event signal may also be referred to as the event signal of a diffusion event, and the one-way transmission event signal may also be referred to as the event signal of a one-way transmission event.
[0077] For the case where the preset propagation parameters of the event signal are configured based on the type of the event signal, determining the topological propagation path of the event signal in the service area and service set based on the preset propagation parameters of the event signal means: determining the topological propagation path of the event signal in the service area and service set based on the preset propagation parameters of the event signal that match the type.
[0078] Based on the configuration of the preset propagation parameters of the event signal based on the type of the event signal, after encapsulating the event into an event signal, the first zone server can configure preset propagation parameters that match the type of the event signal based on the type of the event signal. The preset propagation parameters indicate at least one of the propagation direction or propagation mode of the event signal under the corresponding event signal type. The method for determining the preset propagation parameters will be described in detail in the next embodiment and is not further described here.
[0079] It is understandable that since the diffusion event signal does not specify the propagation direction and the one-way transmission event signal specifies the propagation direction, the two different types of event signals must have completely different propagation directions or propagation modes. By configuring the preset propagation parameters, the propagation direction or propagation mode suitable for each type of event signal can be indicated, so that different types of event signals can flow across regions and servers in the virtual world. Since messages can be transmitted using event signals as the carrier, the efficiency of message transmission can be improved.
[0080] In some embodiments, the first zone server can further determine the topological propagation path of the event signal in the service zone server set based on the determined preset propagation parameters. This topological propagation path refers to the path along which the event signal propagates along the sphere projected by the virtual world in the topological space. A topological propagation path is a path that propagates along the surface of a topological structure, and a topological structure is a geometric structure composed of points and lines. The service zone server set can be abstracted as a topological structure, that is, the zones in the service zone server set are abstracted as points, the transmission medium between the zones in the service zone server set is abstracted as a line, and the structure composed of points and lines is used as a topological structure. The zones in the service zone server set are distributed on the surface of the topological structure, and the event signal can only propagate across the boundary on the surface of the topological structure, and it is impossible to propagate outside the surface of the topological structure (such as through the inside of the topological structure). Therefore, in the embodiment of the present application, the propagation path of the event signal is called a topological propagation path.
[0081] In some embodiments, the topology can be approximated as a sphere, where the service zones in the service zone set are distributed on the surface of the sphere. Event signals can only be transmitted across the boundaries of the sphere and cannot be transmitted outside the sphere (e.g., through the interior of the sphere). In some embodiments, the space in which the topology resides can be referred to as a topological space. The topology can be considered a sphere projected by the virtual world in the topological space. The topological propagation path can also be understood as a propagation path on the surface of the sphere projected by the virtual world in the topological space.
[0082] For diffusion event signals, the topological propagation path typically has multiple branches, each pointing to a secondary server. For unidirectional event signals, the topological propagation path typically has a single branch, and this single branch points to the secondary server. The topological propagation paths for different types of event signals are determined differently, as detailed in the next embodiment and not detailed here.
[0083] In some embodiments, the second zone server may be designated by the first zone server. For example, if the user specifies that the virtual object should be moved from zone server 1 to zone server 2, then this crossing event will have a designated second zone server (i.e., zone server 2); or, the second zone server may be determined from a set of business zones servers based on preset propagation parameters. For example, if the user issues a bounty notice for a specified virtual object, the bounty event corresponding to this bounty notice will be broadcast along the topological propagation path until the virtual energy of the bounty event is insufficient and the broadcast is stopped.
[0084] 402. Send the event signal from the first server to the second server along the topology propagation path.
[0085] Exemplarily, after reaching the second zone server, the event signal participates in the business logic operation of the second zone server.
[0086] In some embodiments, after the topological propagation path is determined, in the virtual world, the event signal will be sent from the first server to the second server along the topological propagation path. In the topological space, the event signal will flow from the node representing the first server to the node representing the second server along the projection of the topological propagation path on the sphere. Only after the event signal reaches the second server can it participate in the business logic operation of the second server. Before the event signal reaches the second server, the second server has no perception of the event signal, and the second server does not have to wait for the event signal to arrive, because the event signal may encounter certain obstacles and fail to reach the second server. The first server and the second server are independent inertial systems, each maintaining a shared clock for different computing units within itself, but there is no need to maintain a global clock between the first server and the second server.
[0087] All the above-mentioned optional technical solutions can be combined in any way to form optional embodiments of the present disclosure, and will not be described in detail here. The method provided in the embodiment of the present application constructs a cross-server message transmission mechanism with event signals as the carrier between the servers in the virtual world, and customizes preset propagation parameters for the event signals. The topological propagation path of the event signal can be determined according to the preset propagation parameters, thereby ensuring that the event signal can flow between different servers and realize cross-server transmission of the event signal. In this way, even if the virtual objects controlled by the user are in different servers in the virtual world, the user can interact across servers through the cross-server transmission of the event signal, thereby improving the interaction efficiency, thereby improving the user's interactive experience, and improving the human-computer interaction rate. In addition, since the message can be transmitted with the event signal as the carrier, the message transmission efficiency can be greatly improved.
[0088] In addition, when customizing preset propagation parameters for event signals, different preset propagation parameters are customized for different types of event signals, so that different types of event signals can flow across regions and servers in the virtual world, realizing cross-region and server transmission of multiple types of event signals, thereby enabling users to conduct cross-region and server interactions through cross-region and server transmission of multiple types of event signals, further improving interaction efficiency and user interaction experience, increasing human-computer interaction rate, and further improving message transmission efficiency.
[0089] The previous embodiment briefly described how an event signal generated by the first server is transmitted to the second server in the virtual world. Because different event signal types have different topological propagation paths, this embodiment and the next will describe the propagation processes of diffusion event signals and one-way transmission event signals in the virtual world, respectively. When an event signal circulates between different servers, if the event signal does not contain virtual mass, it is accompanied only by energy decay and information transmission. If the event signal contains virtual mass, in addition to energy decay, it is often accompanied by the flow of certain virtual elements (referring to events that will be rendered on the game screen; virtual elements are a special case of events) between sub-virtual worlds. In other words, virtual elements will travel from the sub-virtual world of the first server to the sub-virtual world of the second server. "Sub-virtual worlds" here refer to the division of the virtual world by server. Each server is uniquely associated with a sub-virtual world within the virtual world. Virtual elements contained in sub-virtual worlds (including native virtual elements and virtual elements transferred from other sub-virtual worlds) are rendered on the game screen.
[0090] Figure 5 is a flowchart of a method for transmitting an event signal provided by an embodiment of the present application. Referring to Figure 5, taking the event type of the event carried by the event signal as a diffusion event, that is, the type of the event signal is a diffusion event signal as an example, the transmission mechanism of the diffusion event signal between different zones in the business zone set is introduced. Among them, the business zone set is a set composed of all zones in the business, which can provide business services to the outside world, and therefore can be regarded as a server for deploying a virtual world. The business zone set includes at least two zones, and each zone in the business zone set is uniquely associated with a sub-virtual world in the virtual world. The at least two zones include a first zone and a second zone, which are logically connected. The first zone is the source node of the event signal, and the second zone is the target node of the event signal. The method for transmitting the diffusion event signal includes the following steps 501 to 505:
[0091] 501. For an event signal configured for a first zone server in a service zone server set, determine a type of the event signal. The type of the event signal is classified based on whether the event signal has a given propagation direction.
[0092] In some embodiments, a user can control a virtual object to perform an action in a first zone server through a game client on a terminal. The first zone server generates an event signal for an event generated by the action indication information based on the action indication information provided by the game client. If the event only acts within the first zone server, the event signal only involves the transmission between different computing units within the first zone server, or is directly processed on the current computing unit without the need to interact with other computing units. If the event acts on a second zone server other than the first zone server, then the event signal needs to be sent from the first zone server to the second zone server in the virtual world. Only after the event signal reaches the second zone server will it participate in the business logic operation of the second zone server. Otherwise, the second zone server will not perceive the event signal. In some embodiments, when the event acts on a second zone other than the first zone, there are two situations. The second zone is a zone designated by the first zone, or the second zone is a currently unknown pending zone. Depending on whether the event signal clearly points to the determined second zone, the type of event signal can be divided into diffusion event signals and one-way transmission event signals. The diffusion event signal does not point to the determined second zone, so it does not have a given propagation direction. The propagation mode of the one-way transmission event signal in the topological space is similar to broadcast, groupcast or multicast, while the one-way transmission event signal points to the determined second zone, so it has a given propagation direction. The propagation mode of the one-way transmission event signal in the topological space is similar to unicast.
[0093] On this basis, after the first zone server encapsulates the event into an event signal, it configures the type of the event signal according to whether the event signal has a given propagation direction. When the event signal does not have the propagation direction given by the first zone server, the type of the event signal is configured as a diffusion event signal, indicating that this event signal does not point to a certain second zone server, but selects the second zone server based on the attenuation of the virtual energy; when the event signal has the propagation direction given by the first zone server, the type of the event signal is configured as a one-way transmission event signal, indicating that this event signal points to a specific second zone server (but it may not actually reach the second zone server, because it is possible to meet the crossing end condition in advance when crossing to a certain point along the way in the second zone server). In the embodiment of the present application, the type of event signal is a diffusion event signal as an example for explanation, and the case where the type of event signal is a one-way transmission event signal will be explained in the next embodiment.
[0094] In some embodiments, when the first zone server encapsulates the diffusion event into an event signal, it can use an event description vector [what, which, where, when] to describe the diffusion event, where what represents the attributes of the event (what event), which represents the node where the event is located (which inertial reference frame, that is, which zone server), where represents the logical position where the event occurs in the node (spatial position x, y, z in the selected inertial frame), and when represents the moment when the event occurs in the node (time t in the selected inertial frame).
[0095] In some embodiments, the "what" in the event description vector records an event ID (identification), an event type, and preset propagation parameters, wherein the event ID is used to uniquely identify an event (determined by the action indication information triggered by the user on the game client), the event type is used to indicate whether the event identified by the event ID is a diffusion event or a one-way transmission event, and the preset propagation parameters are used to indicate at least one of the propagation direction or propagation mode of the event signal carrying the event. For an event signal carrying a diffusion event (i.e., a diffusion event signal), the preset propagation parameters of the diffusion event signal include at least the energy initial and termination thresholds determined in step 502 below.
[0096] In some embodiments, a mapping table of event IDs and event types is pre-stored on each service in the service service set to improve the real-time computing efficiency of the cloud gaming system. In the mapping table, a key-value pair data structure is used to indicate the event type to which each event belongs. For example, the event ID of each event is used as the key name Key, and the type ID of the event type to which each event belongs is used as the key value Value. In this way, after the event ID is determined based on the action indication information triggered by the user on the game client, the mapping table is queried using the event ID as the index. If the index can hit any Key-Value data structure, the type ID in the Value is taken out to determine the event type indicated by the type ID; if the index does not hit any Key-Value data structure, an error code can be returned. In one example, since event types are divided into diffusion events and one-way transmission events, the type ID can be implemented as a binary data or Boolean data. The value of the binary data is 1 or 0, and the value of the Boolean data is true (True) or false (False), which corresponds exactly to the two event types, thereby improving the efficiency of determining the event type.
[0097] To further explain, event ID and type ID have different meanings. Event ID represents what kind of event it is, while type ID represents what type of event it belongs to. Multiple events with different event IDs may have the same or different type IDs. For example, the event ID of "bounty event" is 001, the event ID of "all-server chat" is 002, the event ID of "firing event" is 003, and the event ID of "crossing event" is 004. Among them, "bounty event" and "all-server chat" have different event IDs, but have the same type ID (both are diffusion events). Similarly, "firing event" and "crossing event" have different event IDs, but have the same type ID (both are one-way transmission events). Examining "bounty event" and "crossing event" again, we can see that they have different event IDs and different type IDs. For example, when the type ID is a Boolean data and the value True is defined to represent a one-way transmission event and the value False is defined to represent a diffusion event, the type IDs of "bounty event" and "server-wide chat" are both False, and the type IDs of "firing event" and "crossing event" are both True.
[0098] It should be noted that, in addition to binary data and Boolean data, the type ID can also be implemented as other data types such as strings, integer data, floating-point data, etc., and the embodiments of this application do not specifically limit this. In addition, in addition to the Key-Value table, the mapping relationship table can also be implemented as other data structures such as hash tables and bitmaps, and the embodiments of this application do not specifically limit this. In addition, in addition to diffusion events and one-way transmission events, more types of events can also be divided in the cloud gaming system according to business needs, and they will not be enumerated here one by one.
[0099] 502. When the event signal is a diffusion event signal, configure an initial energy value and a termination threshold of the diffusion event signal. The diffusion event signal does not have a given propagation direction, and the virtual energy of the diffusion event signal decreases with propagation distance.
[0100] The initial energy value represents the initial value of the virtual energy of the diffusion event signal, and the termination threshold represents the energy threshold of the virtual energy at which the diffusion event signal stops propagating. For example, the propagation distance refers to the distance the diffusion event signal propagates from the first server to other servers or message relay nodes. The diffusion event signal propagates along a topological propagation path, and the propagation distance can be determined based on the topological propagation path.
[0101] In some embodiments, for an event signal whose type ID indicates a diffusion event (i.e., a diffusion event signal), the first zone server can configure an initial energy value and a termination threshold of the diffusion event signal. Both the initial energy value and the termination threshold belong to preset propagation parameters of the diffusion event signal. The preset propagation parameters indicate the propagation mode of the event signal of the diffusion event. For the diffusion event signal, since the propagation direction will be automatically configured as non-directional propagation, it is only necessary to configure the initial energy value and the termination threshold during non-directional propagation. The initial energy value and the termination threshold determine the propagation mode of the diffusion event signal (the initial energy value determines the initial virtual energy (i.e., the initial value of the virtual energy), and the termination threshold determines under what circumstances the propagation is stopped).
[0102] In some embodiments, different preset propagation parameters are configured for diffusion event signals with different event IDs. That is, even if they belong to the same diffusion event signal, when the event ID is different, they can also have different energy initial values and / or termination thresholds. This can make the preset propagation parameters of the diffusion event signal more diverse and increase the efficiency of human-computer interaction. In this case, the event ID and its preset propagation parameters can be bound so that the energy initial value and termination threshold of such diffusion event signal can be quickly queried based on the event ID, thereby improving the access efficiency of the preset propagation parameters and improving the computing efficiency of cloud gaming. For example, each zone server caches a preset propagation parameter routing table for diffusion event signals. The preset propagation parameter routing table uses a Key-Value data structure to indicate the preset propagation parameters that should be configured for each diffusion event signal. For example, the event ID of each diffusion event signal is used as the Key, and the two-tuple {initial energy value, termination threshold} of each diffusion event signal is used as the Value. In this way, after determining the event ID, the event ID can be used as an index to quickly query the preset propagation parameter routing table to find the two-tuple {initial energy value, termination threshold} bound to the event ID, thereby quickly configuring the initial energy value and termination threshold for the current diffusion event signal, thereby improving the configuration efficiency of the preset propagation parameters.
[0103] In other embodiments, the energy initial value and / or termination threshold can be a value converted in real time according to the attributes of the virtual object controlled by the user. In this way, even if the event ID is the same, if the attributes of the virtual object triggering the event are different, there may be different energy initial values and / or termination thresholds, thereby greatly enriching the value conditions of the transmission parameters of the diversified diffusion event signals. Technicians can define the conversion rules between the attributes and the preset propagation parameters, such as defining a conversion function. Different conversion functions can be used according to the sect, equipment, attributes, skills, etc. of the virtual object, which are not specifically limited here.
[0104] In other embodiments, when the energy initial value and termination threshold of the diffusion event signal are not configured in the first zone, the energy initial value and termination threshold of the diffusion event signal can be automatically set to the default value (Default). For example, the default energy initial value is unit 1, and the default termination threshold is 1 / 10. At this time, when the diffusion event signal is triggered in the first zone, the virtual energy is unit 1. When the virtual energy decays to less than 1 / 10 during propagation in the virtual world, the propagation stops. It should be noted that technicians can also configure other default energy initial values and termination thresholds. The energy initial value and termination threshold are not necessarily proportional. They may each be configured as an absolute value, for example, the energy initial value is 10 and the termination threshold is 1. No specific limitation is made here.
[0105] In steps 501-502, a possible implementation method for configuring preset propagation parameters matching the type of event signal is provided. If the event signal is a diffusion event signal, the preset propagation parameters for the diffusion event signal include at least an initial energy value and a termination threshold. Specifically, when the virtual energy of the diffusion event signal during propagation falls below the termination threshold, the diffusion event signal ceases propagation. This ensures that the diffusion event signal does not endlessly propagate in the virtual world, reduces the transmission overhead of the diffusion event signal, and ensures that the transmission overhead of the diffusion event signal is highly controllable.
[0106] 503. Taking the first zone server as the path starting point, determine at least one path passing point and at least one path end point of the diffusion event signal, wherein the value obtained by attenuating the initial energy value when the diffusion event signal reaches the at least one path end point is less than the termination threshold.
[0107] The topological propagation path begins with the first server and ends with the second server. For any event signal, the topological propagation path has only one starting point, but can have one or more endpoints. Typically, a diffusion event signal has at least two endpoints, while a unidirectional event signal has only one endpoint.
[0108] For the diffusion event signal, the second zone is not designated by the first zone. The second zone is determined from the service zone set based on the preset propagation parameters. In addition, the diffusion event signal is similar to spreading from the first zone to the surrounding logically connected nodes with the path starting point as the first zone until the virtual energy is insufficient (less than the termination threshold) and stops spreading. Therefore, the topological propagation path of the diffusion event signal usually has multiple branches, each branch has a path end point, and the path end point of each branch indicates a second zone. All nodes on each branch except the path starting point and the path end point are path passing points. The path passing points can be zone servers or message transfer nodes, and multiple branches can have the same path end point (but are divided into different branches due to different path passing points). Each branch refers to a message transmission path from the path starting point to a path end point. In some embodiments, there may be a branch among the multiple branches that only includes the path starting point and the path end point, but does not include the path passing point.
[0109] In some embodiments, after configuring the initial energy value and termination threshold of the diffusion event signal at the first server (source node), the diffusion event signal is propagated along all connected directions on the first server. For each path waypoint other than the first server, the diffusion event signal is propagated at the path waypoint in all connected directions except the source direction. The source direction refers to the direction from which the diffusion event signal is received by the path waypoint. Furthermore, the diffusion event signal adheres to the energy equivalence principle during each propagation. Furthermore, at the same path waypoint, the virtual energies of the same diffusion event signal from different branches can be superimposed, and the energy values are summed before diffusion. Furthermore, upon reaching the path endpoint, propagation stops because the virtual energy is less than the termination threshold. Only when the virtual energy is less than the termination threshold will propagation stop and a path endpoint be found. Otherwise, the signal will continue to propagate to other connected nodes as a path waypoint.
[0110] Below, a diffusion event signal that stops after propagating N times is taken as an example, where N is an integer greater than or equal to 1. Steps 5031 to 5033 are used to describe in detail how to determine at least one path point and at least one path endpoint on the topological propagation path of this diffusion event signal:
[0111] 5031. Taking the first zone server as the path starting point, determine multiple first-order propagation directions of the diffusion event signal and a first-order energy value obtained by attenuating the initial energy value after the diffusion event signal propagates once.
[0112] In some embodiments, in the topological space of the virtual world, with the first zone server as the starting point of the path, all connection directions of the first zone server are determined as multiple first-order propagation directions of the diffusion event signal. Then, based on the principle of energy equalization, the virtual energy of the diffusion event signal is equally divided according to the number of first-order propagation directions, and the first-order energy value of the diffusion event signal is obtained after attenuation after one propagation in each first-order propagation direction.
[0113] In one example, FIG6 is a propagation topology diagram of a diffusion event signal provided by an embodiment of the present application. As shown in FIG6 , a partial plane unfolding topological structure of a sphere in the topological space of the virtual world is shown, and each triangle is used to represent a node. The node can be a zone or a message transfer node. Assuming that node 61 represents the first zone of the current diffusion event signal, then taking node 61 as the starting point of the path, find all three connection directions of node 61, "↑", "↙", and "↘", and use these three connection directions as the three first-order propagation directions of the diffusion event signal. These three first-order propagation directions lead to nodes 62 to 64 (leading to three path passing points) respectively. At the same time, based on the principle of energy equalization, the initial energy value of the diffusion event signal is divided into three equal parts to obtain the three first-order energy values of the diffusion event signal in the three first-order propagation directions. For example, assuming that the initial energy value of the diffusion event signal is unit 1, then its three first-order energy values in the three first-order propagation directions are all equal to 1 / 3.
[0114] 5032. If the first-order energy value is not less than the termination threshold, determine multiple second-order propagation directions of the diffusion event signal based on the path passing points in each first-order propagation direction, and the second-order energy value obtained by attenuating the initial energy value after the diffusion event signal undergoes secondary propagation.
[0115] In some embodiments, a determination is made as to whether the first-order energy value of the diffusion event signal in each first-order propagation direction is less than a termination threshold. If the first-order energy value of the diffusion event signal in each first-order propagation direction is less than the termination threshold, propagation is terminated, and the path path point to which the diffusion event signal leads in each first-order propagation direction is defined as a path endpoint. If the first-order energy value of the diffusion event signal in each first-order propagation direction is not less than the termination threshold, it indicates that the diffusion event signal needs to continue propagating outward. Therefore, after finding the path path point to which the diffusion event signal leads in each first-order propagation direction, all connected directions on the path path point, except the source direction, are determined in the topological space of the virtual world in a manner similar to step 5031 as multiple second-order propagation directions of the diffusion event signal. The source direction refers to the direction from which the diffusion event signal is received by the path path point. Then, based on the principle of energy equivalence, the first-order energy value of the diffusion event signal at the path path point is equally divided according to the number of second-order propagation directions, obtaining the second-order energy value of the diffusion event signal after secondary propagation in each second-order propagation direction.
[0116] In one example, still taking Figure 6 as an example, after the diffusion event signal starts from node 61 and propagates once, the virtual energy is divided into three and reaches three path passing points respectively. These three path passing points are nodes 62 to 64. In the topological space, these three path passing points can all be message transfer nodes (not representing the zone server and not participating in the business logic operation). Of course, in some designs, both zone servers and message transfer nodes can be included. In the process of secondary propagation, node 62 is used as an example. In addition to the source direction "↙", node 62 also has two connection directions "↖" and "↓". Therefore, all the remaining two connection directions except the source direction are used as the two second-order propagation directions of the diffusion event signal. These two second-order propagation directions lead to nodes 65-66 respectively (usually two path passing points). At the same time, based on the energy equalization principle, the first-order energy value of the diffusion event signal is divided into two equal parts to obtain the two second-order energy values of the diffusion event signal in the two second-order propagation directions. For example, assuming that the first-order energy value of the diffusion event signal is 1 / 3, then its two second-order energy values in the two second-order propagation directions are both equal to 1 / 6. The second-order propagation process of nodes 63-64 is similar to that of node 62 and will not be repeated. For example, the second-order propagation process refers to the process of secondary propagation in the second-order propagation direction.
[0117] 5033. Repeat the above operation until the N-order energy value obtained by attenuating the initial energy value after the diffusion event signal propagates N times is less than the termination threshold, and set the path passing point in each N-order propagation direction as the path end point.
[0118] In some embodiments, a determination is made as to whether the second-order energy value of the diffusion event signal in each second-order propagation direction is less than a termination threshold. If the second-order energy value of the diffusion event signal in each second-order propagation direction is less than the termination threshold, propagation is terminated, and the path path point to which the diffusion event signal leads in each second-order propagation direction is defined as a path endpoint. If the second-order energy value of the diffusion event signal in each second-order propagation direction is not less than the termination threshold, it indicates that the diffusion event signal needs to continue propagating outward. Therefore, after finding the path path point to which the diffusion event signal leads in each second-order propagation direction, all connected directions on the path path point, except the source direction, are determined in the topological space of the virtual world in a manner similar to step 5032 as multiple third-order propagation directions of the diffusion event signal. The source direction refers to the direction from which the diffusion event signal is received by the path path point. Then, based on the principle of energy equivalence, the second-order energy value of the diffusion event signal at the path path point is equally divided according to the number of third-order propagation directions, obtaining the third-order energy value of the diffusion event signal after three propagations in each third-order propagation direction. And so on, until the N-order energy value calculated for the diffusion event signal is less than the termination threshold, at which time it is necessary to stop propagation and set the path passing point in the N-order propagation direction as the path end point. It should be noted that the path passing point can be a zone server or a message transfer node, and the path end point can also be a zone server or a message transfer node, which is not specifically limited here.
[0119] In one example, still using FIG6 as an example, when the termination threshold is 1 / 10, during the three propagation processes, for path point 65, its own second-order energy value is 1 / 6. At this time, in addition to the source direction "↖", two third-order propagation directions "↑" and "↙" are also found. These two third-order propagation directions lead to nodes 67 and 68 respectively. At the same time, based on the energy equalization principle, the second-order energy value of the diffusion event signal is divided into two equal parts to obtain the two third-order energy values of the diffusion event signal in the two third-order propagation directions. For example, assuming that the second-order energy value of the diffusion event signal is 1 / 6, then its two third-order energy values in the two third-order propagation directions are both equal to 1 / 12. At this time, for node 67, since the third-order energy value 1 / 12 of the diffusion event signal is less than the termination threshold 1 / 10, the diffusion event signal will stay in node 67 and will not continue to propagate outward from node 67. At this time, if node 67 is a zone server, then node 67 will serve as the second zone server of this diffusion event signal and participate in the business logic operation of the second zone server. If node 67 is not a zone server but a message transfer node, then this diffusion event signal will not participate in the business logic operation. The message transfer node can cache the diffusion event signal for a period of time and then discard it, or it can directly discard the diffusion event signal without caching.
[0120] Through steps 5031 to 5033, a possible implementation method is proposed for how to determine the path passing points and path end points on the topological propagation path of the diffusion event signal. The above-mentioned method for determining the path passing points and path end points on the topological propagation path can be calculated by the first zone server, or the first zone server only calculates its first-order propagation direction and sends it to the path passing points on its first-order propagation direction, and each path passing point only calculates its next-order propagation direction and sends it to the path passing points on its next-order propagation direction (if the virtual energy is less than the termination threshold, then the propagation will stop). This can avoid the first zone server from calculating all the topological propagation paths, thereby saving the computing overhead of the first zone server.
[0121] In an exemplary embodiment, the process of determining at least one path point and at least one path end point on the topological propagation path of the diffusion event signal with the first zone server as the path starting point is implemented by the following steps 503a to 503c:
[0122] 503a. Taking the first zone service as the path starting point, determine the first-order propagation direction of the diffusion event signal, the path points of the diffusion event signal in the first-order propagation direction, and the first-order energy value obtained by attenuating the initial energy value after the diffusion event signal propagates once in the first-order propagation direction.
[0123] 503b. If the first-order energy value is not less than the termination threshold, determine the second-order propagation direction of the diffusion event signal, the path points of the diffusion event signal in the second-order propagation direction, and the second-order energy value obtained by attenuating the initial energy value after the diffusion event signal propagates twice in the second-order propagation direction based on the path points in the first-order propagation direction.
[0124] 503c. If the second-order energy value is less than the termination threshold, set the path passing point in the second-order propagation direction as the path end point.
[0125] If the second-order energy value is not less than the termination threshold, the third-order propagation direction of the diffusion event signal, the path points of the diffusion event signal in the third-order propagation direction, and the third-order energy value obtained by attenuating the initial energy value after the diffusion event signal propagates three times in the third-order propagation direction are determined based on the path points in the second-order propagation direction. This is repeated until the latest determined energy value is less than the termination threshold, and the path point corresponding to the latest determined energy value is set as the path end point.
[0126] It should be noted that the above steps 503a to 503c are described assuming that there is only one propagation direction per order, that is, only one energy value per order. Generally, for a diffusion event signal, there may be multiple propagation directions per order, that is, multiple energy values per order. Further explanation is provided using the example of multiple n-order energy values, where n is an integer not less than 1. In the case of multiple n-order energy values, after determining the multiple n-order energy values, it is necessary to determine whether each n-order energy value is less than a termination threshold. If any n-order energy value is not less than the termination threshold, the n+1-order propagation direction of the diffusion event signal, the path points of the diffusion event signal in the n+1-order propagation direction, and the n+1-order energy value obtained by attenuating the initial energy value after the diffusion event signal propagates n+1 times in the n+1-order propagation direction are determined based on the path points in any n-order propagation direction corresponding to the respective n-order energy value. The n+1-order energy value is then processed using the same processing logic as the n-order energy value. If any n-order energy value is less than the termination threshold, the path point in any n-order propagation direction corresponding to the any n-order energy value is set as the path end point.
[0127] 504. Determine a topological propagation path of the diffusion event signal in the service area server set based on the path starting point, the at least one path passing point, and the at least one path ending point.
[0128] Since the path endpoint is determined by sequentially identifying pathway points starting from the path start point, the pathway points passed from the path start point to the path endpoint can be determined. The path formed by the path start point, the pathway points passed from the path start point to any path endpoint, and any path endpoint is considered a branch of the topological propagation path. After traversing all path endpoints, the path formed by all the determined branches is used as the topological propagation path of the diffusion event signal in the service area set.
[0129] In the above process, using a diffusion event signal as an example, we describe how to determine the topological propagation path of the diffusion event signal within the service area set based on the preset propagation parameters of the diffusion event signal. Specifically, the preset propagation parameters of the diffusion event signal include an initial energy value and a termination threshold, and the propagation direction of the diffusion event signal is non-directional. This allows the energy value obtained by attenuation of the diffusion event signal after each propagation to be determined. By comparing the attenuated energy value with the termination threshold, it is determined whether the current node is a path passing point or a path endpoint. Thus, the path starting point, all path passing points, and all path endpoints together constitute the topological propagation path of the diffusion event signal. The edges connecting different nodes in the topological propagation path are directed edges, and the direction of the directed edge represents a certain order of propagation direction of the diffusion event signal.
[0130] 505. Send the diffusion event signal from the first server to at least one second server indicated by the at least one path endpoint along the topological propagation path.
[0131] After reaching the second zone server, the diffusion event signal participates in the service logic operation of the second zone server.
[0132] In some embodiments, after the topological propagation path of the diffusion event signal is determined in steps 503 to 504, the event signal of the diffusion event can be broadcast starting from the first zone server, and broadcast to each path passing point in the first-order propagation direction. The path passing point in the first-order propagation direction continues to broadcast the event signal of the diffusion event, and broadcasts to each path passing point in the second-order propagation direction, and so on, until it is broadcast to the path passing point in the N-order propagation direction, and it is found that the N-order energy value is less than the termination threshold. At this time, the path passing point in the N-order propagation direction stops propagating the diffusion event signal, and the path passing point in the N-order propagation direction is the path end point on the topological propagation path.
[0133] Because the topological propagation path of the diffusion event signal has multiple branches, each with a path endpoint, the diffusion event signal may have one or more path endpoints. Since the path endpoint can be a server or a message relay node, only the path endpoint representing a server will be used as the second server for the diffusion event signal. This allows the diffusion event signal to participate in the service logic operations of the second server after arriving at the second server. Therefore, the diffusion event signal may also have one or more second servers, and the diffusion event signal participates in the service logic operations of each second server. Furthermore, during the flow of the diffusion event signal, since the path transit points can be servers or message relay nodes, each time the diffusion event signal reaches a path transit point representing a server, it also participates in the service logic operations of the server represented by the path transit point, ensuring that the diffusion event signal spreads to every server along the path. Still taking Figure 6 as an example, the diffusion event signal will participate in the business logic operation of each node representing the zone in the topological propagation path shown in Figure 6. For example, if the diffusion event signal is a bounty event, then each node representing the zone in the topological propagation path will receive and publish the bounty event, thereby achieving the effect of "cross-server bounty". For example, on a certain branch "node 61→node 62→node 65→node 67", node 61 is the first zone, node 67 is the second zone, and nodes 62 and 65 are both message transfer nodes. At this time, the bounty event will be published in both the first zone and the second zone. In the above process, the user's cross-zone interaction efficiency is greatly improved. Not only can the bounty event cross zones, but the bountyed player can also cross zones through the one-way transmission event in the next embodiment. In this way, the cross-zone interaction mode of cloud games is greatly improved, and the efficiency of human-computer interaction is also greatly improved.
[0134] In some embodiments, based on the energy equalization principle, each time the diffusion event signal propagates once, the virtual energy of the diffusion event signal before propagation is divided into equal parts according to the number of propagation directions of this propagation. For example, when the number of N-order propagation directions is m during the N-th propagation, the N-1-order energy value e of the diffusion event signal will be divided into m equal parts. In this way, the calculated N-order energy value after attenuation in each N-order propagation direction is e / m.
[0135] In other embodiments, the diffusion event signal does not have to follow the energy balancing principle on each branch of the topological propagation path. For example, the N-order energy values after attenuation in different propagation directions are proportioned according to the channel quality of the communication connection in the N-order propagation direction, so as to ensure that the communication connection with better channel quality inherits more energy values to ensure the message transmission quality of the diffusion event signal. For another example, the N-order energy values after attenuation in different propagation directions are proportioned according to the channel length of the communication connection in the N-order propagation direction, so as to ensure that the communication connection with shorter channel length inherits more energy values. This can speed up the propagation speed of the diffusion event signal. The embodiments of the present application do not specifically limit this.
[0136] It should be noted that since different path passing points may have different processing cycles, the processing cycle for the zone server refers to the calculation cycle, and the processing cycle for the message transfer node refers to the sending and receiving cycle. In other words, different nodes have different processing speeds for event signals. Therefore, even if the number of propagation times is equal, the event signal of the diffusion event may not necessarily arrive at the corresponding path passing point (or path end point) at the same time. The embodiment of the present application does not specifically limit whether the diffusion event signal arrives at the path passing point in a certain order of propagation direction at the same time.
[0137] In some embodiments, for any pathway point on the topological propagation path, if the same diffusion event signal is received multiple times, the virtual energy of the diffusion event signal is aggregated according to the number of receptions. This allows, during the transmission of the diffusion event signal, if the same pathway point receives the same diffusion event signal from different nodes in multiple propagation directions, similar to the principle of light wave superposition interference, the pathway point aggregates the virtual energy of the diffusion event signal received from multiple propagation directions. This allows the diffusion event signal to be energy-enhanced after convergence, thus supporting continued outward transmission, helping to extend the propagation length of the diffusion event signal and improve the propagation coverage of the diffusion event signal. In one example, still taking Figure 6 as an example, for node 68, it receives the event signal of diffusion event A from node 69 from the "↙" direction, and also receives the event signal of diffusion event A from node 65 from the "↑" direction. Therefore, node 68 is equivalent to receiving the event signal of diffusion event A twice from two different source directions. In this way, the virtual energy of the event signal of diffusion event A in the two source directions needs to be aggregated. The original third-order energy value of the event signal of diffusion event A in each source direction is equal to 1 / 12, but after being aggregated according to the number of receptions (twice), the virtual energy of the event signal of diffusion event A is equal to 1 / 12. It becomes 1 / 6, which is no longer less than the termination threshold of 1 / 10. This allows node 68 to continue to propagate the event signal of diffusion event A. The event signal of diffusion event A still uses node 68 as a path passing point rather than the path end point. That is, node 68 will send the event signal of diffusion event A to node 610 in the remaining propagation direction "↖" and configure the fourth-order energy value to be 1 / 6. Similarly, node 610 will send the event signal of diffusion event A to nodes 611 and 612 again and configure the fifth-order energy value to be 1 / 12. Since it is less than the termination threshold of 1 / 10, nodes 611 and 612 are the final path end points and the propagation stops.
[0138] It should be noted that the above-mentioned aggregation rule for virtual energy is an optional step. The path passing points may not aggregate the virtual energy of the diffusion event signal according to the number of reception times. In this way, once an event signal with a virtual energy less than the termination threshold is received, it can be discarded without caching the event signal and waiting for the event signals of other nodes to arrive before determining whether it is an event signal of the same diffusion event. This can save the storage overhead of each node and speed up the event processing efficiency of each node. The embodiment of the present application does not specifically limit whether the aggregation rule of virtual energy is allowed.
[0139] It should also be noted that a communication connection only allows the event signal of the same diffusion event to pass through once. If the event signal does not find a legal propagation direction at a certain path point, the propagation will stop. For example, Figure 7 is a message transmission mechanism diagram of a diffusion event signal provided by an embodiment of the present application. As shown in Figure 7, when the virtual world is initialized, there are only 4 nodes in the virtual world, including 1 zone server 71 and 3 message transfer nodes 72~74. At this time, assuming that the zone server 71 sends an event signal of a diffusion event, the virtual energy of this diffusion event signal will be divided into three, that is, divided into three equal parts, and transmitted to the surrounding 3 message transfer nodes 72~74. It can be seen that due to the edge 7a and edge 7b in the expanded diagram, these two edges are actually the same large arc on the sphere. Therefore, the event signal of the diffusion event will fail to propagate on edge 7b (the propagation direction is illegal). Since the 3 message transfer nodes 72~74 no longer have other communication connections that can be used to transmit the event signal, the diffusion event signal will end propagation.
[0140] All the above optional technical solutions can be combined in any way to form optional embodiments of the present disclosure, and will not be described in detail here. The method provided in the embodiment of the present application constructs a cross-server message transmission mechanism with event signals as the carrier between the servers in the virtual world, and customizes the non-directional propagation direction for the diffusion event signal. The first server only needs to configure the initial energy value and the termination threshold, so that the diffusion event signal can be spontaneously broadcast to all connection directions, and stop broadcasting when the virtual energy is less than the termination threshold. This can ensure that the diffusion event signal can flow between different servers along the topological propagation path, and can also ensure that the diffusion event signal will not propagate endlessly in the virtual world. In this way, the diffusion event signal can realize cross-server interaction in the virtual world, greatly improving the transmission efficiency of messages transmitted with the diffusion event signal as the carrier.
[0141] In the previous embodiment, the transmission mechanism of the diffusion event signal between different zones in the service zone set was briefly introduced. In the embodiment of the present application, another one-way transmission event signal other than the diffusion event signal will be taken as an example to introduce the transmission mechanism of the one-way transmission event signal between different zones in the service zone set. Figure 8 is a flow chart of an event signal transmission method provided by an embodiment of the present application. Referring to Figure 8, the service zone set includes at least two zones, each zone in the service zone set is uniquely associated with a sub-virtual world in the virtual world, and the at least two zones include a first zone and a second zone that are logically connected, the first zone being the source node of the event signal, and the second zone being the target node of the event signal. The transmission method of the one-way transmission event signal includes the following steps 801 to 806:
[0142] 801. For an event signal configured for a first zone server in a service zone server set, determine a type of the event signal, where the type of the event signal is classified based on whether the event signal has a given propagation direction.
[0143] The above step 801 is similar to the above step 501 and will not be described in detail.
[0144] In some embodiments, the type of event signal is a one-way transmission event signal as an example for explanation. For the case where the type of event signal is a diffusion event signal, please refer to the previous embodiment and will not be repeated here. When the first zone server encapsulates the one-way transmission event into an event signal, it uses an event description vector [what, which, where, when] to describe the one-way transmission event. The what in the above event description vector records the event ID, event type and preset propagation parameters, wherein the event ID is used to uniquely identify the event (determined by the action indication information triggered by the user on the game client), the event type is used to indicate whether the event identified by the event ID is a diffusion event or a one-way transmission event, and the preset propagation parameters are used to indicate at least one of the propagation direction or propagation mode of the event signal carrying the event. For a one-way transmission event signal, the preset propagation parameters of the one-way transmission event signal include at least the starting propagation direction and crossing path information determined in the following step 802.
[0145] 802. When the type of the event signal is a one-way transmission event signal, configure the starting propagation direction and crossing path information of the one-way transmission event signal. The one-way transmission event signal has the starting propagation direction given by the first zone service, and the crossing energy of the one-way transmission event signal decreases with the propagation distance.
[0146] This traversal path information characterizes the changing pattern of the propagation direction of the one-way event signal during propagation. For example, the propagation distance refers to the distance the one-way event signal propagates from the first server to other servers or message relay nodes. One-way event signals propagate along a topological propagation path, and the propagation distance can be determined based on the topological propagation path.
[0147] In some embodiments, for an event signal whose type ID indicates a one-way transmission event (i.e., a one-way transmission event signal), the first zone server can configure the starting propagation direction and crossing path information of the one-way transmission event signal. The starting propagation direction and crossing path information are both preset propagation parameters of the one-way transmission event signal. The preset propagation parameters indicate the propagation direction and propagation mode of the one-way transmission event signal. For the one-way transmission event signal, since the propagation direction is directional, the first zone server needs to at least configure the starting propagation direction of the one-way transmission event signal starting from the first zone server. The subsequent propagation direction at each expected passing point can be randomly selected or indicated by the crossing path information. At the same time, since the one-way transmission event signal determines whether to stop transmission based on the crossing end condition, there is no need to configure a termination threshold for the one-way transmission event signal.
[0148] In order to distinguish it from the virtual energy of the diffusion event, the virtual energy of the one-way transmission event signal is called the crossing energy. The initial energy value of the crossing energy can be configured as a default value, or it can be converted according to the properties of the virtual object that triggers the one-way transmission event signal. The embodiment of the present application does not specifically limit the configuration method of the initial energy value of the crossing energy.
[0149] For one-way transmission event signals, the starting propagation direction and crossing path information determine the propagation mode of the one-way transmission event signal (the starting propagation direction determines the direction of transmission starting from the first zone, and the crossing path information indicates the change pattern of the propagation direction after each expected passing point is reached). In this way, a topological propagation path can be uniquely determined in the virtual world, and this topological propagation path has only one unique branch. This unique branch takes the first zone as the path starting point, and an expected end point can be estimated through the following steps 803-804. However, this expected end point is not necessarily the end point of the path where transmission is finally stopped, because during the propagation process of the one-way transmission event signal, the crossing end condition is likely to be met in advance at a certain expected passing point, so it will not actually be transmitted to the initial expected end point. It is precisely because after the one-way transmission event signal begins to spread, although a possible crossing path can be formulated in advance, the final crossing result in the future cannot be predicted. Even if a second zone is specified, the crossing may not be successful. Therefore, in order to distinguish it from the path passing points and path end points of the diffusion event, the one-way transmission event signal only discusses the expected passing points and expected end points. Only when the one-way transmission event signal is observed to have successfully arrived at a certain expected passing point at a future moment, this expected passing point will be transformed into an actual path passing point. Only when the one-way transmission event signal is observed to have successfully arrived at the designated second zone at a future moment, the expected end point corresponding to the second zone will be transformed into the actual path end point.
[0150] In some embodiments, both the initial propagation direction and the crossing path information are specified by the user. Alternatively, the initial propagation direction is specified by the user, but the user does not need to specify the crossing path information. Instead, the user specifies a second zone. In this way, the system generates a crossing path information based on the initial propagation direction and the second zone. The embodiments of the present application do not specifically limit the configuration method of the initial propagation direction and the crossing path information. In other embodiments, when configuring the preset propagation parameters of the one-way transmission event signal, only the initial propagation direction can be configured, and the propagation direction at each expected passing point is subsequently randomly selected. In this case, the preset propagation parameters are used to indicate the propagation direction of the one-way transmission event signal.
[0151] In other embodiments, the starting propagation direction and the crossing path information can be omitted. If the first server does not give a starting propagation direction, according to the principle of relativity, in the topological space of spherical distribution, there is no absolute direction, and all directions are equal. Therefore, a certain starting propagation direction can be randomly selected from all connection directions of the first server. Similarly, if the first server does not give a crossing path information, then it is determined whether the first server specifies the second server. If the first server specifies the second server, a crossing path information is formed with the first server as the starting point of the path and the second server as the expected end point. If the first server does not specify the second server, the first server can randomly initialize a crossing path information, or randomly select the next-order propagation direction from the expected passing point each time it reaches an expected passing point. The embodiments of the present application do not specifically limit this.
[0152] In some embodiments, a possible implementation of crossing path information is provided, namely, the crossing path information includes crossing indication information corresponding to multiple transmissions, with the crossing indication information corresponding to each transmission indicating whether the propagation direction of the one-way transmission event signal rotates clockwise or counterclockwise during that transmission. In other words, the crossing indication information corresponding to each transmission indicates the changing pattern of the propagation direction of the one-way transmission event signal during that transmission, with the changing pattern being clockwise or counterclockwise relative to the propagation direction of the one-way transmission event signal during the previous transmission. Thus, by controlling the number of crossing indication information included in the crossing path information, the propagation distance and number of transmissions of the one-way transmission event signal can be controlled. By controlling the value of each crossing indication information, the changing pattern of the propagation direction of the one-way transmission event signal during each transmission relative to the previous transmission direction can be controlled. Thus, both the propagation direction and propagation mode of the one-way transmission event signal can be controlled, achieving high controllability of the propagation direction and propagation mode of the one-way transmission event signal. The clockwise rotation angle and the counterclockwise rotation angle can be set based on experience, or can be clearly indicated in the crossing path information. This embodiment of the present application does not limit this.
[0153] Schematically, the crossing path information is implemented as a crossing indication vector, where each value in the crossing indication vector is a crossing indication information. The crossing indication information is implemented as an integer data. When the integer data value is -1, it indicates that the first propagation direction is selected as the current propagation direction by rotating clockwise compared to the previous propagation direction. When the integer data value is 1, it indicates that the first propagation direction is selected as the current propagation direction by rotating counterclockwise compared to the previous propagation direction. For example, when the crossing indication vector is [-1,-1,1,1,-1,-1,1], it means that after rotating the starting propagation direction clockwise, the first propagation direction is selected as the first-order propagation direction, after rotating the first-order propagation direction clockwise, the first propagation direction is selected as the second-order propagation direction, after rotating the second-order propagation direction counterclockwise, the first propagation direction is selected as the third-order propagation direction, and so on.
[0154] In some embodiments, in addition to being implemented as integer data, the crossing indication information can also be implemented as binary data or Boolean data, where the value of the binary data is 1 or 0, and the value of the Boolean data is True or False, which corresponds exactly to the change rules of the two propagation directions (clockwise / counterclockwise).
[0155] In some embodiments, a one-way transmission event can be provided as a crossing event of a virtual object in the service zone set across zones, or a one-way transmission event can also be provided as a crossing event of a virtual prop emitted by a virtual object across zones in the service zone set across zones. The embodiments of the present application do not specifically limit the specific content of the one-way transmission event. In this way, the crossing of virtual objects themselves across zones can be controlled by one-way transmission events, and the crossing of virtual props themselves across zones can also be controlled, making the players of the virtual world more diverse. Moreover, virtual objects and virtual props can flow between different zones in the form of one-way transmission event signals. In terms of rendering, virtual objects and virtual props are both virtual elements. Virtual elements will be rendered on the game screen of the zones they pass through. Virtual elements are transmitted across zones in the form of one-way transmission event signals, which means that the virtual objects or virtual props represented by the virtual elements will appear / disappear in the game screen of the sub-virtual worlds of different zones, greatly improving the efficiency of human-computer interaction and the diversity of gameplay.
[0156] Exemplarily, in the case where the one-way transmission event is an event of a virtual object crossing across servers in the business server set, the one-way transmission event signal is the signal of the event of the virtual object crossing across servers in the business server set; in the case where the one-way transmission event is an event of a virtual prop emitted by a virtual object crossing across servers in the business server set, the one-way transmission event signal is the signal of the event of the virtual prop emitted by the virtual object crossing across servers in the business server set.
[0157] In the above steps 801-802, a possible implementation method is provided for configuring preset propagation parameters that match the type of the event signal based on the type of the event signal. In the case where the type of the event signal is a one-way transmission event signal, the preset propagation parameters of the one-way transmission event signal may at least include the starting propagation direction and crossing path information of the one-way transmission event signal. In this way, a topological propagation path with a unique branch can be determined in the virtual world through the starting propagation direction and crossing path information, ensuring that the virtual elements associated with the one-way transmission event signal will not appear in the game screens of two regions at the same time without special provisions, and also improving the controllability of the one-way transmission event signal.
[0158] 803. Taking the first zone server as the path starting point, based on the initial propagation direction and the traversing path information, determine in sequence the various expected passing points of the one-way transmission event signal to be sent within the service zone server set.
[0159] The estimated path points reached by the one-way event signal constitute the topological propagation path at the current moment. The topological propagation path has the first zone as the path starting point and the second zone as the estimated endpoint. For a one-way event signal, the topological propagation path has only one path starting point and one estimated endpoint. However, due to the unpredictability of future moments and the fact that each zone does not have current information outside of its own zone, and information is always limited by the transmission speed, the estimated endpoint is not necessarily the path endpoint where the one-way event signal ultimately stops propagating. In other words, whether the one-way event signal can ultimately reach the estimated endpoint is unknown. In some embodiments, the second zone is selected based on the crossing end condition specified by the first zone. Therefore, the topological propagation path of the one-way event signal has a unique branch, and the estimated endpoint on the unique branch is the second zone. The unique branch may also have one or more estimated path points. The estimated path points can be zones or message transfer nodes. The topological propagation path of the one-way event signal is equivalent to a unique and definite message transmission path from the first zone to the second zone.
[0160] The following will take a one-way transmission event signal as an example to describe in detail how to determine each expected path point on the topological propagation path of this one-way transmission event signal through steps 8031 to 8032:
[0161] 8031. Taking the first zone server as the path starting point and based on the initial propagation direction, determine the first expected passing point of the one-way transmission event signal.
[0162] In some embodiments, in the topological space of the virtual world, the first zone is used as the starting point of the path, and the node connected to the first zone in the starting propagation direction is used as the first expected passing point. In one example, Figure 9 is a propagation topology diagram of a one-way transmission event signal provided by an embodiment of the present application. As shown in Figure 9, a partial plane unfolded topological structure of a sphere in the topological space of the virtual world is shown, and each triangle is used to represent a node. Since a node can be a zone or a message transfer node, in order to distinguish between a zone and a message transfer node, the node represented by the shaded triangle is the zone, and the node represented by the unshaded triangle is the message transfer node. Assuming that node 91 represents the first zone of the current one-way transmission event signal, and the starting propagation direction specified by the first zone is "↗", then the node 92 connected to node 91 along the starting propagation direction of "↗" is used as the first expected passing point.
[0163] 8032. Based on the first expected waypoint and the crossing path information, determine in sequence each expected waypoint of the one-way transmission event signal that is located after the first expected waypoint.
[0164] In some embodiments, for each predicted waypoint in the topological space of the virtual world, the current propagation direction of the one-way transmission event signal at the predicted waypoint can be determined based on the source direction of the one-way transmission event signal at the predicted waypoint and the crossing path information. The node connected to the predicted waypoint in this current propagation direction is then used as the next predicted waypoint. In this way, based on the first predicted waypoint and the crossing path information, a second predicted waypoint can be determined; based on the second predicted waypoint and the crossing path information, a third predicted waypoint can be determined, and so on, until each predicted waypoint of the one-way transmission event signal located after the first predicted waypoint is obtained.
[0165] In some embodiments, when the crossing path information is provided as a crossing indication vector, for each expected waypoint, after the next expected waypoint adjacent to the expected waypoint is determined based on the crossing indication vector, the first crossing indication information in the crossing indication vector can be removed. In this way, each time a new expected waypoint is reached, since the crossing indication vector has been updated, it is only necessary to calculate the next expected waypoint based on the crossing indication information at the first position in the updated crossing indication vector, without paying attention to the crossing indication information at other positions. At the same time, after the calculation is completed, the crossing indication information used this time is removed from the crossing indication vector. This is equivalent to the crossing indication vector being continuously shortened during the crossing process until it successfully reaches the second zone server, at which point all the crossing indication information of the crossing indication vector is removed, thereby stopping the crossing at the second zone server.
[0166] In one example, still using Figure 9 as an example, assume that the crossing path information is implemented as a crossing indicator vector [-1, -1, 1, 1, -1, -1, 1]. Assume that the crossing indicator value "-1" represents clockwise rotation, and the crossing indicator value "1" represents counterclockwise rotation. After finding the first expected waypoint, node 92, on the starting propagation direction "↗" of node 91, for node 92, the source direction is "↗", and the first crossing indicator associated with the first expected waypoint in the crossing indicator vector has a value of "-1". Therefore, a clockwise rotation is performed along the source direction to find the first propagation direction "↘" as the first-order propagation direction. The second expected waypoint, node 93, is found on the first-order propagation direction "↘" of node 92. The crossing indicator vector is then updated by removing the crossing indicator "-1" at the first position in the crossing indicator vector, resulting in the updated crossing indicator vector [-1, 1, 1, -1, -1, 1]. Similarly, for node 93, the source direction is "↘," and the second estimated waypoint in the crossing indication vector has the value "-1." Therefore, by rotating clockwise along the source direction, we find the first propagation direction "↓" as the second-order propagation direction. We then find the third estimated waypoint, node 94, on the second-order propagation direction "↓" of node 93. We then update the crossing indication vector by removing the first crossing indication "-1," resulting in the updated crossing indication vector [1, 1, -1, -1, 1]. This continues in this manner. Because the crossing indication vector is a finite-length vector, we can eventually find the last estimated waypoint, node 99. Upon reaching node 99, all crossing indications in the crossing indication vector have been removed, resulting in an empty queue of crossing indications.
[0167] 804. The first estimated waypoint that meets the crossing end condition is determined as the estimated end point of the topological propagation path.
[0168] In some embodiments, the crossing end condition is a condition specified by the first server that specifies the cessation of propagation of the one-way transmission event signal. After all pathway points of the one-way transmission event are found based on the starting propagation direction and the crossing path information in step 803, a predicted end point can be selected from all pathway points in step 804.
[0169] Typically, the predicted endpoint is the last predicted waypoint found in step 803 (this ensures that the crossing indication vector can be calculated). However, in some cases, depending on the crossing termination conditions, the predicted endpoint is not necessarily the last predicted waypoint. For example, when the crossing termination conditions include a crossing energy limit, if the one-way transmission event signal has insufficient crossing energy at a certain predicted waypoint, then this predicted waypoint will become the predicted endpoint, and there will be no opportunity to cross to the last predicted waypoint before stopping.
[0170] Below, we will discuss several possible conditions for the end of the journey. The first server can customize the end of the journey to any of the following, or a combination of at least two of the following:
[0171] Condition 1: Encountering a crossing obstruction event at any planned transit point. A crossing obstruction event refers to an event that can prevent a virtual element from crossing. A virtual element can be a virtual object or a virtual prop. Different types of virtual elements can have the same or different crossing obstruction events. For example, a crossing obstruction event could be a communication link failure between servers. Alternatively, a crossing obstruction event could be caused by the originally planned next server splitting, making the destination illegal. Crossing obstruction events can be pre-configured by technical personnel and are not specifically defined here.
[0172] In some embodiments, since the flow of one-way transmission event signals in different zones and servers is not completed instantaneously, each time the one-way transmission event signal crosses to a new node representing a zone and server, it will participate in the business logic operation in the current computing cycle of the zone and server. If no crossing obstruction event is detected in the current computing cycle, the one-way transmission event signal will continue to cross to the next node, otherwise the one-way transmission event signal will stop crossing.
[0173] In one example, still using FIG9 as an example, each time a one-way transmission event signal crosses to a new node representing a server, it participates in the business logic operation of the server in the current computing cycle. This means that each time the one-way transmission event signal crosses to a new shaded triangle, it participates in the business logic operation of the server represented by the shaded triangle in the current computing cycle. For example, in the process of the one-way transmission event signal crossing from node 91 to node 99, node 91 is the first server and node 99 is the second server. However, during the crossing process, a passing server, namely node 94, is encountered. Then, when the one-way transmission event signal reaches node 94, it participates in the business logic operation of the passing server in the computing cycle at the time of arrival. If no crossing obstacle event is detected in this computing cycle, the one-way transmission event signal can continue to cross from node 94 to node 99. Otherwise, the one-way transmission event signal will use the passing server as the second server, that is, select node 94 as the expected end point, and stay at node 94 due to the crossing obstacle event.
[0174] Condition 2: The crossing energy of the one-way transmission event signal at any predicted pathpoint is less than a crossing threshold. In some embodiments, the one-way transmission event signal also has bound virtual energy. The virtual energy of the one-way transmission event signal and the virtual energy of the diffusion event signal can be the same type of virtual energy or different types of virtual energy. For illustration, the two virtual energies are different types. That is, the diffusion event signal and the one-way transmission event signal emitted by the same virtual object consume different types of virtual energy. For ease of distinction, the virtual energy consumed by the one-way transmission event signal is referred to as "crossing energy."
[0175] In some embodiments, the crossing energy is a value converted in real time based on the attributes of the virtual object controlled by the user. In this way, different virtual objects, as long as their attributes are different, will emit one-way transmission event signals with different crossing energies, thereby making the gameplay based on the one-way transmission event signal more diverse and improving the efficiency of human-computer interaction. Technicians can define the conversion rules between attribute conditions and crossing energy, such as defining a conversion function. Different conversion functions can be used according to the sect, equipment, attributes, skills, etc. of the virtual object, which are not specifically limited here. In one example, when a user creates a virtual object in the virtual world, a fixed value of crossing energy will be issued to the virtual object. The user can control the virtual object to perform tasks, make contributions, etc. in the virtual world, and obtain more crossing energy according to pre-set business rules, or consume certain virtual resources to exchange or purchase crossing energy. The embodiment of the present application does not specifically limit the method of obtaining crossing energy.
[0176] In some embodiments, the one-way transmission event signal can only be supported to complete the next crossing when the crossing energy is not less than the crossing threshold. Otherwise, if the crossing energy is detected to be less than the crossing threshold at any expected passing point, the one-way transmission event signal will stop crossing.
[0177] In one example, still taking Figure 9 as an example, each time a one-way transmission event signal reaches an expected transit point (which may be a zone or a message transfer node), it will detect whether the crossing energy is less than the crossing threshold. If the crossing energy is less than the crossing threshold, then if the expected transit point is a transit zone, the one-way transmission event signal will stay in the transit zone, and the virtual element associated with the one-way transmission event signal will stay in the sub-virtual world associated with the transit zone; if the expected transit point is a message transfer node, the one-way transmission event signal will stay in the previous transit zone adjacent to the message transfer node, or the one-way transmission event signal will be allowed to continue the last crossing and stay in the next zone adjacent to the message transfer node, so as to avoid the one-way transmission event signal being stuck in the message transfer node. For example, in the case where the expected transit point is a message transfer node, the virtual element associated with the one-way transmission event signal will stay in the sub-virtual world associated with the previous transit zone adjacent to the message transfer node, or, the virtual element associated with the one-way transmission event signal is allowed to continue the last crossing and stay in the sub-virtual world associated with the next zone adjacent to the message transfer node.
[0178] For example, during the traversal of a one-way event signal from node 91 to node 99, node 91 is the first zone server and node 99 is the second zone server. However, during the traversal process, the signal will also encounter a transit zone server, namely node 94. For example, if the traversal energy is less than the traversal threshold when the one-way event signal reaches node 94, the transit zone server will be selected as the second zone server, that is, node 94 will be selected as the expected destination, and the signal will stop at node 94 due to insufficient traversal energy.
[0179] For another example, when the one-way transmission event signal arrives at the message relay node 95, it is found that the crossing energy is less than the crossing threshold. In this case, the passing zone represented by the node 94, which is the last passing zone closest to the message relay node 95, will be used as the second zone, that is, node 94 will be selected as the expected end point, and the signal will stay in node 94 due to insufficient crossing energy. Alternatively, the message relay node 95 allows the one-way transmission event signal to make the last crossing (continue to flow when encountering a message relay node, and stop immediately when encountering a zone), and stop crossing when it crosses to the next zone adjacent to the message relay node 95, that is, node 99.
[0180] Condition 3: Any expected transit point is located in the service area set of the business.
[0181] In some embodiments, the one-way transmission event signal can also be configured to end the traversal when the first zone server is encountered in the topological propagation path. That is, each time the one-way transmission event signal reaches an expected transit point, it detects whether the expected transit point is located in the service zone server set. In this way, it can be determined whether the expected transit point is a zone server or a message transfer node. Once an expected transit point is encountered in the service zone server set, it means that the first zone server has been reached and the traversal has ended.
[0182] In one example, still using Figure 9 as an example, each time a one-way transmission event signal reaches an expected transit point (which may be a zone or a message transfer node), it will detect whether the expected transit point is located in the service zone set. If it is located in the service zone set, it means that the expected transit point is a zone, indicating that the first zone has been reached, thus ending the traversal. For example, after the one-way transmission event signal departs from node 91, when it reaches nodes 92 and 93, since both are message transfer nodes, the traversal continues. However, when it reaches node 94, since node 94 is a transit zone and is located in the service zone set, the one-way transmission event signal ends the traversal when it reaches node 94, and the transit zone represented by node 94 is used as the second zone, node 94 is selected as the expected destination, and the virtual element associated with the one-way transmission event signal is controlled to be displayed on the game screen of the second zone.
[0183] Condition 4: The number of crossings of the one-way transmission event signal is greater than or equal to the crossing limit number.
[0184] In some embodiments, a pre-set limit on the number of crossings can be set based on business needs and can be reset or increased or decreased based on the behavior of virtual objects in the virtual world. Each time a one-way event signal reaches a predicted waypoint, it determines whether the current number of crossings is less than the limit. If so, it is allowed to continue crossing to the next predicted waypoint. If it is greater than or equal to the limit, the one-way event signal is controlled to stop crossing. At this point, if the current predicted waypoint is a transit zone, the one-way event signal will remain in that transit zone. If the current predicted waypoint is a message relay node, the one-way event signal will remain in the previous transit zone connected to the message relay node. Alternatively, the one-way event signal will be allowed to continue its final crossing and remain in the next zone adjacent to the message relay node. This prevents the one-way event signal from becoming stuck in the message relay node.
[0185] In one example, still using Figure 9 as an example, each time a one-way transmission event signal reaches a predicted transit point (which could be a zone or a message relay node), it checks whether the current number of traversals is less than the traversal limit. Only if this is the case will further traversal be allowed. For example, if the traversal limit is 10, during the traversal process of the one-way transmission event signal from node 91 to node 99, since the total number of traversals is 8, which is less than the traversal limit of 10, the one-way transmission event signal will successfully reach node 99. The second zone indicated by node 99 is the selected predicted destination. For another example, the crossing limit is 7. In the process of the one-way transmission event signal crossing from node 91 to node 99, since the total number of crossings is 8, which is greater than the crossing limit of 7, the one-way transmission event signal cannot smoothly cross to node 99, because when it reaches node 98, it will stop because it is equal to the crossing limit. Therefore, the one-way transmission event signal will stay in the last passed area server closest to node 98, that is, node 94, so node 94 is selected as the expected destination; or, the one-way transmission event signal is allowed to make the last crossing, and stops crossing when it crosses to the next area server adjacent to the message relay node 98, that is, node 99.
[0186] Through steps 8031 to 8032, a possible implementation method is proposed for determining the expected waypoints on the topological propagation path of a one-way transmission event signal. In the process of determining the topological propagation path, the first zone server only calculates the first expected waypoint. When the one-way transmission event signal reaches each expected waypoint, the next expected waypoint is calculated by the expected waypoint. In this way, the first zone server does not need to perceive nodes that are not connected to it. It only needs to maintain the business logic within its own virtual time zone and periodically send and receive event signals to logically connected nodes. Therefore, the maintenance overhead of the first zone server is low.
[0187] 805. Determine a topological propagation path of the one-way transmission event signal in the service area server set based on the starting point of the path, the expected waypoint determined before the expected end point, and the expected end point.
[0188] Exemplarily, a topological propagation path for unidirectionally transmitting an event signal has a unique branch, which is a branch starting from the path starting point, passing through an expected path point determined before the expected end point, and reaching the expected end point.
[0189] The above process, using a one-way event signal as an example, describes how to determine the topological propagation path of the one-way event signal within the service zone and service set based on the signal's preset propagation parameters. Specifically, the preset propagation parameters for the one-way event signal include the starting propagation direction and traversal path information. This allows all expected transit points on a unique branch to be determined. The expected endpoint is then selected from these expected transit points according to customized traversal end conditions, thereby determining the unique branch from the path's starting point to the expected endpoint as the topological propagation path. The edges connecting different nodes in the topological propagation path are directed edges, and the direction of these directed edges represents the propagation direction of the one-way event signal at each time.
[0190] 806. Send the one-way transfer event signal from the first server to the second server indicated by the expected destination along the topological propagation path.
[0191] After reaching the second zone server, the one-way transmission event signal participates in the business logic operation of the second zone server.
[0192] In some embodiments, after the topological propagation path of the one-way transmission event signal is determined in steps 803-805, the one-way transmission event signal can be sent from the first server to the first expected waypoint, and then from the first expected waypoint to the second expected waypoint, and so on, so that the one-way transmission event signal can be sent successively to the second server indicated by the expected destination, where the second server is the server that meets the above-mentioned crossing end condition. Because the topological propagation path of the one-way transmission event signal has a unique branch, there is only one expected destination for the one-way transmission event signal. The event signal of the one-way transmission event will not participate in the business logic operation of the second server until it reaches the second server. Before the event signal of the one-way transmission event reaches the second server, the second server is unaware of the one-way transmission event signal.
[0193] During the flow of a one-way event signal, since the expected transit point may be a zone or a server, it may also be a message transfer node. Therefore, each time the one-way event signal reaches an expected transit point representing a zone or server, it will also participate in the business logic operation of the zone or server represented by the expected transit point. Still taking Figure 9 as an example, in the topological propagation path shown in Figure 9, the one-way event signal will participate in the business logic operation of each node representing a zone or server. For example, if the one-way event signal is an event of a virtual object crossing between different zones or servers, then when the virtual object crosses to the zone or server represented by node 94, it will participate in the business logic operation of the zone or server during the calculation cycle at the arrival time, and then continue to cross from node 94 to the second zone or server represented by node 99.
[0194] In the above process, a cross-server crossing mechanism is provided, which allows virtual objects to be freely triggered at any time in the virtual world. This cross-server crossing mechanism does not involve the migration of player data between different servers, but rather conveniently circulates in the virtual world in a one-way manner through event signals. Virtual objects can freely roam between their respective sub-virtual worlds in different servers. In this way, the cross-server interaction mode of cloud games is greatly improved, and the efficiency of human-computer interaction is also greatly improved.
[0195] In some embodiments, when the one-way transmission event signal propagates along the topological propagation path, each time it reaches an expected waypoint, the energy consumed by the one-way transmission event signal is deducted from the crossing energy. Optionally, the one-way transmission event signal is set to deduct an equal amount of energy each time it crosses, which can conveniently improve the calculation efficiency of the latest crossing energy. Optionally, each time it reaches an expected waypoint, the energy consumed by the one-way transmission event signal is calculated according to a preset deduction rule. For example, the deduction rule is set as follows: the greater the current number of crossings, the more energy is consumed; for another example, the deduction rule is set as follows: the energy consumed by crossing to the server is greater than the energy consumed by crossing to the message relay node. The deduction rule for the energy consumed by crossing is not specifically limited here.
[0196] All the above optional technical solutions can be combined in any way to form optional embodiments of the present disclosure, and will not be described in detail here. The method provided in the embodiment of the present application constructs a cross-server message transmission mechanism with event signals as the carrier between the servers in the virtual world, and customizes a topological propagation path with a unique branch for the one-way transmission event signal. The first server only needs to configure the starting propagation direction and the crossing path information, so that the one-way transmission event signal can spontaneously cross along the unique branch to the second server, and stop crossing when the crossing end condition is met. This can ensure that the event signal of the one-way transmission event has a cross-server interaction mechanism, and can also ensure that the one-way transmission event signal will not circulate indefinitely in the server. In this way, the one-way transmission event signal can realize cross-server interaction in the virtual world, greatly improving the transmission efficiency of messages transmitted with the one-way transmission event signal as the carrier.
[0197] In the above two embodiments, the message transmission mechanisms of diffusion event signals and one-way transmission event signals between different servers are respectively introduced. Under this message transmission mechanism, all servers in the virtual world are interconnected, and all servers are running games at the same time, and perform business logic operations as a local inertial system in their own virtual time zones. In this way, virtual elements and events can be freely propagated and moved in all servers. For example, players can control the flow of virtual objects across servers, and players can also control the flow of virtual props across servers, which has a high degree of freedom and strong playability.
[0198] In some embodiments, each zone in the service zone set contains multiple computing units, and the multiple computing units are all located in the virtual time zone of the zone, that is, all computing units in the same zone are located in the same virtual time zone. The virtual time zone refers to the clock shared by all computing units maintained by the zone itself, and all computing units in the same zone can access the shared storage area of the zone (providing data reading function). Each computing unit has a uniquely associated sub-area in the shared storage area and can write data to the sub-area (providing data writing function), which can improve the access efficiency of each computing unit in the zone. For any event signal, the topological transmission path of the event signal can be determined based on the type of the event signal in a similar manner to the above two embodiments, so that the event signal can be transmitted between different computing units in the zone according to the topological transmission path within the zone.
[0199] By building a cross-server message transmission mechanism using event signals as the carrier between computing units within a server, and customizing the topological propagation path for event signals, we ensure that event signals can flow between different computing units, enabling cross-computing unit interaction of event signals, and greatly improving the transmission effect of messages transmitted using event signals as the carrier within the same server. Because different types of event signals have different topological propagation paths, this embodiment and the next embodiment will respectively introduce the propagation process of different computing units in the same server in the virtual world, focusing on diffusion event signals and one-way transmission event signals.
[0200] Figure 10 is a flowchart of a method for transmitting an event signal provided by an embodiment of the present application. Referring to Figure 10, taking the event type of the event carried by the event signal as a diffusion event, that is, the type of the event signal is a diffusion event signal as an example, the transmission mechanism of the diffusion event signal between different computing units in the same zone is introduced. Among them, each zone is uniquely associated with a sub-virtual world in the virtual world, and the transmission of the diffusion event signal in different computing units in the same zone is equivalent to the flow of the diffusion event within the sub-virtual world associated with the zone. Taking any zone in the business zone set as an example, the zone contains at least two logically connected computing units, and the at least two computing units include a first computing unit and a second computing unit. The method for transmitting the signal of the diffusion event includes the following steps 1001 to 1005:
[0201] 1001. For the event signal of the first computing unit in any zone in the service zone set, determine the type of the event signal, and the type of the event signal is divided based on whether the event signal has a given propagation direction. The above step 1001 is similar to step 501 and will not be repeated here. In some embodiments, Figure 11 is a topological structure diagram of a zone provided in an embodiment of the present application. As shown in Figure 11, all computing units in the zone can be distributed in a honeycomb shape, which is different from the topological space distribution of the zone in the virtual world. Therefore, the topological space of the virtual world divides the zone and the message transfer node, but no message transfer node is set in the zone. All nodes in the zone are computing units, and each computing unit is logically connected to its adjacent computing units, but not to non-adjacent computing units. For example, computing unit 1100 is logically connected to the six computing units 1101 to 1106 around it, but is not logically connected to the remaining computing units. It should be noted that for computing units located at the zone boundary, the number of computing units logically connected to it is less than 6.
[0202] 1002. If the event signal is a diffusion event signal, configure an initial energy value and a termination threshold for the diffusion event signal. The diffusion event signal does not have a specific propagation direction, and the virtual energy of the diffusion event signal decreases with propagation distance. Step 1002 is similar to step 502 and is not further described.
[0203] 1003. Using the first computing unit as the path starting point, determine at least one path passing point and at least one path endpoint on the topological propagation path of the diffusion event signal within the server, wherein the value obtained by decaying the initial energy value when the diffusion event signal reaches the at least one path endpoint is less than the termination threshold. Each path passing point and each path endpoint is a computing unit within the server. Step 1003 is similar to step 503 and is not further described.
[0204] 1004. Determine the topological propagation path of the diffusion event signal within the zone and server based on the path starting point, the at least one path passing point, and the at least one path ending point. The above step 1004 is similar to step 504 and will not be repeated here.
[0205] 1005. Send the diffusion event signal from the first computing unit to at least one second computing unit indicated by the at least one path end point along the topological propagation path. After reaching the second computing unit, the diffusion event signal participates in the business logic operation of the second computing unit. The above step 1005 is similar to step 505 and will not be repeated here. Between different computing units within the same zone, information transmission and interaction within the zone can also be carried out through event signals. Since the event signal transmission within the zone is essentially the event transmission across computing units, for the diffusion event signal, each computing unit will propagate the diffusion event signal toward all computing units except the source direction, and the virtual energy of the diffusion event signal decays with the propagation distance. In this way, signals of such events as notification messages within the zone can be used as diffusion event signals for message transmission across computing units within the zone. It should also be noted that the process of transmitting the diffusion event signal across computing units in the same zone must be completed within the same computing cycle of the virtual time zone to which the zone belongs. This is to avoid the same diffusion event signal spanning different computing cycles causing errors in business logic operations within the zone, and to ensure that when the zone supports the transmission of diffusion event signals across computing units, the high availability of the business is still guaranteed externally.
[0206] All the above optional technical solutions can be combined in any way to form optional embodiments of the present disclosure, and will not be described in detail here. The method provided in the embodiment of the present application constructs a message transmission mechanism across computing units with event signals as the carrier between computing units within the same zone in the virtual world, and customizes the non-directional propagation direction for the diffusion event signal. The first computing unit only needs to configure the initial energy value and the termination threshold to make the diffusion event signal spontaneously broadcast to all connection directions, and stop broadcasting when the virtual energy is less than the termination threshold. This can ensure that the event signal of the diffusion event can flow between different computing units in the zone along the topological propagation path, and can also ensure that the diffusion event signal will not propagate endlessly in the sub-virtual world of the zone. In this way, the diffusion event signal can realize the interaction across computing units within the sub-virtual world, greatly improving the transmission efficiency of messages transmitted with diffusion event signals as the carrier within the same zone.
[0207] In the previous embodiment, we briefly described the mechanism for transmitting diffusion event signals between different computing units in the same service zone. In this embodiment, we will use another type of one-way transmission event, in addition to the diffusion event, as an example to describe the mechanism for transmitting one-way transmission event signals between different computing units in the same service zone.
[0208] Figure 12 is a flow chart of a method for transmitting an event signal provided by an embodiment of the present application. Referring to Figure 12, taking any zone in a service zone set as an example, the zone contains at least two logically connected computing units, including a first computing unit and a second computing unit. This method for transmitting a one-way event signal includes the following steps 1201 to 1206:
[0209] 1201. For an event signal assigned to a first computing unit in any zone in the service zone set, determine the type of the event signal. The type of the event signal is determined based on whether the event signal has a given propagation direction. Step 1201 is similar to step 801 and will not be repeated here.
[0210] 1202. If the event signal is a one-way transmission event signal, configure the starting propagation direction and traversal path information of the one-way transmission event signal. The one-way transmission event signal has the starting propagation direction given by the first calculation unit, and the traversal energy of the one-way transmission event signal decreases with propagation distance. Step 1202 is similar to step 802 and is not further described.
[0211] 1203. Using the first computing unit as the path starting point, based on the initial propagation direction and traversal path information, sequentially determine the predicted path points within the server where the one-way transmission event signal will be transmitted. The predicted path points reached by the one-way transmission event constitute the topological transmission path at the current moment. Each predicted path point is a computing unit within the server. Step 1203 is similar to step 803 and will not be repeated here.
[0212] 1204. The first estimated waypoint that meets the crossing end condition is determined as the estimated end point of the topological propagation path. The above step 1204 is similar to step 804 and will not be repeated here.
[0213] 1205. Based on the starting point of the path, the estimated path points determined before the estimated end point, and the estimated end point, determine the topological propagation path of the one-way transmission event signal within the zone and server. The above step 1205 is similar to step 805 and will not be repeated here.
[0214] 1206. The one-way transmission event signal is transmitted from the first computing unit to the second computing unit indicated by the expected endpoint along the topological propagation path. After reaching the second computing unit, the one-way transmission event signal participates in the service logic operation of the second computing unit. Step 1206 is similar to step 806 and is not further described.
[0215] Event signals can also be used to communicate and exchange information between different computing units within the same server. Because event signal transmission within a server is essentially cross-computing unit event transmission, for one-way event signals, each expected path will select a specific propagation direction to send the one-way event signal, guided by the traversal path information. A certain amount of energy is deducted from the one-way event signal after each traversal. However, the virtual elements associated with the one-way event signal do not decay with propagation distance. Because virtual elements are a kind of virtual mass, the flow of virtual elements involved in game graphics rendering between computing units within a server can be viewed as the flow of one-way event signals with virtual mass between computing units. Thus, signals such as a virtual crossbow arrow flying across computing units in a sub-virtual world, or a virtual object firing at a location indicated by the crosshairs, can be used as one-way event signals to transmit messages across computing units within the server. It should also be noted that the process of transmitting one-way event signals across computing units in the same zone must be completed within the same computing cycle of the virtual time zone to which the zone belongs. This is to avoid the same one-way event signal spanning different computing cycles causing errors in business logic operations within the zone, and to ensure that when the zone supports the transmission of one-way event signals across computing units, the high availability of the business is still guaranteed externally.
[0216] All the above optional technical solutions can be combined in any way to form optional embodiments of the present disclosure, and will not be described in detail here. The method provided in the embodiment of the present application constructs a message transmission mechanism across computing units with event signals as the carrier between computing units within the same zone and server in the virtual world, and customizes a topological propagation path with a unique branch for the one-way transmission event signal. The first computing unit only needs to configure the starting propagation direction and the crossing path information, so that the one-way transmission event signal can spontaneously cross along the unique branch to the second computing unit, and stop crossing when the crossing end condition is met. This can ensure that the event signal of the one-way transmission event has an interactive mechanism across computing units, and can also ensure that the one-way transmission event signal will not flow indefinitely in the computing unit. In this way, the one-way transmission event signal can realize the interaction across computing units within the zone and server of the virtual world, greatly improving the transmission efficiency of messages transmitted with one-way transmission event signals as the carrier within the same zone and server.
[0217] In the above embodiments, the message transmission mechanism of the diffusion event signal within the zone and between zones, and the message transmission mechanism of the one-way transmission event signal within the zone and between zones are respectively introduced. In the embodiment of the present application, the zone expansion process of any zone to be split in the service zone set will be introduced in conjunction with Figure 13. As explained in the introduction of Figures 2 and 3, zone expansion is a basic property of the virtual world. Similar to the Big Bang, the virtual world will spontaneously expand its zone instead of being interfered with by external human intervention. The following steps 1301 to 1303 are explained using a zone expansion process as an example:
[0218] 1301. When the zone server expansion conditions are met, determine the zone server to be split from the business zone server set.
[0219] In some embodiments, technicians predefine server expansion conditions. For example, server expansion conditions include at least one of the following: the interval between the current time and the last time a server was determined to be split reaches a reference duration; the number of virtual objects in any server exceeds the server capacity; or the number of idle computing units in any server is below a reference threshold. This embodiment of the application does not specifically limit server expansion conditions. The reference duration, server capacity, and reference threshold can be set based on experience or flexibly adjusted based on the application scenario, and this embodiment of the application does not limit these.
[0220] In some embodiments, when the service expansion condition is met, the service to be split is determined from the service service set. For example, if the service expansion condition is a reference duration per interval (that is, the interval between the current time and the time when the service to be split was last determined to be a reference duration), then for each reference duration, one or more service zones are randomly selected from the service service set as the service to be split. For another example, if the service expansion condition is that the number of virtual objects in any service zone exceeds the service capacity, then when it is detected that the number of virtual objects in any service zone exceeds the service capacity, the detected service zone is regarded as the service to be split. For another example, if the service expansion condition is that the number of idle computing units in any service zone is lower than a reference threshold, then when it is detected that the number of idle computing units in any service zone is lower than the reference threshold, the detected service zone is regarded as the service to be split.
[0221] 1302. Based on the server to be split, at least one new server is determined. Exemplarily, based on the server to be split, in addition to determining at least one new server, at least one message relay node is also determined. The message relay node assumes the function of transmitting event signals without representing the server. In some embodiments, for each server to be split determined in step 1301, at least one new server and at least one message relay node can be determined in the topological space of the virtual world. Taking Figure 3 as an example, assuming that node 202 is a server, then if node 202 meets the server expansion conditions, with node 202 as the server to be split, one new server A and three new message relay nodes B, C, and D can be generated. Optionally, each time a server (or message relay node) is split into four parts on the sphere, the central part can be used as a new server, and the surrounding parts can be used as new message relay nodes. In this way, whether it is an existing server or an existing message relay node, new nodes can be repeatedly split in the same way, allowing the virtual world to expand infinitely.
[0222] 1303. Add the at least one new zone to the service zone set. In some embodiments, all new zones generated by the split in step 1302 are added to the service zone set, but there is no need to add new message relay nodes to the service zone set. In this way, after the new zone is added to the service zone set, the diffusion event signal and the one-way transmission event signal can also be transmitted to the new zone, ensuring the high availability of the new zone. From the perspective of surface area, this splitting method does not seem to expand (i.e., the volume of the sphere is not increased), but because the message transmission speed between the two nodes is constant, splitting into more small pieces will cause the message transmission path between zones to become longer, just like the galaxies in the universe are moving away from each other, thus essentially achieving the continuous expansion of the virtual world in this way. Through the expansion of the virtual world, more users can control virtual objects to interact in the virtual world, improving the human-computer interaction rate.
[0223] In each of the above embodiments, a complete hardware deployment and software implementation solution is provided for a virtual world based on cloud gaming, to build an unbounded and unlimited cloud gaming world that can realize arbitrary expansion of servers and players, and can arbitrarily travel through. In the cloud gaming world, the number of servers can be increased indefinitely, and the virtual objects controlled by the players can arbitrarily travel through the sub-virtual worlds corresponding to different servers. In the technical solution of the present application, the hardware connection of the servers or server clusters of different servers is performed in a manner corresponding to the logical division, and the sub-virtual worlds divided into the server in each server are independently run on the server or server cluster of each server, and the message transmission across the sub-virtual world is realized in different servers based on the event mechanism. At the same time, the hardware topology structure will also expand as the servers in the virtual world expand, and each virtual element will flow according to its position in the topological space, realizing the flow of one-way event signals between the server clusters of different servers, thereby settling on the changes in the game screen in the game clients of different players.
[0224] In the virtual world based on cloud gaming in this application, events are the most basic information particles within the zone and server, and within the virtual world, and cannot be divided any further. According to the event signal transmission rules between computing units, the event signals within the zone and server are either within a basic computing unit or in the process of flowing to another basic computing unit. Similarly, since events are the way virtual elements in the game interact, what is ultimately presented to the user in the game screen is the status of all virtual elements in the game. In this way, whether it is a virtual object controlled by the player, or a virtual prop or virtual item in the virtual world, it can be used as a virtual element to interact and transform with the event. All virtual elements that are continuously visible within the perspective of the virtual object, after being rendered by the GPU, constitute the game screen that the player can visualize, and multiple frames of continuous game screen constitute the game video stream sent by the cloud game to the player's terminal.
[0225] All computing units within a server share a shared clock, operate in the same virtual time zone, and process event signals according to a unified computing cycle, ensuring consistency across all server-level business logic operations. Each server determines its own computing cycle based on the computing power of its hardware. Within a computing cycle, all computing units must complete processing of all internal event signals. Once this processing is complete, all virtual elements are in the resulting state of that computing cycle, resulting in the final game display. Therefore, each server's computing cycle is equivalent to the interval between two adjacent game frames within that server. The length of the computing cycle affects the frame rate of the server's game video stream. All events and virtual elements within a server constitute a sub-virtual world within that server. The sub-virtual worlds across all servers together form the entire cloud gaming virtual world. Each player terminal receives a rendered game display of all events and virtual elements as seen from their virtual object's perspective, based on the resulting state of the current computing cycle. For each server, a state snapshot of all virtual elements is taken at the end of each computing cycle, recording the event description vectors for each virtual element. Regardless of whether a virtual element moves between servers or within a server, it must first be converted into an event signal. After becoming an event signal, it will no longer participate in the rendering of the game screen of the original server, just like it has disappeared from the sub-virtual world of the original server. Until the movement is completed, the event signal is sent to the new server, and it is converted into a virtual element again in the new server. The virtual element travels to the sub-virtual world of the new server and then participates in the rendering of the game screen in the new server.
[0226] Figure 14 is a structural diagram of a transmission device for an event signal provided in an embodiment of the present application. As shown in Figure 14, the device includes: a determination module 1402, used to determine, for an event signal configured to a first zone server in a service zone server set, a topological propagation path of the event signal in the service zone server set based on a preset propagation parameter of the event signal, wherein the topological propagation path is a propagation path from the first zone server to the second zone server in the service zone server set, and the second zone server is specified by the first zone server or determined from the service zone server set based on the preset propagation parameter, and the preset propagation parameter indicates at least one of the propagation direction or propagation mode of the event signal; a sending module 1403, used to send the event signal from the first zone server to the second zone server along the topological propagation path.
[0227] The device provided in the embodiments of the present application establishes a cross-server message transmission mechanism between servers in the virtual world, using event signals as the carrier. Preset propagation parameters are customized for the event signals. The topological propagation path of the event signals can be determined based on the preset propagation parameters, thereby ensuring that the event signals can flow between different servers and achieving cross-server transmission of event signals. This allows users to interact across servers even if the virtual objects they control are located in different servers in the virtual world, using cross-server transmission of event signals. This improves interaction efficiency, thereby enhancing the user's interactive experience and increasing the rate of human-computer interaction. Furthermore, since messages can be transmitted using event signals as the carrier, message transmission efficiency can be greatly improved.
[0228] In some embodiments, referring to FIG. 15 , the event signal transmission apparatus further includes: a configuration module 1401 for configuring, based on the type of the event signal, preset propagation parameters matching the type, where the type is determined based on whether the event signal has a given propagation direction; and a determination module 1402 for determining, based on the preset propagation parameters matching the type of the event signal, a topological propagation path of the event signal within the service zone set.
[0229] In some embodiments, the configuration module 1401 is used to: when the type is a diffusion event signal, configure the initial energy value and termination threshold of the diffusion event signal, the virtual energy of the diffusion event signal decreases with the propagation distance, the diffusion event signal does not have a given propagation direction, the initial energy value represents the initial value of the virtual energy of the diffusion event signal, and the termination threshold represents the energy threshold of the virtual energy when the diffusion event signal stops propagating.
[0230] In some embodiments, based on the device composition of Figure 14, the determination module 1402 includes: a first determination unit, used to determine at least one path passing point and at least one path end point of the diffusion event signal with the first service area as the path starting point, wherein the initial energy value is less than the termination threshold when the diffusion event signal reaches the at least one path end point; based on the path starting point, the at least one path passing point and the at least one path end point, determine the topological propagation path of the diffusion event signal in the service service set.
[0231] In some embodiments, the first determination unit is used to: take the first zone service as the path starting point, determine the first-order propagation direction of the diffusion event signal, the path points of the diffusion event signal in the first-order propagation direction, and the first-order energy value obtained by the initial energy value after the diffusion event signal propagates once in the first-order propagation direction; if the first-order energy value is not less than the termination threshold, determine the second-order propagation direction of the diffusion event signal, the path points of the diffusion event signal in the second-order propagation direction, and the second-order energy value obtained by the initial energy value after the diffusion event signal propagates twice in the second-order propagation direction based on the path passing points in the first-order propagation direction; if the second-order energy value is less than the termination threshold, set the path passing points in the second-order propagation direction as the path end point.
[0232] In some embodiments, each time the diffusion event signal propagates once, the virtual energy of the diffusion event signal before propagation is divided into equal parts according to the number of propagation directions of this propagation.
[0233] In some embodiments, for any path passing point on the topological propagation path, when the same diffusion event signal is received multiple times, the virtual energy of the diffusion event signal is aggregated according to the number of reception times.
[0234] In some embodiments, the configuration module 1401 is used to: when the type is a one-way transmission event signal, configure the starting propagation direction and crossing path information of the one-way transmission event signal, the crossing energy of the one-way transmission event signal decreases with the propagation distance, the one-way transmission event signal has the starting propagation direction given by the first zone service, and the crossing path information represents the changing law of the propagation direction of the one-way transmission event signal during propagation.
[0235] In some embodiments, based on the device composition of Figure 14, the determination module 1402 includes: a second determination unit, used to take the first area server as the path starting point, and based on the starting propagation direction and the crossing path information, determine in sequence the various expected passing points to which the one-way transmission event signal is to be sent; a third determination unit, used to determine the first expected passing point that meets the crossing end condition as the expected end point; based on the path starting point, the expected passing points determined before the expected end point, and the expected end point, determine the topological propagation path of the one-way transmission event signal in the service area server set.
[0236] In some embodiments, the second determination unit is used to: take the first zone server as the path starting point, and based on the starting propagation direction, determine the first expected passing point of the one-way transmission event signal; based on the first expected passing point and the crossing path information, determine in sequence each expected passing point of the one-way transmission event signal located after the first expected passing point.
[0237] In some embodiments, the crossing termination condition includes at least one of the following: encountering a crossing obstruction event at any expected waypoint; the crossing energy of the one-way transmission event signal at any expected waypoint is less than a crossing threshold; any expected waypoint is located in the service area set; the number of crossings of the one-way transmission event signal is greater than or equal to the crossing limit number.
[0238] In some embodiments, the crossing path information includes crossing indication information corresponding to multiple transmissions, and the crossing indication information corresponding to any transmission indicates the changing pattern of the propagation direction of the one-way transmission event signal during any transmission; the changing pattern is a clockwise rotation relative to the propagation direction of the one-way transmission event signal during the previous transmission, or a counterclockwise rotation relative to the propagation direction of the one-way transmission event signal during the previous transmission.
[0239] In some embodiments, when the one-way transmission event signal propagates along the topological transmission path, each time it reaches an expected passing point, the energy consumed in one crossing is deducted from the crossing energy of the one-way transmission event signal.
[0240] In some embodiments, the one-way transmission event signal is a signal of an event in which a virtual object crosses servers in the service server set; or, the one-way transmission event signal is a signal of an event in which a virtual prop emitted by a virtual object crosses servers in the service server set.
[0241] In some embodiments, any zone in the service zone set includes multiple computing units, and the multiple computing units are all located in the virtual time zone of the zone. Event signals are transmitted between different computing units in the zone according to the topological transmission path within the zone, and the topological transmission path is determined based on the type of the event signal.
[0242] In some embodiments, the plurality of computer units are distributed in a honeycomb pattern.
[0243] In some embodiments, based on the device composition of Figure 14, the device also includes a zone expansion module, which is used to: determine the zone to be split from the service zone set when the zone expansion conditions are met; determine at least one new zone based on the zone to be split; and add the at least one new zone to the service zone set.
[0244] In some embodiments, the server expansion condition includes at least one of the following: the interval between the current time and the time when the server to be split was last determined reaches a reference duration; the number of virtual objects in any server exceeds the server capacity; the number of idle computing units in any server is lower than a reference threshold.
[0245] All the above-mentioned optional technical solutions can be arbitrarily combined to form optional embodiments of the present disclosure, and will not be described one by one here. It should be noted that: the event signal transmission device provided in the above-mentioned embodiment only uses the division of the above-mentioned functional modules as an example when transmitting event signals. In actual applications, the above-mentioned functions can be distributed and completed by different functional modules as needed, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the functions described above. In addition, the event signal transmission device provided in the above-mentioned embodiment and the event signal transmission method embodiment belong to the same concept. The specific implementation process is detailed in the event signal transmission method embodiment, and will not be described here.
[0246] Figure 16 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. Computer device 1500 can be implemented as a server in any service zone in a service zone set, or as a server in a server cluster in any service zone. Computer device 1500 can vary significantly due to different configurations or performance. Generally, computer device 1500 includes one or more processors 1501 and one or more memories 1502.
[0247] Optionally, the processor 1501 includes one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Optionally, the processor 1501 is implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), or a PLA (Programmable Logic Array). In some embodiments, the processor 1501 includes a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU; the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1501 is integrated with a GPU, which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1501 also includes an AI (Artificial Intelligence) processor, which is used to handle computing operations related to machine learning. In some embodiments, the memory 1502 includes one or more computer-readable storage media, which are optionally non-transitory. Optionally, memory 1502 also includes high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in memory 1502 is used to store at least one computer program, which is loaded and executed by one or more processors 1501 to implement the event signal transmission method provided in various embodiments of the present application.
[0248] Optionally, the computer device 1500 also includes components such as a wired or wireless network interface, a keyboard, and input / output interfaces for input and output. The computer device 1500 also includes other components for implementing device functions, which are not described in detail here. Those skilled in the art will understand that the structure shown in Figure 16 does not limit the computer device 1500, and it can include more or fewer components than shown, or combine certain components, or adopt a different component arrangement.
[0249] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory including at least one computer program. The at least one computer program can be executed by a processor in a computer device to complete the event signal transmission method in each of the above-mentioned embodiments. For example, the non-volatile computer-readable storage medium includes ROM (Read-Only Memory), RAM (Random-Access Memory), CD-ROM (Compact Disc Read-Only Memory), magnetic tape, floppy disk, and optical data storage device. In an exemplary embodiment, a computer program product is also provided, including one or more computer programs, the one or more computer programs being stored in a non-volatile computer-readable storage medium. One or more processors of a computer device can read the one or more computer programs from the non-volatile computer-readable storage medium, and the one or more processors execute the one or more computer programs, so that the computer device can execute and complete the event signal transmission method in the above-mentioned embodiments.
[0250] Those skilled in the art will understand that all or part of the steps to implement the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a program. Optionally, the program is stored in a computer-readable storage medium. Optionally, the above-mentioned storage medium is a read-only memory, a disk or an optical disk, etc.
[0251] The above description is merely an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A method for transmitting an event signal, wherein: The method is executed by a server, and comprises: For an event signal configured for a first zone and server in a service zone and server set, determining a topological propagation path of the event signal in the service zone and server set based on a preset propagation parameter of the event signal, wherein the topological propagation path is a propagation path from the first zone and server to a second zone and server in the service zone and server set, the second zone and server being specified by the first zone and server or determined from the service zone and server set based on the preset propagation parameter, and the preset propagation parameter indicating at least one of a propagation direction or a propagation mode of the event signal; The event signal is sent from the first zone server to the second zone server along the topology propagation path.
2. The method according to claim 1, wherein: The method further comprises: Based on the type of the event signal, configuring a preset propagation parameter matching the type, the type being divided based on whether the event signal has a given propagation direction; The determining, based on the preset propagation parameters of the event signal, a topological propagation path of the event signal in the service zone server set includes: Based on the preset propagation parameters of the event signal that match the type, a topological propagation path of the event signal in the service zone and server set is determined.
3. The method according to claim 1 or 2, wherein: The configuring, based on the type of the event signal, preset propagation parameters matching the type includes: In the case where the type is a diffusion event signal, the energy initial value and termination threshold of the diffusion event signal are configured, the virtual energy of the diffusion event signal decreases with the propagation distance, the diffusion event signal does not have a given propagation direction, the energy initial value represents the initial value of the virtual energy, and the termination threshold represents the energy threshold of the virtual energy when the diffusion event signal stops propagating.
4. The method according to any one of claims 1 to 3, wherein: The determining, based on the preset propagation parameter of the event signal that matches the type, a topological propagation path of the event signal in the service zone server set comprises: Taking the first zone and service as the path starting point, determining at least one path passing point and at least one path end point of the diffusion event signal, wherein the value obtained by attenuating the initial energy value when the diffusion event signal reaches the at least one path end point is less than the termination threshold; Based on the path starting point, the at least one path passing point and the at least one path ending point, a topological propagation path of the diffusion event signal in the service area server set is determined.
5. The method according to any one of claims 1 to 4, wherein: The step of taking the first zone and server as the path starting point and determining at least one path passing point and at least one path end point of the diffusion event signal comprises: Taking the first zone server as the path starting point, determining the first-order propagation direction of the diffusion event signal, the path points of the diffusion event signal in the first-order propagation direction, and the first-order energy value obtained by attenuating the initial energy value after the diffusion event signal propagates once in the first-order propagation direction; If the first-order energy value is not less than the termination threshold, determine the second-order propagation direction of the diffusion event signal, the path points of the diffusion event signal in the second-order propagation direction, and the second-order energy value obtained by attenuating the initial energy value after the diffusion event signal propagates twice in the second-order propagation direction based on the path points in the first-order propagation direction; If the second-order energy value is less than the termination threshold, the path passing point in the second-order propagation direction is set as the path end point.
6. The method according to any one of claims 1 to 5, wherein: Each time the diffusion event signal propagates once, based on the number of propagation directions of this propagation, the virtual energy of the diffusion event signal before propagation is divided into equal parts that meet the number.
7. The method according to any one of claims 1 to 6, wherein: For any path passing point on the topological propagation path, when the same diffusion event signal is received multiple times, the virtual energy of the diffusion event signal is summarized according to the number of reception times.
8. The method according to any one of claims 1 to 7, wherein: The configuring, based on the type of the event signal, preset propagation parameters matching the type includes: In the case where the type is a one-way transmission event signal, the starting propagation direction and crossing path information of the one-way transmission event signal are configured, the crossing energy of the one-way transmission event signal decreases with the propagation distance, the one-way transmission event signal has the starting propagation direction given by the first zone, and the crossing path information characterizes the changing pattern of the propagation direction of the one-way transmission event signal during propagation.
9. The method according to any one of claims 1 to 8, wherein: The determining, based on the preset propagation parameter of the event signal that matches the type, a topological propagation path of the event signal in the service zone server set comprises: Taking the first zone server as the path starting point, based on the starting propagation direction and the traversing path information, sequentially determining each estimated passing point where the one-way transmission event signal is to be sent; The first estimated passing point that meets the crossing end condition is determined as the estimated end point; Based on the path starting point, the estimated waypoint determined before the estimated end point, and the estimated end point, a topological propagation path of the one-way transfer event signal in the service area server set is determined.
10. The method according to any one of claims 1 to 9, wherein: The step of taking the first zone server as the path starting point and sequentially determining each of the expected passing points to be sent by the one-way transmission event signal based on the initial propagation direction and the traversing path information includes: Taking the first zone and server as the path starting point, based on the initial propagation direction, determining the first expected passing point of the one-way transmission event signal; Based on the first expected waypoint and the crossing path information, each expected waypoint of the one-way transfer event signal located after the first expected waypoint is determined in sequence.
11. The method according to any one of claims 1 to 10, wherein: The crossing end condition includes at least one of the following: Encountering a crossing obstacle at any of the planned waypoints; The crossing energy of the one-way transmission event signal at any expected waypoint is less than the crossing threshold; Any estimated waypoint is located in the service area set; The crossing times of the one-way transmission event signal is greater than or equal to the crossing limit times.
12. The method according to any one of claims 1 to 11, wherein: The crossing path information includes crossing indication information corresponding to multiple propagations, and the crossing indication information corresponding to any propagation indicates the changing rule of the propagation direction of the one-way transmission event signal during any propagation; the changing rule is clockwise rotation relative to the propagation direction of the one-way transmission event signal during the previous propagation, or counterclockwise rotation relative to the propagation direction of the one-way transmission event signal during the previous propagation.
13. The method according to any one of claims 1 to 12, wherein: When the one-way transmission event signal propagates along the topological transmission path, each time it reaches an expected passing point, the crossing energy of the one-way transmission event signal is deducted from the energy consumed by one crossing.
14. The method according to any one of claims 1 to 13, wherein: The one-way transmission event signal is a signal of a virtual object crossing across zones and servers in the service zone and server set; or, the one-way transmission event signal is a signal of a virtual prop emitted by a virtual object crossing across zones and servers in the service zone and server set.
15. The method according to any one of claims 1 to 14, wherein: Any zone in the service zone set includes multiple computing units, and the multiple computing units are all located in the virtual time zone of the zone. Event signals are transmitted between different computing units in the zone according to a topological transmission path within the zone, and the topological transmission path is determined based on the type of the event signal.
16. The method according to any one of claims 1 to 15, wherein: The multiple computer units are distributed in a honeycomb shape.
17. The method according to any one of claims 1 to 16, wherein: The method further comprises: When the zone and server expansion condition is met, determining a zone and server to be split from the service zone and server set; Determine at least one new server based on the server to be split; The at least one new zone and server is added to the service zone and server set.
18. The method according to any one of claims 1 to 17, wherein: The zone expansion condition includes at least one of the following: The interval between the current time and the last time the server to be split was determined reaches the reference time; The number of virtual objects in any server exceeds the server capacity; The number of idle computing units in any zone is below the reference threshold.
19. A device for transmitting an event signal, wherein: The device comprises: a determination module, configured to determine, for an event signal configured for a first zone server in a service zone server set, a topological propagation path of the event signal in the service zone server set based on a preset propagation parameter of the event signal, wherein the topological propagation path is a propagation path from the first zone server to a second zone server in the service zone server set, the second zone server being specified by the first zone server or determined from the service zone server set based on the preset propagation parameter, and the preset propagation parameter indicating at least one of a propagation direction or a propagation mode of the event signal; A sending module is used to send the event signal from the first zone to the second zone along the topology propagation path.
20. A computer device, wherein: The computer device includes one or more processors and one or more memories, wherein at least one computer program is stored in the one or more memories, and the at least one computer program is loaded and executed by the one or more processors so that the computer device implements the event signal transmission method as described in any one of claims 1 to claim 18.
21. A non-volatile computer-readable storage medium, wherein: The non-volatile computer-readable storage medium stores at least one computer program, and the at least one computer program is loaded and executed by a processor so that a computer implements the method for transmitting an event signal as described in any one of claims 1 to 18.
22. A computer program product, wherein: The computer program product includes at least one computer program, and the at least one computer program is loaded and executed by a processor to enable a computer to implement the event signal transmission method according to any one of claims 1 to 18.
Citation Information
Patent Citations
Method for realizing object transmission in MMORPG game and server and cluster thereof
CN106209963A
Message sending method and device, electronic equipment and computer readable medium
CN111049753A
Peer-to-peer multiplayer cloud game architecture
CN114450072A
Cross-realm zones for interactive gameplay
US20130296045A1
