Space management method, device and system, equipment cluster, program product and medium
Through cross-server status information synchronization and virtual space partitioning strategies, the problem of large number of user interactions and load balancing in virtual spaces in the existing technology is solved, and efficient virtual space management and user interaction experience are achieved.
Patent Information
- Application Number
- CN202310218400.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-08
- Publication Date
- 2024-09-17
AI Technical Summary
It is difficult for existing technology to realize real-time interaction of a large number of users in a single virtual space, and it is difficult to achieve state synchronization and load balancing of virtual spaces under a multi-server architecture, resulting in poor development complexity and robustness.
By obtaining user object information from multiple client servers, determine the virtual space and area of interest, achieve cross-server status information synchronization, and send area information to the client, supporting virtual space division and server load balancing, using horizontal , vertical or hybrid partitioning strategies to optimize load distribution.
There is no need to change the distributed server architecture, enabling real-time interaction of a large number of users in a single virtual space, optimizing server load balancing and processing overhead, and improving user interaction experience and system stability.
Smart Images

Figure CN118657907A
Abstract
Description
Technical Field
[0001] The present disclosure generally relates to the field of computer technology, and more particularly to a space management method, a space management apparatus, a space management system, a computing device cluster, a computer program product, and a computer-readable storage medium. Background Art
[0002] Metaverse technology has developed rapidly in recent years. It maps the real world into the virtual world, realizes the interaction between the real world and the virtual world, and provides users with a virtual digital activity space. The digital technologies used to build the Metaverse integrate cloud computing, artificial intelligence, virtual reality, blockchain, digital currency, the Internet of Things, human-computer interaction and other technologies, which enhance the user's interactive experience in the virtual digital activity space.
[0003] With the development of metaverse instances and the evolution of technologies such as 3D media, there is an increasing demand for implementing digital marketing and digital twin factories in virtual digital activity spaces for brand promotion or 3D media advertising. For example, when implementing scenes such as exhibitions, concerts, and press conferences in virtual digital activity spaces, a large number of users will be present in the scene at the same time, so that each user can personally interact with each other in the scene, while providing these users with a common scene experience and digital marketing and other services. Summary of the invention
[0004] According to some embodiments of the present disclosure, a space management method, a space management apparatus, a space management system, a computing device cluster, a computer program product, and a computer-readable storage medium are provided.
[0005] In the first aspect of the present disclosure, a space management method is provided. The space management method includes: obtaining object information associated with multiple users of multiple clients accessing the virtual space from multiple servers corresponding to the multiple clients; determining the space information of the virtual space based on the object information; for each of the multiple users, determining the area information associated with the area of interest based on the space information and the area of interest associated with each user, wherein the area of interest includes at least a portion of the virtual space; and sending the area information determined for each user to the server corresponding to the client of the user. In this way, the synchronization of state information across servers can be achieved without changing the architecture of the existing distributed servers, thereby supporting a large number of users to be in a single virtual space together, so as to achieve real-time interaction between users in large virtual spaces with large scenes.
[0006] In some embodiments, the space management method further includes: dividing the virtual space into a plurality of virtual space partitions; and associating one or more of the plurality of virtual space partitions with one or more of the plurality of servers, so that the server performs computational processing on the one or more virtual space partitions associated with the server. In this way, a single virtual space can be further divided and associated with a server to achieve load balancing across servers.
[0007] In some embodiments, determining the spatial information of the virtual space includes: updating the spatial partition information of the virtual space partition associated with the server corresponding to the client of each user based on the object information associated with the user; and determining the spatial information of the virtual space based on the updated spatial partition information. In this way, the server can update the spatial partition information associated with its users without requiring the server to handle the entire load of the virtual space.
[0008] In some embodiments, dividing the virtual space into a plurality of virtual space partitions includes at least one of the following: dividing the virtual space into a plurality of virtual space partitions based on a preset size of the virtual space partition, wherein the spatial partition information of each virtual space partition indicates the object information of users within the area corresponding to the preset size in the virtual space; or determining the plurality of virtual space partitions based on the number of copies of the virtual space, wherein the spatial partition information of each virtual space partition indicates the object information of users within the virtual space corresponding to a portion of the number of copies. In this way, the division of the virtual space can be flexibly implemented through a horizontal partitioning strategy, a vertical partitioning strategy, and a hybrid partitioning strategy based on the horizontal partitioning strategy and the vertical partitioning strategy, so as to flexibly implement load distribution accordingly.
[0009] In some embodiments, associating one or more of the multiple virtual space partitions with one or more of the multiple servers includes: determining, for each server, the number of interest regions of users of the client corresponding to the server on each virtual space partition based on the multiple interest regions associated with the multiple users; and if the number of interest regions of users of the client corresponding to the server on a specific virtual space partition is greater than a predetermined number, associating the specific virtual space partition with the server so that the server performs computing processing on the specific virtual space partition. In this way, the overall overhead of multiple servers can be optimized by allocating corresponding virtual space partitions to servers with more interest regions to achieve centralized computing processing.
[0010] In some embodiments, the space management method further includes: determining at least one of the number of users in the virtual space partition and the sparsity of the virtual space based on the object information associated with each user; dividing the virtual space partition for which at least one of the number of users and the sparsity is greater than a predetermined threshold, and determining a plurality of second virtual space partitions; and associating one or more of the determined plurality of second virtual space partitions with one or more of the plurality of servers. In this way, when users gather in a specific area or there are fewer users in a specific area, partition adjustments can be made dynamically to further disperse the load pressure.
[0011] In some embodiments, determining the region information associated with the region of interest includes: determining at least one virtual space partition associated with the region of interest based on the spatial information and the region of interest associated with the user; and determining the region information based on the determined spatial partition information of the at least one virtual space partition. In this way, the region information provided to the user can be determined based on the region of interest and the virtual space partition of the user, and the processing overhead can be further optimized.
[0012] In some embodiments, the object information includes the position information of the virtual instance of the user in the virtual space, and determining the region information associated with the region of interest further includes: determining the region of interest associated with the user based on the position information of the virtual instance of the user in the virtual space; determining an extended region of interest having a larger area range than the region of interest based on the region of interest associated with the user; and determining the region information based on the space information and the extended region of interest. In this way, it is possible to provide region information that is more extended than the region of interest of the user, thereby making the user's field of view in the virtual space richer and facilitating a quick response to the user's position movement.
[0013] In some embodiments, sending the region information determined for each user to a server corresponding to a client of the user includes: determining, for each of the multiple servers, a plurality of region information of multiple users associated with the server; determining, for the multiple region information determined for each server, a region information set for the server; and sending the region information set for the server to each of the multiple servers at a predetermined time interval. In this way, the region information for each client corresponding to the server can be centrally obtained on a server-by-server basis, so as to further improve synchronization efficiency.
[0014] In some embodiments, the object information includes at least one of attribute information of the user's virtual instance, position information of the user's virtual instance in the virtual space, or relevant interaction information of the user's virtual instance; the space information includes environment configuration information of the entire area of the virtual space, attribute information of the user's virtual instance in the virtual space, position information of the user's virtual instance in the virtual space, or at least one of relevant interaction information of the user's virtual instance; and the area information includes environment configuration information within an area range associated with an area of interest in the virtual space, attribute information of the user's virtual instance within an area range associated with an area of interest, position information of the user's virtual instance in the virtual space, or at least one of relevant interaction information of the user's virtual instance.
[0015] In a second aspect of the present disclosure, a space management method is provided. The space management method is performed by a space management system, which includes a space management device, multiple servers communicating with the space management device, and multiple clients communicating with each of the multiple servers and accessing a virtual space. The space management method includes: at the server, sending object information associated with multiple users of the multiple clients corresponding to the server to the space management device; at the space management device, determining the space information of the virtual space based on the object information sent from the multiple servers; at the space management device, for each user of the multiple users, determining area information associated with the area of interest based on the space information and the area of interest associated with each user, wherein the area of interest includes at least a portion of the virtual space; at the space management device, sending the area information determined for each user to the server corresponding to the client of the user; and at the server, sending the area information determined for the user of the client corresponding to the server to the client.
[0016] In a third aspect of the present disclosure, a space management device is provided. The space management device includes: a state synchronization module configured to obtain object information associated with multiple users of multiple clients from multiple servers corresponding to multiple clients accessing the virtual space; a space management module configured to determine the space information of the virtual space based on the object information; a space scheduling module configured to determine, for each of the multiple users, area information associated with the area of interest based on the space information and the area of interest associated with each user, wherein the area of interest includes at least a portion of the virtual space; and wherein the state synchronization module is further configured to send the area information determined for each user to the server corresponding to the client of the user.
[0017] In a fourth aspect of the present disclosure, a space management system is provided. The space management system comprises: a space management device configured to execute the method according to the first aspect of the present disclosure; a plurality of servers communicating with the space management device; and a plurality of clients correspondingly communicating with each of the plurality of servers.
[0018] In a fifth aspect of the present disclosure, a computing device cluster is provided. The computing device cluster includes at least one computing device, each computing device includes a processor and a memory, wherein the processor of the at least one computing device is used to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster performs the method as described in the first aspect of the present disclosure. In some embodiments, the computing device cluster includes one computing device. In other embodiments, the computing device cluster includes multiple computing devices. In some embodiments, the computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop, a laptop, or a smart phone.
[0019] In a sixth aspect of the present disclosure, a computing device cluster is provided. The computing device cluster includes at least one computing device, each computing device includes a processor and a memory, wherein the processor of the at least one computing device is used to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster performs the method as described in the second aspect of the present disclosure. In some embodiments, the computing device cluster includes one computing device. In other embodiments, the computing device cluster includes multiple computing devices. In some embodiments, the computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop, a laptop, or a smart phone.
[0020] In a seventh aspect of the present disclosure, a computer program product comprising instructions is provided. When the instructions are executed by a computing device cluster, the computing device cluster performs the method as described in the first aspect of the present disclosure. In some embodiments, the program product may include one or more software installation packages, and when the method provided by the first aspect or its possible variations is required, the software installation packages may be downloaded or copied and executed on a computing device.
[0021] In an eighth aspect of the present disclosure, a computer program product comprising instructions is provided. When the instructions are executed by a computing device cluster, the computing device cluster performs the method as described in the second aspect of the present disclosure. In some embodiments, the program product may include one or more software installation packages, and when the method provided by the first aspect or its possible variations is required, the software installation packages may be downloaded or copied and executed on a computing device.
[0022] In a ninth aspect of the present disclosure, a computer-readable storage medium is provided, characterized in that it includes computer program instructions, and when the computer program instructions are executed by a computing device cluster, the computing device cluster executes the method as described in the first aspect of the present disclosure. In some embodiments, the computer-readable storage medium may be non-transient. The computer-readable storage medium includes, but is not limited to, volatile memory (e.g., random access memory), non-volatile memory (e.g., flash memory, hard disk (Hard Disk Drive, HDD), solid state disk (Solid State Drive, SSD), etc.).
[0023] In a tenth aspect of the present disclosure, a computer-readable storage medium is provided, characterized in that it includes computer program instructions, and when the computer program instructions are executed by a computing device cluster, the computing device cluster executes the method as described in the second aspect of the present disclosure. In some embodiments, the computer-readable storage medium may be non-transient. The computer-readable storage medium includes, but is not limited to, a volatile memory (e.g., a random access memory), a non-volatile memory (e.g., a flash memory, a hard disk, a solid-state disk, etc.). BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 An example diagram of a space management system according to an embodiment of the present disclosure is shown;
[0025] Figure 2A An example flow chart showing a space management method applicable to a space management system according to an embodiment of the present disclosure;
[0026] Figure 2B A schematic diagram of a virtual space environment to which a space management method is applicable according to an embodiment of the present disclosure is shown;
[0027] Figure 2C An example flow chart of a space management system according to an embodiment of the present disclosure is shown;
[0028] Figure 2D Another example diagram of a space management system according to an embodiment of the present disclosure is shown.
[0029] Figure 2EAn example sequence diagram of a space management system according to an embodiment of the present disclosure is shown;
[0030] Figure 2F Another example diagram of a space management system according to an embodiment of the present disclosure is shown;
[0031] Figure 3A An example diagram showing a space management system applicable to a space partitioning strategy according to an embodiment of the present disclosure;
[0032] Figure 3B A schematic diagram of a virtual space environment showing a horizontal partitioning strategy according to an embodiment of the present disclosure;
[0033] Figure 3C A schematic diagram of a virtual space environment showing a vertical partitioning strategy according to an embodiment of the present disclosure;
[0034] Figure 3D A schematic diagram of a virtual space environment showing a hybrid partitioning strategy according to an embodiment of the present disclosure;
[0035] Figure 4A An example flow chart of a space management method based on a virtual space partitioning strategy according to an embodiment of the present disclosure is shown;
[0036] Figure 4B A schematic diagram of a virtual space environment based on virtual space partitioning according to an embodiment of the present disclosure is shown;
[0037] Figure 5 A schematic block diagram of a space management device according to some embodiments of the present disclosure is shown;
[0038] Figure 6 A schematic block diagram showing an example device that can be used to implement an example implementation of the present disclosure;
[0039] Figure 7 A schematic block diagram illustrating an example device cluster that may be used to implement an example implementation of the present disclosure; and
[0040] Figure 8 A schematic block diagram of another example device that can be used to implement the example implementations of the present disclosure is shown. DETAILED DESCRIPTION
[0041] The preferred implementation of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although example embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.
[0042] As used herein, the term "including" and its variations mean open inclusion, i.e., "including but not limited to". Unless otherwise stated, the term "or" means "and / or". The term "based on" means "based at least in part on". The terms "embodiment" and "some embodiments" both mean "at least some embodiments". Other explicit and implicit definitions may also be included below.
[0043] Generally, as an example of multiple user activities in a virtual space at the same time, an MMO (Massively Multiplayer Online) game can be included. In the server architecture of a conventional MMO game, a server is configured to support an independent virtual space (Virtual Space, VS), and the server corresponds to a limited number of clients (for example, 100 clients or less / more), and these clients interact with each other in the virtual space supported by the server. For example, the server receives input information from each client, and sorts the input information of each client received based on the time sequence, and integrates the content with the virtual space supported by the server to generate an output sequence. Then, the server distributes the generated output sequence to each client, so that each client displays the content corresponding to the output sequence. In this way, the server synchronizes the status of each client, so that the user can interact with the virtual space itself supported by the server and other users in the virtual space.
[0044] However, the inventors of the present disclosure note that one server can only handle a limited number of clients, otherwise it will exceed the server's capacity. Even if multiple servers are used in parallel to share the simultaneous access needs of a large number of clients, it is difficult to achieve real-time synchronization and scene integration of the status of each user cluster in the virtual space because the virtual spaces between the multiple servers are independent of each other. Therefore, the server architecture of conventional MMO games cannot enable a large number of users to interact in the same virtual space. On the other hand, since different servers may use different engine architectures, when multiple servers are used to build independent large virtual spaces, developers need to use programming languages of different engine architectures for development and maintenance. In particular, when multiple servers are used, the construction of business logic of multiple virtual spaces of different themes may also be involved, which further leads to greater development complexity and poor robustness.
[0045] To this end, the present disclosure provides a space management solution, for example, for a large virtual space. In the space management solution of the present disclosure, a space management device obtains object information associated with multiple users of multiple clients from multiple servers corresponding to multiple clients accessing the virtual space. The space management device determines the space information of the virtual space based on the object information. For each of the multiple users, the space management device determines the area information associated with the area of interest based on the space information and the area of interest associated with each user, and sends the area information determined for each user to the server corresponding to the client of the user. According to the space management solution of the present disclosure, it is possible to synchronize the status information across servers without changing the architecture of the existing distributed servers, thereby supporting a large number of users to be in a single virtual space together, so as to realize real-time interaction between users in large virtual spaces with large scenes.
[0046] In an embodiment of the present disclosure, the term "virtual space" refers to, for example, a virtualized space environment that can accommodate multiple users for interaction, which can be implemented based on three-dimensional modeling technology. In some embodiments, the virtual space can have different types of scenes, such as virtual live broadcasts, virtual exhibitions, virtual concerts, cloud online meetings, etc. In some embodiments, the virtual space can be applicable to the metaverse virtual reality space described above in the present disclosure. In some embodiments, the virtual space can realize digital twin factory virtual simulation and city modeling, and is equipped with virtualized components to accommodate virtual instances of users. It should be understood that the definition of the virtual space of the present disclosure is not limited to this, as long as it is an independent category suitable for supporting multiple users to access and interact online at the same time. The embodiments of the present disclosure can be applied to various types of application scenarios, such as digital human courseware production, virtual teacher teaching, etc. in the field of education, digital human endorsement, digital human lectures, digital human conferences, etc. in the field of government and public utilities, intelligent medical customer service, virtual doctor training, etc. in the field of medical health, digital human intelligent customer service, digital human corporate endorsement, digital human training video production, etc. in the field of finance, intelligent customer service, digital human tour guides, digital human explanations, etc. in the field of cultural tourism, virtual variety show hosts, virtual news anchors, virtual sign language anchors, etc. in the field of radio and television media, digital human entertainment live broadcasts, digital human short video production, e-commerce live broadcasts, etc. in the field of interactive entertainment e-commerce. However, the application scenarios of the present disclosure are not limited to this, and any method suitable for implementing the embodiments of the present disclosure can be applied.
[0047] In the embodiments of the present disclosure, the term "object information" refers to information related to the user, such as attribute information of the user's virtual instance, orientation information in the virtual space, and related interaction information of the virtual instance. In some embodiments, the object information may also include environmental configuration information that supports the user's virtual instance experience in the virtual space, such as buildings, vegetation, animals, intelligent robots, etc. in the virtual space. In some embodiments, the user's virtual instance may be, for example, a virtual image of the user, which may be presented in the form of a simulated person, or of course, in other types of images. It should be understood that the definition of object information of the present disclosure is not limited to this, as long as it is relevant information suitable for the user relative to the virtual space.
[0048] In an embodiment of the present disclosure, the term "area of interest" (AOI) refers to, for example, an area in a virtual space that a user is interested in. In some embodiments, the area of interest may be a partial area in the virtual space, or the entire virtual space. In some embodiments, the area of interest may be determined based on a user's selection or subscription, or may be provided by a default configuration by a space management system, or may be determined by the space management system based on the physical location of the user's client, the physical location of a corresponding server, or any other factor. In some embodiments, the space management system may provide relevant updated area information based on the user's area of interest, so that the content in the virtual space related to the area of interest is presented on the user's client. It should be understood that the definition of the area of interest of the present disclosure is not limited to this, and may also be determined based on other factors.
[0049] Figure 1 FIG. 2 shows an example diagram of a space management system according to an embodiment of the present disclosure. Figure 1As shown, the space management system of the present disclosure includes a space management device 110, multiple servers 120-1, 120-2, ..., 120-N (hereinafter sometimes collectively referred to as "server 120"), and multiple client clusters corresponding to the multiple servers, for example, the client cluster corresponding to server 120-1 includes multiple clients 131-1, 131-2, ..., 131-M, the client cluster corresponding to server 120-2 includes multiple clients 132-1, 132-2, ..., 132-M, and the client cluster corresponding to server 120-M includes multiple clients 13N-1, 13N-2, ..., 13N-M. It should be understood that in the embodiments of the present disclosure, the values of M and N can be positive integers greater than 2, and the value of M can be different in different client clusters corresponding to different servers. In the embodiments of the present disclosure, the servers 120 can respectively include server-side business engines, and the clients can respectively include client business engines corresponding to the servers 120 corresponding to them. In some embodiments, the server-side business engine and the client-side business engine can be developed by developers through a specific business engine architecture to achieve communication and interaction between the client and the server. In some embodiments, the business engine architecture can use an engine for developing desktop games, an engine for developing mobile games, etc., but is not limited to this, as long as it can be used to develop a virtual space instance.
[0050] In an embodiment of the present disclosure, the space management device 110 may include a space scheduling module 111, a space management module 112, and a state synchronization module 113. In some embodiments, the space scheduling module 111 may be used to implement, for example, the determination of space partitioning strategies, the scheduling of space partitioning, the determination of regional information based on a user's specific area of interest, etc. In some embodiments, the space management module 112 may be used to implement, for example, space registration of a server, access to a virtual space, virtual space partitioning, scene switching of a virtual space, determination of space information of a virtual space, and material loading of a virtual space, etc. In some embodiments, the state synchronization module 113 may be used to implement, for example, communication and information interaction with multiple servers to implement state synchronization across servers, etc.
[0051] In an embodiment of the present disclosure, a plurality of servers 120-1, 120-2, ..., 120-N may respectively include server parallelization plug-ins 121-1, 121-2, ..., 121-N (hereinafter sometimes collectively referred to as "server parallelization plug-in 121"). In some embodiments, server parallelization plug-in 121 may be implemented in the form of an SDK (Software Development Kit). In some embodiments, server parallelization plug-in 121 may include a space application integration SDK and a space management integration SDK. In an embodiment of the present disclosure, the space application integration SDK integrates relevant logic for implementing virtual space applications based on space information, such as virtual instance creation, virtual instance information update, virtual instance information query, etc. In some embodiments, virtual instance creation may be implemented using a put entity command, such as when a new user joins a virtual space, a new virtual instance is created for the new user and virtual instance information associated with the newly created virtual instance. In some embodiments, the virtual instance information includes, for example, spatial attribute information such as creation point location information, virtual instance type, and related attribute information. The virtual instance information is superimposed on the virtual instance and sent by the server to the space management device 110 via the space application integration SDK to achieve cross-server virtual instance information synchronization. In some embodiments, the virtual instance information update can be implemented using the update entity info command, for example, the virtual instance type, related attribute information, and spatial attribute information of the relative position of the virtual instance in the virtual space of a specific virtual instance can be updated. In some embodiments, the spatial attribute information can be, for example, spatial position information such as spatial coordinates represented by position (x, y, z), and directional information such as the relative direction relationship and angle of the virtual instance in the space. In some embodiments, the virtual instance information query can be implemented using the get entity info command, for example, the virtual instance, virtual space objects and other content within a specific range around a specific virtual instance or a specific spatial position can be queried. In some embodiments, the queried virtual instance information can be presented in the form of an information list. In an embodiment of the present disclosure, the space management integrated SDK integrates relevant logic for managing the interaction between the server 120 and the space management device 110, such as realizing the submission of application software packages integrated with the SDK, the connection and stop of application programs with distributed space services, and the query of status information of the space management device 110.In some embodiments, submission of an application package integrated with the SDK can be implemented using the upload app command, connection between the application and the distributed space service can be implemented using the start command, stopping of the application and the distributed space service can be implemented using the stop command, and query of the status information of the space management device 110 can be implemented using the describe command. According to an embodiment of the present disclosure, since the status synchronization between the space management device 110 and the server 120 is achieved through a plug-in, cross-server coordination and planning can be achieved without changing the traditional server architecture, thereby jointly supporting the operation of a large virtual space.
[0052] Figure 2A FIG. 1 shows an example flow chart of a space management method applicable to a space management system according to an embodiment of the present disclosure. Figure 2A As shown, at box 201, the space management device 110 obtains object information associated with multiple users of the multiple clients 130 from multiple servers 120 corresponding to the multiple clients 130 accessing the virtual space through the state synchronization module 113. At box 203, the space management device 110 determines the space information of the virtual space based on the object information through the space management module 112. At box 205, the space management device 110 determines the area information associated with the area of interest AOI for each user of the multiple users based on the space information and the area of interest AOI associated with each user through the space scheduling module 111, wherein the area of interest AOI includes at least a portion of the virtual space. At box 207, the space management device 110 sends the area information determined for each user to the server corresponding to the client of the user through the state synchronization module 113. According to some embodiments of the present disclosure, at box 209, the server can send the area information determined for the user of the client corresponding to the server to the client. At block 211 , the client displays the received region information associated with the region of interest of the user of the client.
[0053] In an embodiment of the present disclosure, the space management device 110 can determine multiple area information of multiple users associated with each of the multiple servers. Then, the space management device 110 can determine a set of area information for each server for the multiple area information determined by the server, and send the set of area information for the server to each of the multiple servers at a predetermined time interval. In this way, the area information for each client corresponding to the server can be centrally obtained on a server-by-server basis to further improve synchronization efficiency.
[0054] In an embodiment of the present disclosure, the object information includes at least one of the attribute information of the virtual instance of the user, the position information of the virtual instance of the user in the virtual space, or the relevant interaction information of the virtual instance of the user. In an embodiment of the present disclosure, the space information includes at least one of the environment configuration information of the entire area of the virtual space, the attribute information of the virtual instance of the user in the virtual space, the position information of the virtual instance of the user in the virtual space, or the relevant interaction information of the virtual instance of the user. In an embodiment of the present disclosure, the area information includes at least one of the environment configuration information within the area range associated with the area of interest in the virtual space, the attribute information of the virtual instance of the user within the area range associated with the area of interest, the position information of the virtual instance of the user in the virtual space, or the relevant interaction information of the virtual instance of the user.
[0055] Figure 2B FIG. 1 is a schematic diagram of a virtual space environment applicable to a space management method according to an embodiment of the present disclosure. Figure 2BAs shown in the virtual space environment 2200 of FIG. 1 , the space management device 110 obtains object information associated with the user of the client 131-1 from the server 120-1 corresponding to the client 131-1 accessing the virtual space 2000. The object information is, for example, virtual instance information corresponding to the user of the client 131-1 and the position information of the virtual instance in the virtual space 2000. Furthermore, the space management device 110 obtains object information associated with the user of the client 132-2 from the server 120-2 corresponding to the client 132-2 accessing the virtual space 2000. The object information is, for example, virtual instance information corresponding to the user of the client 132-2 and the position information of the virtual instance in the virtual space 2000. The space management device 110 determines the space information of the virtual space 2000 through the space management module 112 based on the object information associated with the user of the client 131-1 and the object information associated with the user of the client 132-2, wherein the space information includes, for example, the virtual instance information corresponding to the user of the client 131-1 and the position information of the virtual instance in the virtual space 2000 and the virtual instance information corresponding to the user of the client 132-2 and the position information of the virtual instance in the virtual space 2000. The space management device 110 determines, for the user of the client 131-1, the region information associated with the region of interest AOI-1 based on the space information and the region of interest AOI-1 associated with the user through the space scheduling module 111. The region of interest AOI-1 includes at least a part of the virtual space, and the region information associated with the region of interest AOI-1 is, for example, the virtual instance corresponding to the user of the client 131-1 and the virtual instance corresponding to the user of the client 132-2, and the environment configuration information such as the building in the virtual space 2000. The space management device 110 determines the area information associated with the area of interest AOI-2 for the user of the client 132-2 through the space scheduling module 111 based on the space information and the area of interest AOI-2 associated with the user. The area of interest AOI-2 includes at least a part of the virtual space, and the area information associated with the area of interest AOI-2 is, for example, virtual instances corresponding to the user of the client 132-2 framed by a single dotted line, virtual instances corresponding to other users, and environmental configuration information such as buildings in the virtual space 2000. Then, the space management device 110 sends the area information associated with the area of interest AOI-1 determined for the user of the client 131-1 to the server 120-1 corresponding to the client 131-1 of the user through the state synchronization module 113, and sends the area information associated with the area of interest AOI-2 determined for the user of the client 132-2 to the server 120-2 corresponding to the client 132-2 of the user.In response to receiving the area information sent from the space management device 110, the server 120-1 sends the area information determined by the user of the client 131-1 to the client 131-1, and the server 120-2 sends the area information determined by the user of the client 132-2 to the client 132-2. In response to receiving the area information from the server 120-1, the client 131-1 displays the received area information associated with the area of interest AOI-1, and in response to receiving the area information from the server 120-2, the client 132-2 displays the received area information associated with the area of interest AOI-2.
[0056] Figure 2C An example flow chart of a space management system according to an embodiment of the present disclosure is shown. Figure 2D Another example diagram of a space management system according to an embodiment of the present disclosure is shown, and Figure 2C and Figure 2D and Figure 2A Correspondingly, the registration, access and communication process 2400 of the server 120 to the space management device 110 is shown. Figure 2CAs shown, at box 231, on the server 120, the server-side business engine and the server parallelization plug-in 121 are integrated and installed. In some embodiments, the developer of the virtual space can integrate the server parallelization plug-in 121 in the server-side business engine, so that after the business logic processing of the server 120 is completed, the server parallelization plug-in 121 is called to realize the management and state synchronization of the object information of the user associated with the client 130. In some embodiments, the complex of the integrated server-side business engine and the server parallelization plug-in 121 is packaged and published to the server 120 to be installed in the server 120. At box 233, in response to the server 120 starting, the server 120 registers with the space management system 100. In some embodiments, after the server 120 starts, the server parallelization plug-in 121 installed in the server 120 is called to register the identifier information of the server 120 with the space management device 110. In some embodiments, the identifier information of the server 120 may include at least one of the attribute information such as the server IP (Internet Protocol) address, the server port number (port), the name of the application program carried by the server, and the server configuration information. At block 235, the server 120 communicates with the space management device 110 via the server parallelization plug-in 121 to send the user's object information received from the client 130 associated with the server 120 to the space management device 110 or receive updated region information or space information from the space management device 110. In some embodiments, when the server 120 is in a running state after being started, the server 120 obtains or updates the space information related to the space attribute via the server parallelization plug-in 121. At block 237, the space management device 110 determines the space information covering the entire object information of multiple servers and the region information associated with the multiple servers respectively based on the object information obtained via the server parallelization plug-in 121. In some embodiments, the space management device 110 can determine the object information (e.g., the user's virtual instance, the user's related interaction information of the virtual instance, the position, direction, angle, etc. of the user's virtual instance in the virtual space) associated with the client corresponding to each server from the object information sent by each server received from the multiple servers via the server parallelization plug-in 121, so as to generate the region information of each server associated with the client corresponding to each server. In some embodiments, the server 120 may send relevant information of the virtual instance of the user of the client 130 corresponding to the server 120 (eg, user information related to the attributes of the virtual instance, spatial information related to the spatial attributes of the virtual instance) to the space management device 110.At box 239, the server 120 requests the space management device 110 to obtain the region information, so that the space management device 110 sends the region information associated with the server 120 to the server 120. In some embodiments, the server 120 requests the space management device 110 for the region information of the virtual instance of the user associated with the client 130 corresponding to the server 120, and calculates the video stream displayed at the client 130 of the server 120 based on the obtained region information. In this way, according to an embodiment of the present disclosure, since the space management device 110 comprehensively manages multiple servers 120 in parallel, and the server 120 and the space management device 110 communicate with each other via the server parallelization plug-in 121 to synchronize the overall interactive status and space information of multiple servers, it is possible to achieve cross-server information sharing and reading and writing.
[0057] Figure 2E shows an example sequence diagram of a space management system according to an embodiment of the present disclosure, Figure 2F Another example diagram of a space management system according to an embodiment of the present disclosure is shown, and Figure 2E and Figure 2F and Figure 2A and Figure 2C Correspondingly, the communication and state synchronization process 2600 between the client, the server 120 and the space management device 110 is shown. Figure 2DAs shown, at box 251, the client sends object information to the server corresponding to the client. In some embodiments, the client can use the Add Entity command to register the user with the server to create a virtual instance of the user, thereby sending object information including relevant attribute information, relevant interaction information, etc. of the virtual instance of the user. In some embodiments, when the user has completed registration, the client can send object information updated based on the user's latest operation or status to the server. At box 253, the server 120 calls the server parallelization plug-in 121 to read the object information. In some embodiments, the server parallelization plug-in 121 of the server 120 can use the Read Entity Info command to retrieve the object information to be sent to the space management device 110 from the server-side business engine of the server 120. At box 255, the server parallelization plug-in 121 sends the user's object information set read by each client 130 corresponding to the server 120 to the space management device 110. In some embodiments, the server parallelization plug-in 121 of the server 120 can use the Create / UpdateInfo command to send the newly added object information or the updated object information to the space management device 110. At block 257, the server parallelization plug-in 121 sends a request for obtaining a region information set to the space management device 110, so that the space management device 110 sends the updated region information set associated with each client 130 corresponding to the server 120 to the server 120. In some embodiments, the server parallelization plug-in 121 of the server 120 may request the updated region information set associated with each client 130 corresponding to the server 120 from the space management device 110 using the Get Entities command. In some embodiments, the space management device 110 may send a region information set including region information associated with the server 120 to the server parallelization plug-in 121 of the server 120 in response to the region information obtaining request. In some embodiments, the region information set, as an example of region information, may be presented in the form of a region information list, wherein the object information list includes region information associated with regions of interest of each user of multiple clients 130 corresponding to the server 120. At block 259, the server parallelization plug-in 121 writes the obtained region information to the server 120. In some embodiments, the server parallelization plug-in 121 of the server 120 may use the Write Entity Info command to write the acquired area information set to the server-side business engine of the server 120. At block 261, the server 120 updates the area information associated with the area of interest AOI of the user of each client 130 for the multiple clients 130 corresponding to the server 120 based on the written area information.In some embodiments, after receiving the area information set, the server-side service engine of the server 120 uses the Update AOI command to update the video stream based on the area information associated with the area of interest provided to each client 130 based on the area of interest of the user of each client 130. In an embodiment of the present disclosure, the range of interest can be configured autonomously by the user or by default. For example, other virtual instances, environments, or events occurring within a predetermined distance range centered on the user will be synchronized to the client of the user, while content beyond the predetermined range is determined to be uninteresting and will not be synchronized to the client of the user. At box 263, the server 120 sends the updated area information based on the area of interest AOI associated with the user of the client 130 to the client 130. In some embodiments, the server-side service engine of the server 120 uses the Syn Entity Info command to send the area information for the user of each client 130 to each client 130, so as to synchronize the state across servers to each client 130. At box 265, the client 130 displays based on the updated area information. In an embodiment of the present disclosure, the business logic of the steps of boxes 253 to box 263 can be executed based on a predetermined time interval. In some embodiments, the predetermined time interval can be determined by the frame rate, which can be executed in the form of a "TICK" indicating the number of times the server accepts and calculates each cycle. For example, if the frame rate per second (FPS) is 10 (i.e., 10FPS), it means that the business logic is executed 10 times in 1 second, that is, the business logic is executed once every 100ms. In some embodiments, the client 130 and the server 120 can send object information and obtain area information (i.e., update and query) based on the above-mentioned predetermined time interval. In some embodiments, the server 120 and the space management device 110 can also send object information and obtain area information (i.e., update and query) based on the above-mentioned predetermined time interval. It should be understood that the sending of object information and the acquisition of area information between the client 130 and the server 120 and between the server 120 and the space management device 110 can be implemented based on all or part of the information. In some embodiments, the client 130 can automatically communicate and interact with the server through automatic execution logic or plug-in to realize the sending of object information and the acquisition of area information. For example, the client 130 can use the World->GetPawnIterator command to read all relevant area information from the corresponding server 120. In some embodiments, for the case of user-defined object types, specific types of automatic communication and interaction can be performed based on the object type configured by the user. For example, FindObjectOfType can be used. <t>(), based on the object type configured by the user, synchronize the object information and area information of a specific type. According to the embodiments of the present disclosure, for example, in a virtual space scene such as an exhibition or a concert, the automatic synchronization of virtual instance information between the client, the server, and the space management device can be achieved without the developer actively calling the server parallelization plug-in 121. It should be understood that in Figure 2D In the example, although 131-1, 131-M and server 120-1, 131N-1 and server 120-N are shown, the number of this example is illustrative and does not constitute any limitation.
[0058] Figure 3A An example diagram of a space management system applicable to a space partitioning strategy according to an embodiment of the present disclosure is shown, and Figure 3A The process 3100 of associating a server with a virtual space partition is shown. Figure 3A As shown, in an embodiment of the present disclosure, the space management device 110 can also divide the virtual space into multiple virtual space partitions, and associate one or more of the multiple virtual space partitions with one or more of the multiple servers, so that the server performs computing processing on the one or more virtual space partitions associated with the server. In this way, a single virtual space can be further divided and associated with a server to achieve load balancing across servers. In some embodiments, as a way of dividing the virtual space into multiple virtual space partitions, a horizontal partitioning strategy, a vertical partitioning strategy, or a hybrid partitioning strategy can be adopted.
[0059] Figure 3B A schematic diagram of a virtual space environment according to a horizontal partitioning strategy of an embodiment of the present disclosure is shown. Figure 3C A schematic diagram of a virtual space environment according to a vertical partitioning strategy of an embodiment of the present disclosure is shown. Figure 3D A schematic diagram of a virtual space environment according to a hybrid partitioning strategy of an embodiment of the present disclosure is shown. In an embodiment of the present disclosure, as a horizontal partitioning strategy, the virtual space can be divided into multiple virtual space partitions based on a preset size of the virtual space partition, wherein the spatial partitioning information of each virtual space partition indicates the object information of users within the area corresponding to the preset size in the virtual space. In some embodiments, the horizontal partitioning strategy can specify the size of each virtual space partition, and configure one or more virtual space partitions divided based on the size of each virtual space partition to a corresponding server. For example, if the horizontal partitioning strategy specifies that the size of each virtual space partition is 10*10, then a 100*100 virtual space is divided into 100 virtual space partitions, and one or more of the 100 virtual space partitions can be configured to different servers so that a specific server performs calculation processing corresponding to the configured one or more spatial partitions, and finally the space management device 110 aggregates the calculated data processed for the 100 virtual space partitions to obtain the overall data of the virtual space corresponding to the spatial partition. Figure 3B As shown, the virtual space 2000 can be divided into 100 virtual space partitions according to the preset size, wherein the server 120-1 is allocated 3 virtual space partitions so that the server 120-1 performs the calculation processing on the 3 virtual space partitions, the server 120-2 is allocated 1 virtual space partition so that the server 120-2 performs the calculation processing on the 1 virtual space partition, and the server 120-N is allocated 6 virtual space partitions so that the server 120-N performs the calculation processing on the 6 virtual space partitions. In this way, each server is allocated one or more corresponding virtual space partitions, so that the calculation processing of the virtual space 2000 can be distributed to different servers, and the servers can centrally process the corresponding virtual space partitions, realizing load balancing and overhead optimization while realizing a large virtual space.
[0060] In an embodiment of the present disclosure, as a vertical partitioning strategy, the multiple virtual space partitions can be determined based on the number of copies of the virtual space, wherein the space partitioning information of each virtual space partition indicates the object information of users in the virtual space corresponding to a portion of the number of copies. In some embodiments, the vertical partitioning strategy can specify the number of copies of a space or a space partition, and after each copy is configured to a different server for computational processing, the space management device 110 aggregates the computational processing results of all copies to integrate into complete data. For example, if the vertical partitioning strategy can specify the number of copies of a space partition (i.e., the vertical virtual space partition) as 10, and a number of copies are configured for each of the five servers, then for the virtual space corresponding to the space partition, the virtual instances are dispersed into 10 copies and the five servers process the corresponding copies respectively, and finally the space management device 110 aggregates the data processed and calculated for the 10 copies to obtain the overall data of the virtual space corresponding to the space partition. Figure 3C As shown, the virtual space 2000 can be divided into 10 copies 2000-1 to 2000-10 according to the preset size, wherein the server 120-1 is allocated with two copies 2000-1 and 2000-2 so that the server 120-1 performs the computing processing on the two copies, the server 120-2 is allocated with one copy 2000-3 so that the server 120-2 performs the computing processing on the corresponding one copy 2000-3, and the server 120-N is allocated with one copy 2000-10 so that the server 120-N performs the computing processing on the corresponding one copy 2000-10. In this way, the corresponding one or more virtual space partitions allocated to each server can make the computing processing of the virtual space 2000 distributed to different servers, and can meet the server's all-round access to the virtual space, while realizing a large virtual space, achieving load balancing and cost optimization.
[0061] In the embodiment of the present disclosure, as a hybrid partitioning strategy, a horizontal partitioning strategy and a vertical partitioning strategy can be combined to form a hybrid partitioning strategy. Figure 3D As shown, virtual space 2000 can be divided into 10 copies according to a preset size, and each copy is divided into 100 virtual space partitions according to a preset size. For example, server 120-1 is assigned 2 virtual space partitions in copy 2000-1 and 1 virtual space partition in copy 2000-2, so that server 120-1 performs computing processing on 2 virtual space partitions in copy 2000-1 and 1 virtual space partition in copy 2000-2. For example, server 120-2 is assigned 4 virtual space partitions in copy 2000-1, 2 virtual space partitions in copy 2000-2, and 3 virtual space partitions in copy 2000-3, so that server 120-2 performs computing processing on 4 virtual space partitions in copy 2000-1, 2 virtual space partitions in copy 2000-2, and 3 virtual space partitions in copy 2000-3. In the hybrid partitioning strategy, only the horizontal partitioning strategy or the vertical partitioning strategy may be implemented for some of the multiple servers. For example, if the server 120-N is assigned the replica 2000-M without further virtual space partitioning, the server 120-N performs computing processing on the corresponding replica 2000-M.
[0062] Figure 4A FIG. 1 shows an example flow chart of a space management method based on a virtual space partitioning strategy according to an embodiment of the present disclosure. Figure 4A As shown, at box 401, the space management device 110 determines the virtual space partition strategy. In some embodiments, the virtual space partition strategy may include virtual space partition information such as configuration space size and configuration space location, virtual space partition rules, space switching rules, etc. In some embodiments, the virtual space partition rules may use a nine-square grid, an octree, etc. to divide a single virtual space. For example, the space management device 110 may determine the virtual space partition strategy based on the information required by the client. In some embodiments, the space management device 110 may determine the vertical partition strategy based on the area of interest AOI of the user of the client 130. For example, if multiple users of multiple clients corresponding to each server are roughly evenly distributed in the virtual space 2000, a vertical partition strategy may be adopted so that each server is allocated one or more copies of the virtual space based on computing needs. In some embodiments, the space management device 110 may determine the horizontal partition strategy based on the orientation information of the user of the client 130 in the virtual space and the area of interest AOI of the user of the client 130. For example, if multiple users of multiple clients of a specific server are concentrated in a specific area of the virtual space 2000, a horizontal partitioning strategy can be adopted so that the specific server is assigned a virtual space partition of a specific area where users are concentrated in the virtual space. At box 403, the space management device 110 divides the virtual space to determine multiple virtual space partitions based on the determined virtual space partitioning strategy. At box 405, one or more of the determined multiple virtual space partitions are associated with multiple servers so that each server 120 processes the content of the associated one or more virtual space partitions. At box 407, the space management device 110 obtains the processing results of each virtual space partition from the multiple servers 120 to merge the processing results. In some embodiments, the space management device 110 determines the spatial information of the entire virtual space through the merge processing. At box 409, the space management device 110 distributes the merged processing results to the responding servers so that the servers further send them to the clients. In some embodiments, the space management device 110 can determine the virtual space partitioning strategy based on the information required by the client, and determine the updated space partitioning information for the virtual space partitions associated with each server 120, thereby sending the updated space partitioning information to each server 120 as the area information for the server 120.
[0063] In some embodiments, the space management device 110 can update the space partition information of the virtual space partition associated with the server corresponding to the client of each user based on the object information associated with the user, and determine the space information of the virtual space based on the updated space partition information. Figure 4B A schematic diagram of a virtual space environment based on virtual space partitioning according to an embodiment of the present disclosure is shown, and Figure 4B FIG. 4 shows a virtual space environment 4200 in which a horizontal partitioning strategy is adopted. Figure 4B As shown, the space management device 110 can update the space partition information of the virtual space partition associated with the server 120-1 corresponding to the client 131-1 of the user based on the object information associated with the user of the client 131-1, and can update the space partition information of the virtual space partition associated with the server 120-2 corresponding to the client 132-2 of the user based on the object information associated with the user of the client 132-2. Then, the space management device 110 determines the overall space information of the virtual space 2000 based on the updated space partition information for the server 120-1, the updated space partition information for the server 120-2, and the updated space partition information for other servers. In this way, the server can update the space partition information associated with its user without requiring the server to handle the entire load of the virtual space.
[0064] In some embodiments, the space management device 110 may determine at least one virtual space partition associated with the area of interest based on the space information and the area of interest associated with the user, and determine the area information based on the determined space partition information of the at least one virtual space partition. In some embodiments, if a vertical partitioning strategy is adopted, the space management device 110 may determine a copy associated with the area of interest AOI of the user in the virtual space 2000 based on the area of interest AOI of the user of the client 130, and then determine the area information for the user of the client 130 based on the determined copy. In some embodiments, if a horizontal partitioning strategy is adopted, the space management device 110 may determine the virtual space partition associated with the area of interest AOI of the user in the virtual space 2000 based on the orientation information of the user of the client 130 in the virtual space and the area of interest AOI of the user of the client 130, and then determine the area information for the user of the client 130 based on the determined virtual space partition. Figure 4B As shown, the space management device 110 can update the space partition information of the virtual space partition associated with the server 120-1 corresponding to the client 131-1 of the user based on the object information associated with the user of the client 131-1. The space partition information of the virtual space partition is determined based on the area of interest AOI-1 of the user of the client 131-1, for example, the 15 virtual space partitions covered by the solid line frame of the area of interest AOI-1. The space management device 110 can update the space partition information of the virtual space partition associated with the server 120-2 corresponding to the client 132-2 of the user based on the object information associated with the user of the client 132-2. The space partition information of the virtual space partition is determined based on the area of interest AOI-2 of the user of the client 132-2, for example, the 30 virtual space partitions covered by the solid line frame of the area of interest AOI-2. Then, the space management device 110 determines the overall space information of the virtual space 2000 based on the 15 space partition information updated for the server 120-1, the 30 space partition information updated for the server 120-2, and the space partition information updated for other servers. In this way, the area information provided to the user can be determined based on the user's area of interest and the virtual space partition, and the processing overhead can be further optimized.
[0065] In some embodiments, the space management device 110 may determine at least one of the number of users in the virtual space partition and the sparsity of the virtual space based on the object information associated with each user. The space management device 110 may divide the virtual space partition for which at least one of the number of users and the sparsity is greater than a predetermined threshold, and determine a plurality of second virtual space partitions. The space management device 110 may associate one or more of the determined plurality of second virtual space partitions with one or more of the plurality of servers. For example, since users can move arbitrarily in the entirety of the virtual space, if a large number of users gather in a specific area, there is a high load in the virtual space partition corresponding to the specific area. Here, the virtual space partition with a high load is further divided based on the number of users in the virtual space partition and the sparsity of the virtual space, and dispersed to each server to achieve load balancing.
[0066] In some embodiments, the space management device 110 may determine, for each server, the number of interest regions of the users of the client corresponding to the server on each virtual space partition based on the multiple interest regions associated with the multiple users. In some embodiments, if the number of interest regions of the users of the client corresponding to the server on a specific virtual space partition is greater than a predetermined number, the space management device 110 may associate the specific virtual space partition with the server so that the server performs computing processing on the specific virtual space partition. In this way, the overall overhead of multiple servers can be optimized by allocating corresponding virtual space partitions to servers with more interest regions to achieve centralized computing processing.
[0067] In some embodiments, the space management device 110 may determine the region of interest associated with the user based on the position information of the virtual instance of the user in the virtual space in the object information of the user. The space management device 110 may determine an extended region of interest having a larger area range than the region of interest based on the region of interest associated with the user. The space management device 110 may determine the region information based on the space information and the extended region of interest. For example, the space management device 110 may control the virtual space partition content loaded on the server by controlling the range of space information available to the server. For example, if the operating range of a specific server is 0 to 100 meters, the specific server only synchronizes virtual instance information within the range of 0 to 100 meters. In some embodiments, considering the viewing angle factor, virtual instance information within the range of 0 to 120 meters may also be synchronized. In this way, it is possible to provide region information that is more extended than the user's region of interest, thereby making the user's field of view in the virtual space richer and facilitating a quick response to the user's position movement.
[0068] According to the space management system and space management method disclosed in the present invention, it is possible to synchronize status information across servers without changing the architecture of existing distributed servers, thereby supporting a large number of users to be in a single virtual space together, so as to realize real-time interaction among users in large virtual spaces with large scenes.
[0069] Figure 5 A schematic block diagram of a space management device according to some embodiments of the present disclosure is shown. In an embodiment of the present disclosure, the space management device 500 includes a space scheduling module 510, a space management module 520, and a state synchronization module 530. In an embodiment of the present disclosure, the state synchronization module 530 is configured to obtain object information associated with multiple users of multiple clients from multiple servers corresponding to multiple clients accessing the virtual space. The space management module 520 is configured to determine the space information of the virtual space based on the object information. The space scheduling module 510 is configured to determine, for each user of the multiple users, area information associated with the area of interest based on the space information and the area of interest associated with each user, wherein the area of interest includes at least a portion of the virtual space. In addition, the state synchronization module 530 is also configured to send the area information determined for each user to the server corresponding to the client of the user.
[0070] In some embodiments, the space management module 520 is further configured to divide the virtual space into a plurality of virtual space partitions. Furthermore, the space scheduling module 510 is further configured to associate one or more of the plurality of virtual space partitions with one or more of the plurality of servers, so that the server performs computational processing on the one or more virtual space partitions associated with the server. In this way, a single virtual space can be further divided and associated with a server to achieve load balancing across servers.
[0071] In some embodiments, the space management module 520 is further configured to update the space partition information of the virtual space partition associated with the server corresponding to the client of each user based on the object information associated with the user; and determine the space information of the virtual space based on the updated space partition information. In this way, the server can update the space partition information associated with its users without requiring the server to handle the entire load of the virtual space.
[0072] In some embodiments, the space management module 520 is further configured to divide the virtual space into a plurality of virtual space partitions including at least one of the following: based on a preset size of the virtual space partition, the virtual space is divided into a plurality of virtual space partitions, wherein the space partition information of each virtual space partition indicates the object information of users within the area corresponding to the preset size in the virtual space; or based on the number of copies of the virtual space, the plurality of virtual space partitions are determined, wherein the space partition information of each virtual space partition indicates the object information of users within the virtual space corresponding to a portion of the number of copies. In this way, the division of the virtual space can be flexibly implemented through a horizontal partitioning strategy, a vertical partitioning strategy, and a hybrid partitioning strategy based on the horizontal partitioning strategy and the vertical partitioning strategy, so as to flexibly implement load distribution accordingly.
[0073] In some embodiments, the space scheduling module 510 is further configured to determine, for each server, the number of interest regions of the users of the client corresponding to the server on each virtual space partition based on the multiple interest regions associated with the multiple users; and if the number of interest regions of the users of the client corresponding to the server on a specific virtual space partition is greater than a predetermined number, then the specific virtual space partition is associated with the server so that the server performs computing processing on the specific virtual space partition. In this way, the servers with more interest regions can be assigned corresponding virtual space partitions to achieve centralized computing processing, thereby optimizing the overall overhead of multiple servers.
[0074] In some embodiments, the space scheduling module 510 is further configured to determine at least one of the number of users in the virtual space partition and the sparsity of the virtual space based on the object information associated with each user; divide the virtual space partition for which at least one of the number of users and the sparsity is greater than a predetermined threshold, and determine a plurality of second virtual space partitions; and associate one or more of the determined plurality of second virtual space partitions with one or more of the plurality of servers. In this way, when users gather in a specific area or there are fewer users in a specific area, partition adjustment can be performed dynamically to further disperse the load pressure.
[0075] In some embodiments, the spatial scheduling module 510 is further configured to determine at least one virtual space partition associated with the region of interest based on the spatial information and the region of interest associated with the user; and determine the region information based on the spatial partition information of the at least one virtual space partition determined. In this way, the region information provided to the user can be determined based on the region of interest of the user and the virtual space partition, and the processing overhead can be further optimized.
[0076] In some embodiments, the object information includes the position information of the virtual instance of the user in the virtual space, and the space scheduling module 510 is further configured to determine the region of interest associated with the user based on the position information of the virtual instance of the user in the virtual space; determine an extended region of interest with a larger area than the region of interest based on the region of interest associated with the user; and determine the region information based on the space information and the extended region of interest. In this way, it is possible to provide region information that is more extended than the region of interest of the user, thereby making the user's field of view in the virtual space richer and facilitating a quick response to the user's position movement.
[0077] In some embodiments, the state synchronization module 530 is further configured to determine, for each of the multiple servers, multiple area information of multiple users associated with the server; determine a set of area information for the server for the multiple area information determined by each server; and send the set of area information for the server to each of the multiple servers at a predetermined time interval. In this way, the area information for each client corresponding to the server can be centrally obtained on a server-by-server basis to further improve synchronization efficiency.
[0078] In some embodiments, the object information includes at least one of attribute information of the user's virtual instance, position information of the user's virtual instance in the virtual space, or relevant interaction information of the user's virtual instance; the space information includes environment configuration information of the entire area of the virtual space, attribute information of the user's virtual instance in the virtual space, position information of the user's virtual instance in the virtual space, or at least one of relevant interaction information of the user's virtual instance; and the area information includes environment configuration information within an area range associated with an area of interest in the virtual space, attribute information of the user's virtual instance within an area range associated with an area of interest, position information of the user's virtual instance in the virtual space, or at least one of relevant interaction information of the user's virtual instance.
[0079] The modules included in the space management device of the space management system are taken as an example of a software functional unit. The space management system and / or the space management device may include code running on a computing instance. Among them, the computing instance may be at least one of computing devices such as a physical host (computing device), a virtual machine, and a container. Further, the above-mentioned computing device may be one or more. For example, the space management system and / or the space management device may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the application may be distributed in the same region or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, and each AZ includes a data center or multiple data centers with close geographical locations. Among them, usually a region may include multiple AZs.
[0080] Similarly, multiple hosts / virtual machines / containers used to run the code can be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Usually, a VPC is set up in a region. For cross-region communication between two VPCs in the same region and between VPCs in different regions, a communication gateway needs to be set up in each VPC to achieve interconnection between VPCs through the communication gateway.
[0081] As an example of a hardware functional unit, a space management system and / or a space management device may include at least one computing device, such as a server, etc. Alternatively, each module of the space management device may also be a device implemented by an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0082] The multiple computing devices included in the space management system and / or the space management apparatus can be distributed in the same region or in different regions. The multiple computing devices included in the space management system and / or the space management apparatus can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the space management system and / or the space management apparatus can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.
[0083] The embodiment of the present disclosure also provides a computing device 600 . Figure 6 A schematic block diagram of an example device that can be used to implement an example implementation of the present disclosure is shown. Figure 6 As shown, the computing device 600 includes: a bus 602, a processor 604, a memory 606 and a communication interface 608. The processor 604, the memory 606 and the communication interface 608 communicate with each other through the bus 602. The computing device 600 can be a server or a terminal device. It should be understood that the present application does not limit the number of processors and memories in the computing device 600. The bus 602 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one line is used to represent it, but it does not mean that there is only one bus or one type of bus. Bus 604 may include a path for transmitting information between various components of computing device 600 (e.g., memory 606, processor 604, communication interface 608). Processor 604 may include any one or more of processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP). Memory 606 may include volatile memory, such as random access memory (RAM). Processor 604 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD) or solid state drive (SSD). The memory 606 stores executable program codes, and the processor 604 executes the executable program codes to respectively implement the methods of the spatial scheduling module 610, the spatial management module 620, and the state synchronization module 630 of the aforementioned embodiments of the present disclosure. That is, the memory 606 may store instructions for the methods and functions of any of the aforementioned embodiments. The communication interface 608 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 600 and other devices or a communication network.
[0084] The embodiment of the present disclosure further provides a computing device cluster 700 . Figure 7 A schematic block diagram of an example device cluster that can be used to implement an exemplary implementation of the present disclosure is shown. The space management system according to an embodiment of the present disclosure is deployed on the computing device cluster 700, and the computing device cluster 700 includes at least one computing device 600. In some embodiments, the computing device cluster 700 may include a computing device 600 to implement all or part of the space management system of the embodiment of the present disclosure. In some embodiments, the computing device cluster 700 may include a plurality of computing devices 600, and the plurality of computing devices may implement all or part of the space management system of the embodiment of the present disclosure synchronously or asynchronously, serially or in parallel, independently or in a distributed manner. The computing device 600 in the computing device cluster 700 may be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device may also be a terminal device such as a desktop computer, a laptop computer, or a smart phone. Figure 7 As shown, the computing device cluster 700 includes at least one computing device 600. The memory 606 in one or more computing devices 600 in the computing device cluster 700 may store the same instructions for executing the methods and functions in any of the above embodiments. In some possible implementations, the memory 606 of one or more computing devices 600 in the computing device cluster 700 may also store partial instructions for executing the methods and functions of the embodiments of the present disclosure in any of the above embodiments. In other words, the combination of one or more computing devices 600 can jointly execute the instructions for the methods and functions of the embodiments of the present disclosure. It should be noted that the memory 606 in different computing devices 600 in the computing device cluster may store different instructions, which are respectively used to execute part of the functions of the apparatus 600. That is, the instructions stored in the memory 606 in different computing devices 600 can implement the functions of one or more modules or sub-modules of the space scheduling module 610, the space management module 620 and the state synchronization module 630.
[0085] In some possible implementations, one or more computing devices in the computing device cluster may be connected via a network, which may be a wide area network or a local area network. Figure 8 1 is a schematic block diagram of another example device that can be used to implement the exemplary implementation of the present disclosure, wherein a possible implementation 800 is shown. Figure 8 As shown, two computing devices 600A and 600B are connected via a network 810 . Figure 8 The connection between the computing device clusters shown may be considered to be part of the functions to be performed by the computing device 600B, considering that the method of the present application needs to store a large amount of user data and perform intensive real-time or near-real-time calculations. It should be understood that Figure 8 The functions of the computing device 600A shown in FIG. 6A may also be completed by multiple computing devices 600. Similarly, the functions of the computing device 600B may also be completed by multiple computing devices 600.
[0086] The embodiments of the present disclosure also provide a computer program product including instructions, which may be software or a program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes the method and function of any of the above embodiments.
[0087] The embodiments of the present disclosure also provide a computer-readable storage medium, which may be any available medium that can be stored by a computing device or a data storage device such as a data center containing one or more available media. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc. The computer-readable storage medium includes instructions that instruct the computing device to execute the method and function of any of the above embodiments.
[0088] In general, various embodiments of the present disclosure may be implemented in hardware or dedicated circuits, software, logic, or any combination thereof. Some aspects may be implemented in hardware, while other aspects may be implemented in firmware or software, which may be performed by a controller, microprocessor, or other computing device. Although various aspects of the embodiments of the present disclosure are shown and described as block diagrams, flow charts, or using some other graphical representation, it should be understood that the blocks, devices, systems, techniques, or methods described herein may be implemented as, by way of non-limiting example, hardware, software, firmware, dedicated circuits or logic, general purpose hardware or controllers or other computing devices, or some combination thereof.
[0089] The present disclosure also provides at least one computer program product tangibly stored on a non-transitory computer-readable storage medium. The computer program product includes computer executable instructions, such as instructions included in a program module, which are executed in a device on a real or virtual processor of the target to perform the process / method as described above with reference to the accompanying drawings. Typically, program modules include routines, programs, libraries, objects, classes, components, data structures, etc. that perform specific tasks or implement specific abstract data types. In various embodiments, the functions of program modules can be combined or divided between program modules as needed. Machine executable instructions for program modules can be executed in local or distributed devices. In distributed devices, program modules can be located in local and remote storage media.
[0090] The computer program code for realizing the method of the present disclosure can be written in one or more programming languages. These computer program codes can be provided to the processor of general-purpose computer, special-purpose computer or other programmable data processing device, so that the program code, when being executed by computer or other programmable data processing device, causes the function / operation specified in flow chart and / or block diagram to be implemented. The program code can be executed completely on computer, partly on computer, as independent software package, partly on computer and partly on remote computer or completely on remote computer or server.
[0091] In the context of the present disclosure, computer program codes or related data may be carried by any appropriate carrier to enable a device, apparatus or processor to perform the various processes and operations described above. Examples of carriers include signals, computer readable media, and the like. Examples of signals may include electrical, optical, radio, acoustic or other forms of propagation signals, such as carrier waves, infrared signals, and the like.
[0092] A computer-readable medium may be any tangible medium containing or storing a program for or related to an instruction execution system, apparatus or device, or a data storage device such as a data center containing one or more available media. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared or semiconductor system, apparatus or device, or any suitable combination thereof. More detailed examples of computer-readable storage media include an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0093] In addition, although the operation of the method of the present disclosure is described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. On the contrary, the steps depicted in the flow chart can change the order of execution. Additionally or alternatively, some steps can be omitted, multiple steps can be combined into one step for execution, and / or one step can be decomposed into multiple steps for execution. It should also be noted that the features and functions of two or more devices according to the present disclosure can be embodied in one device. Conversely, the features and functions of a device described above can be further divided into being embodied by multiple devices.
[0094] The various implementations of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed implementations. Although the present invention has been described in detail with reference to the aforementioned embodiments, it should be understood by those of ordinary skill in the art that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features therein can be replaced by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the protection scope of the technical solutions of the various embodiments of the present invention. Without departing from the scope and spirit of the various implementations described, many modifications and changes are obvious to those of ordinary skill in the art. The choice of terms used in this article is intended to explain the principles of each implementation, practical application or improvement of technology in the market, or to enable other ordinary skill in the art to understand the various implementations disclosed herein.< / t>
Claims
1. A space management method, characterized in that: include: acquiring, from a plurality of servers corresponding to a plurality of clients accessing the virtual space, object information associated with a plurality of users of the plurality of clients; Based on the object information, determining space information of the virtual space; For each of the plurality of users, determining, based on the spatial information and an area of interest associated with each user, area information associated with the area of interest, wherein the area of interest includes at least a portion of the virtual space; as well as The area information determined for each user is sent to a server corresponding to the client of the user.
2. The space management method according to claim 1, characterized in that: Also includes: dividing the virtual space into a plurality of virtual space partitions; as well as One or more of the plurality of virtual space partitions are associated with one or more of the plurality of servers so that the server performs computing processing with respect to the one or more virtual space partitions associated with the server.
3. The space management method according to claim 2, characterized in that: Determining the space information of the virtual space includes: Based on the object information associated with each user, updating space partition information of a virtual space partition associated with a server corresponding to a client of the user; and Based on the updated space partition information, the space information of the virtual space is determined.
4. The space management method according to claim 2, characterized in that: Dividing the virtual space into a plurality of virtual space partitions comprises at least one of the following: Based on a preset size of the virtual space partition, the virtual space is divided into a plurality of virtual space partitions, wherein space partition information of each virtual space partition indicates object information of users within an area within the virtual space corresponding to the preset size; or The plurality of virtual space partitions are determined based on the number of copies of the virtual space, wherein space partition information of each virtual space partition indicates object information of users corresponding to a portion of the number of copies in the virtual space.
5. The space management method according to claim 2, characterized in that: Associating one or more of the plurality of virtual space partitions with one or more of the plurality of servers comprises: Based on the plurality of interest regions associated with the plurality of users, determining, for each server, the number of interest regions of users of the client corresponding to the server on each virtual space partition; and If the number of interest areas of the user of the client corresponding to the server on a specific virtual space partition is greater than a predetermined number, the specific virtual space partition is associated with the server so that the server performs computing processing on the specific virtual space partition.
6. The space management method according to claim 2, characterized in that: Also includes: determining at least one of a number of users within the virtual space partition and a sparsity of the virtual space based on the object information associated with each of the users; Dividing the virtual space partition for which at least one of the number of users and the sparsity is greater than a predetermined threshold, to determine a plurality of second virtual space partitions; as well as One or more of the determined plurality of second virtual space partitions are associated with one or more servers of the plurality of servers.
7. The space management method according to claim 1, characterized in that: Determining the area information associated with the area of interest includes: Based on the spatial information and an area of interest associated with the user, determining at least one virtual space partition associated with the area of interest; and The region information is determined based on the determined space partition information of the at least one virtual space partition.
8. The space management method according to claim 1, characterized in that: The object information includes position information of the virtual instance of the user in the virtual space, and determining the region information associated with the region of interest further includes: Determining the region of interest associated with the user based on position information of the virtual instance of the user in the virtual space; Based on the area of interest associated with the user, determining an extended area of interest having an area range larger than the area of interest; and The region information is determined based on the spatial information and the extended region of interest.
9. The space management method according to claim 1, characterized in that: Sending the area information determined for each user to a server corresponding to the client of the user comprises: For each of the plurality of servers, determining a plurality of zone information of a plurality of users associated with the server; Determine a set of region information for each server for the plurality of region information determined; The region information set for each server is sent to each server in the plurality of servers at a predetermined time interval.
10. The space management method according to any one of claims 1 to 9, characterized in that: The object information includes at least one of attribute information of the user's virtual instance, position information of the user's virtual instance in the virtual space, or relevant interaction information of the user's virtual instance; The space information includes at least one of environment configuration information of the entire area of the virtual space, attribute information of a user's virtual instance in the virtual space, position information of the user's virtual instance in the virtual space, or relevant interaction information of the user's virtual instance; and The area information includes at least one of environmental configuration information within an area range associated with the area of interest in the virtual space, attribute information of a user's virtual instance within an area range associated with the area of interest, position information of the user's virtual instance in the virtual space, or relevant interaction information of the user's virtual instance.
11. A space management method, characterized in that: The space management method is performed by a space management system, the space management system includes a space management device, a plurality of servers communicating with the space management device, and a plurality of clients communicating with each of the plurality of servers and accessing a virtual space, and the space management method includes: At the server, sending object information associated with a plurality of users of the plurality of clients corresponding to the server to the space management device; At the space management device, determining space information of the virtual space based on the object information sent from the plurality of servers; At the space management device, for each of the plurality of users, determining, based on the space information and an area of interest associated with each user, area information associated with the area of interest, wherein the area of interest includes at least a portion of the virtual space; At the space management device, the area information determined for each user is sent to a server corresponding to a client of the user; and At the server, the region information determined for the user of the client corresponding to the server is sent to the client.
12. A space management device, characterized in that: include: A state synchronization module is configured to obtain object information associated with multiple users of the multiple clients from multiple servers corresponding to the multiple clients accessing the virtual space; a space management module, configured to determine space information of the virtual space based on the object information; a spatial scheduling module configured to determine, for each of the plurality of users, region information associated with a region of interest associated with each user based on the spatial information and the region of interest associated with the user, wherein the region of interest includes at least a portion of the virtual space; as well as The state synchronization module is further configured to send the area information determined for each user to a server corresponding to the client of the user.
13. A space management system, characterized in that: include: A space management device configured to perform the method according to claims 1 to 10; a plurality of servers in communication with the space management device; as well as A plurality of clients communicate corresponding to each of the plurality of servers.
14. A computing device cluster, characterized in that: The method comprises at least one computing device, each computing device comprising a processor and a memory, wherein the processor of the at least one computing device is used to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method according to any one of claims 1 to 10.
15. A computing device cluster, characterized in that: The system comprises at least one computing device, each computing device comprising a processor and a memory, wherein the processor of the at least one computing device is used to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method according to claim 11.
16. A computer program product comprising instructions, characterized in that When the instructions are executed by a computing device cluster, the computing device cluster is caused to perform the method according to any one of claims 1 to 10.
17. A computer program product comprising instructions, characterized in that When the instructions are executed by a computing device cluster, the computing device cluster is caused to perform the method of claim 11 .
18. A computer-readable storage medium, characterized in that: The method comprises computer program instructions, which, when executed by a computing device cluster, perform the method according to any one of claims 1 to 10.
19. A computer-readable storage medium, characterized in that: The method comprises computer program instructions, which, when executed by a computing device cluster, perform the method of claim 11.
