Transactional Memory Synchronization
By implementing transactional memory synchronization between multiple data centers, latency and game quality issues caused by server switching between sessions in cloud games are solved, providing a more stable network connection and a simplified development process.
Patent Information
- Application Number
- CN202080028894.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-02-21
- Filing Date
- 2020-02-12
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-02-12
AI Technical Summary
In a cloud gaming setup, server switching between multiple sessions causes latency and degraded game streaming quality, and different server locations lead to unstable network conditions that impact the gaming experience.
By synchronizing transactional storage across multiple data centers, create a transactional layer across data centers, track changes and replicate those changes to ensure multiple data centers represent the same virtual reality, and create, transfer and apply storage through automated systems Transactions, enabling real-time interactivity in shared virtual spaces.
Addresses latency and game quality degradation caused by server switching, allows users to connect to data centers closer to their location, provides better network connectivity, and simplifies application development, avoiding the complexity of managing the state of multiple data centers sex.
Smart Images

Figure CN113710335B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to systems and methods for transactional memory synchronization between different sessions of an interactive application, such as a video game. Background Art
[0002] Description of Related Technology
[0003] A rapidly developing area of technology is the field of video games, which now encompasses a wide range of gaming platforms, including dedicated game consoles, personal computers (PCs), and more recently, cloud gaming and mobile devices. An example of an online gaming service / system is Network, which includes a variety of gaming services that support console-based and cloud-based gaming.
[0004] In a cloud gaming setup, a user is able to access a number of games on a cloud gaming site through a network (such as the Internet) and begin interacting / playing the game. To select a playable game, the user accesses his / her account on the cloud gaming site and launches one of the multiple games available to the user account. The video generated from the cloud video game is transmitted to the client device. An example of a cloud gaming system is Now cloud gaming service.
[0005] Currently, simulations such as video games can be executed by cloud server computers and represent virtual worlds. In order to facilitate large virtual worlds and many players to interact in such virtual worlds, the virtual world can be processed by several different server computers. There can be multiple sessions of the video game, each session controlling a different part of the virtual world, and such sessions are executed by different server computers that can be located in different data centers. Therefore, as the player moves throughout the virtual world, a given player can connect to different server computers (and different sessions). Therefore, although there may be multiple sessions, they do not represent the same real or virtual space or part of the virtual world at the same time. If two players share the same virtual space, they are usually connected to the same server machine.
[0006] However, this may cause several problems.For example, when players switch from one server to another server as they transition from one part of the virtual world to another, they may experience lag or delay when transitioning.In addition, all users who wish to interact in a specific area of the virtual world need to be connected to the same server machine or data center.This may be problematic, because there may be too many users who wish to connect to the same server machine to access the same virtual space, and the server machine may not have enough resources or bandwidth to handle all such connections without degrading the quality of the game.Another problem is that the location of a specific server machine may be in a data center away from a given player, making it difficult to establish a strong network connection to support the high-quality game streaming of a given player.Therefore, due to the different network conditions caused by the different locations of the server, switching from one server to another server can cause the change of the game streaming quality.In some cases, the game streaming quality can decline in the form of the delayed time increase, the video quality reduction, etc.
[0007] In summary, currently, different server machines (and by extension, different data centers) do not represent the same (virtual) reality at the same time in the context of a given simulation or video game. Instead, different server machines handle different parts of the virtual world, and this can produce problems as described above.
[0008] It is against this background that embodiments of the present disclosure are presented. Summary of the invention
[0009] Implementations of the present disclosure provide methods and systems for transactional memory synchronization between different sessions of an interactive application, such as a video game or simulation.
[0010] In some implementations, a method is provided, comprising the following operations: executing a first session of a video game in a first data center; concurrently with the first session, executing a second session of the video game in a second data center; wherein the first session and the second session independently generate a first game state and a second game state, respectively, and the first game state and the second game state simultaneously represent a shared virtual space; wherein an event in the shared virtual space implemented by the first session is implemented by a transaction with respect to a first set of memory objects stored at the first data center, the first session accesses a first library, the first library is configured to generate a first set of update packages based on the transaction with respect to the first set of memory objects, and the first set of update packages are stored in the first data center. The new package is transmitted to the second data center; wherein the event implemented via the second session in the shared virtual space is implemented by transactions regarding a second set of memory objects stored at the second data center, the second session accesses a second library, which is configured to generate a second set of update packages based on transactions regarding the second set of memory objects, and transmit the second set of update packages to the first data center; the first set of update packages are applied to the second set of memory objects at the second data center; the second set of update packages are applied to the first set of memory objects at the first data center; wherein the generation, transmission and application of the first set of update packages and the second set of update packages implement shared real-time interactivity in the shared virtual space via the first session and the second session.
[0011] In some implementations, the first session and the second session do not communicate with each other, such that the first session executes to continuously update a first game state by using input received at the first data center and the first set of memory objects, and the second session executes to continuously update a second game state by using input received at the second data center and the second set of memory objects.
[0012] In some implementations, the input received at the first data center is received from a first client device, and wherein the input received at the second data center is received from a second client device.
[0013] In some implementations, the generation, transmission, and application of the first set of update packages and the second set of update packages implement synchronization of at least some memory objects in the first set of memory objects with corresponding memory objects in the second set of memory objects.
[0014] In some implementations, applying the first set of update packages changes one or more values of corresponding memory objects in the second set of memory objects, and wherein applying the second set of update packages changes one or more values of at least some memory objects in the first set of memory objects.
[0015] In some implementations, each of the update packets includes a timestamp, a memory identifier, and a value for a memory object identified by the memory identifier.
[0016] In some implementations, applying each of the update packages includes setting a value of a memory object identified by the memory identifier to a value of the update package.
[0017] In some implementations, applying each of the update packages includes determining whether a timestamp of the update package is the latest timestamp for the memory object identified by the memory identifier, and if so, setting a value of the memory object identified by the memory identifier to a value of the update package.
[0018] In some implementations, the event implemented in the shared virtual space via the first session includes a change in a position of a first virtual character controlled via the first session, and wherein the event implemented in the shared virtual space via the second session includes a change in a position of a second virtual character controlled via the second session.
[0019] In some implementations, execution of the first session renders a first view of the shared virtual space, and execution of the second session renders a second view of the shared virtual space, such that events in the shared virtual space implemented by the first session and the second session can be viewed simultaneously through the first view and the second view of the shared virtual space.
[0020] In some implementations, an online gaming service is provided having two or more servers, the two or more servers being located in two or more data centers, the online gaming service comprising: a transaction layer implemented across the two or more servers, the transaction layer being used to handle synchronization between different sessions of a video game respectively executed by the two or more servers; wherein the different sessions of the video game are respectively configured to provide a view of a virtual space through corresponding client devices; wherein the transaction layer is configured to identify the session that provides a view of an approximate area of the virtual space, and to implement transaction memory synchronization of the identified session, so that events in the virtual space generated by the identified session are synchronized across each of the identified sessions.
[0021] In some implementations, each session of the video game executes independently of other sessions of the video game, such that each session of the video game does not manage communications with other sessions of the video game, and such that each session of the video game is unaware of other sessions of the video game.
[0022] In some implementations, implementing transactional memory synchronization of the identified sessions includes identifying a memory transaction that resulted in an event in the virtual space generated by one of the identified sessions, and propagating the memory transaction to other of the identified sessions.
[0023] In some implementations, propagating the memory transaction to other sessions in the identified session includes generating an update packet that includes a timestamp of the memory transaction, an identifier of a memory object to which the memory transaction is applied, and a value set by the memory transaction.
[0024] In some implementations, the transaction layer is configured to identify sessions providing views of the approximate area of the virtual space by analyzing virtual locations in the virtual space that are respectively associated with different sessions of the video game.
[0025] In some implementations, an online gaming service is provided having two or more servers, the two or more servers being located in two or more data centers, the online gaming service comprising: a transaction layer implemented across the two or more servers, the transaction layer being used to handle synchronization between different sessions of a video game respectively executed by the two or more servers; wherein the different sessions of the video game are respectively configured to provide a view of a virtual space through corresponding client devices; wherein the transaction layer is configured to implement transaction memory synchronization of the different sessions, such that events generated in the virtual space by the different sessions are synchronized across each of the different sessions; wherein each session of the video game is executed independently of other sessions of the video game, such that each session of the video game does not manage communications with other sessions of the video game, and such that each session of the video game is unaware of other sessions of the video game.
[0026] In some implementations, implementing transactional memory synchronization of the identified sessions includes identifying a memory transaction that resulted in an event in the virtual space generated by one of the sessions, and propagating the memory transaction to other of the sessions.
[0027] In some implementations, propagating the memory transaction to other sessions in the session includes generating an update packet that includes a timestamp of the memory transaction, an identifier of a memory object to which the memory transaction is applied, and a value set by the memory transaction.
[0028] Other aspects and advantages of the present disclosure will become apparent from the following detailed description, taken in conjunction with the accompanying drawings, illustrating by way of example the principles of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The present disclosure and further advantages thereof may be best understood by referring to the following description taken in conjunction with the accompanying drawings.
[0030] Figure 1 A system for cloud gaming employing transactional memory synchronization across data centers according to implementations of the present disclosure is conceptually illustrated.
[0031] Figure 2A system for synchronization of memory objects between application sessions according to implementations of the present disclosure is shown.
[0032] Figure 3 A system in which updates are filtered based on virtual geographic proximity is conceptually illustrated in accordance with implementations of the present disclosure.
[0033] Figure 4A An exemplary system for loading game files for games available through a cloud gaming site according to implementations of the present disclosure is shown.
[0034] Figure 4B is a flow diagram conceptually illustrating various operations performed to stream a cloud video game to a client device in accordance with an implementation of the present disclosure.
[0035] Figure 5 An embodiment of an information service provider architecture according to implementations of the present disclosure is shown. DETAILED DESCRIPTION
[0036] In the following description, many specific details are set forth in order to provide a thorough understanding of the present disclosure. However, it will be apparent to those skilled in the art that the present disclosure may be practiced without some or all of these specific details. In other cases, well-known process steps are not described in detail to avoid obscuring the present disclosure.
[0037] Currently, multiple server computers / machines, which may be in multiple different data centers, do not represent the same (virtual) reality in the context of a given video game or simulation, but rather each represent a different portion of the virtual world. This can be problematic because all users wishing to access a particular portion of the virtual world need to connect to the same server / data center, and because resources in a data center are limited, this can lead to resource issues as previously described.
[0038] To address such issues, transactional memory synchronization across multiple data centers is provided according to an implementation of the present disclosure so that they can represent the same reality. In order to share reality between data centers, a transaction layer is created that tracks changes and replicates those changes across data centers. Broadly speaking, a given transaction includes a timestamp indicating the transaction time, a memory location, and a value or change in value (e.g., a variable to be updated). By implementing transactional memory synchronization across data centers, multiple data centers can represent the same reality, thereby enabling resource utilization to be deployed across data centers, and also providing users with better network connectivity by allowing them to connect to data centers that are closer to their location.
[0039] In addition, implementations of the present disclosure assist developers by providing an automated system for creating, transmitting, receiving, and applying memory transactions. Thus, application developers can develop without knowing how many data centers represent the shared reality of a video game. Furthermore, the transaction mechanism can calculate the merged state of the shared reality so that developers do not need to worry about managing the state between multiple data centers.
[0040] Broadly speaking, the implementation of the present disclosure is applied to a cloud gaming system. An example of a cloud gaming system is Now cloud gaming system. In such a system, the client device can be a game console, such as 4 game console, or it may be another device such as a personal computer, laptop, tablet computer, mobile phone, mobile device, etc. Network provides a variety of gaming services that support cloud-based gaming.
[0041] For ease of description, throughout this disclosure, it should be understood that references to a "user" or "player" will generally be synonymous with a user / player (client) device associated with or operated by a user, as a user typically interfaces with the system according to the present disclosure by using or operating a user device. Therefore, while the term "user" is used in this disclosure for ease of description, it should be understood that the term "user" may cover both a user and a user device operated by or otherwise associated with a user, and further, the terms "user" and "user device" are often used interchangeably in the current description of implementations, which will be apparent to those skilled in the art.
[0042] Figure 1 A system for cloud gaming with transactional memory synchronization across data centers according to an implementation of the present disclosure is conceptually illustrated. As shown, there are multiple data centers, each of which executes a copy of an application representing the same reality. For example, data center 100 includes server resources 102. Server resources 102 may include any computing resources in data center 100 that can be used to execute and stream applications, including, by way of example and not limitation, various server computers / machines, blade computing resources, CPU / GPU / APU, volatile and non-volatile memory or storage devices, local networking devices, etc. In some implementations, server resources 102 may be virtualized computing resources abstracted on underlying computing hardware.
[0043] An application session 104 executes on server resources 102 in a data center 100. In some implementations, an application session 104 is a session of a video game, simulation, or other interactive program. Broadly speaking, an application session 104 generates and updates a program state (or game state) that defines a virtual space / reality of the application session 104. Generally speaking, for purposes of this disclosure, a "reality" of an application / video game is a virtual interactive environment generated and maintained by the application / video game in which multiple users can interact and affect the state of objects through respective client devices.
[0044] In representing the virtual space, the application session 104 performs transactions with respect to the memory objects 106. The memory objects 106 may include any variables, data, or data structures that define the state of objects or properties in the virtual space and the interactions between objects therein. By way of example only and not limitation, examples of memory objects or items defined by memory objects may include the following and / or properties of the following: characters, avatars, people, animals, clothing, movement, weapons, shields, armor, vehicles, scenery, virtual locations, virtual time, inventory, experience, virtual currency, health, lives, damage, virtual objects, virtual actions, etc.
[0045] According to implementations of the present disclosure, multiple data centers may represent the same reality. For example, in the illustrated implementation, additional data centers 110 and 120 are shown that may execute the same application. With respect to data center 110, server resources 112 are used to execute application session 114, which executes transactions with respect to memory object 116. Similarly, data center 120 uses server resources 122 to execute application session 124, which executes transactions with respect to memory object 126. Application sessions 114 and 124 are different sessions of the same application as application session 104, and memory objects 116 and 126 may include many or all of the same memory objects as memory object 106. Although data centers 100, 110, and 120 are shown in the illustrated implementation, it should be understood that additional data centers may exist, and the principles of the present disclosure apply similarly regardless of the number of data centers.
[0046] Each application session receives input from one or more client devices operated by a corresponding user. In addition, each application session renders a video (including image data and audio data) that provides a view of the virtual space to the client device for presentation on a display that may be integrated into the client device (e.g., a laptop, tablet computer, mobile phone, etc.) or connected to the client device (e.g., a television, a monitor, or a head-mounted display connected to a game console, a personal computer, etc.). For example, in the illustrated implementation, a client device 132 operated by a user 134 may communicate with the data center 100 via a network 130 to provide input to the application session 104 and stream video from the application session 104. The input may be generated based on a controller input from a controller device that may be connected to or integrated into the client device 132. Examples of controller devices include the following: a keyboard, a mouse, a trackball, a trackpad, a touch screen, a joystick, a motion controller, a game controller, an image capture device or camera, a microphone, a depth camera, etc. The transmission of input and video to enable interactivity / game play with an application or video game as described is referred to as streaming an application or streaming a video game (game play of a video game).
[0047] Thus, in further accordance with the illustrated implementation, user 138 may operate client device 136 to stream application session 114; and user 142 may operate client device 140 to stream application session 124. It should be understood that there may be many more client devices and users, and in some implementations, there are hundreds or thousands of client devices and users connected to the data center to interact with the application sessions. Various users may stream from different application sessions, but the users are able to participate in the same virtual space / reality at the same time so that their activities are synchronized across sessions.
[0048] For example, in the illustrated implementation, interactivity is streamed from data centers 100, 110, and 120 using application sessions 104, 114, and 124 to be streamed to client devices 132, 136, and 140, respectively. Each of the application sessions represents the same reality, and therefore to facilitate synchronization of activity across application sessions, a transaction system is provided to handle data changes. Broadly speaking, the transaction system is configured so that when a piece of data is changed, then the underlying transaction layer creates an update package and sends it to other servers, and the other servers can apply the update package according to the configuration of the application to handle such updates.
[0049] This makes it easy for application developers by providing a transaction layer to facilitate the way data is changed across different sessions of the same reality, so that application developers do not have to think about how to transfer the data and maintain synchronization between different sessions of the application. Instead, developers can develop applications in a single sense and do not have to develop mechanisms to support synchronization between objects that exist on multiple servers or in multiple data centers at the same time.
[0050] Continue to refer Figure 1 , each of the data centers implements an instance of a transaction layer. As shown, server source 102 in data center 100 implements transaction layer 108; server source 112 in data center 110 implements transaction layer 118; and server source 122 in data center 120 implements transaction layer 128. Each of the transaction layers is configured to synchronize transactions on memory objects through application sessions across data centers.
[0051] By way of example and not limitation, a user 134 operating a client device 132 may interact with a virtual space generated by an application session 104. That is, the application session 104 streams video providing a view of the virtual space to the client device 132 and updates application state of the application session 104 in part by performing transactions with respect to memory objects 106. Execution of the application session 104 may be driven in part by input received from the client device 132, such as based on controller input provided by the user 134 using a controller device that is operably connected to or integrated into the client device 132.
[0052] When a transaction is performed on a given memory object that is one of the memory objects 106, the transaction layer 108 is configured to achieve synchronization across data centers. To achieve this, the transaction layer 108 creates an update package that includes an identifier / location of the memory object, a timestamp of the transaction, and a value for updating the memory object (e.g., a new value of the memory object, an offset from an existing value, etc.). The transaction layer 108 creates the update package and transmits the update package to the data centers 110 and 120, and the corresponding transaction layers 118 and 128 at the data centers 110 and 120 process and apply the update package, respectively. For example, the transaction layer 118 may apply the update package to update the value of the corresponding memory object in the memory object 116; and the transaction layer 128 may apply the update package to update the value of the corresponding memory object in the memory object 126.
[0053] As an example and not limitation, a memory object may represent the position of a character controlled by user 134 via client device 132. When user 134 moves the character, application session 104 applies input from client device 132 that implements the movement of the character so that its position changes from a first position to a second position in the virtual space. This may be implemented as a transaction with respect to the memory object, thereby changing its value from a value identifying the first position to a value identifying the second position. When this occurs, transaction layer 108 generates an update packet that includes a timestamp of the transaction, an identifier of the memory object, and a value identifying the second position. Transaction layer 108 transmits the update packet to other transaction layers 118 and 128 that apply the update packet, thereby updating the corresponding memory objects in memory objects 116 and 126 with the value identifying the second position. In this way, the position of the character that has changed in application session 104 is updated across application sessions 114 and 124. Thus, for example, when viewing the virtual space in which the character is located, user 138 streaming from application session 114 using client device 136 may see the character move to the second position. Similarly, when viewing the virtual space in which the character is located, user 132 streaming from application session 124 using client device 140 may see the character move to a second location.
[0054] It should be understood that users 134, 138, and 142 are in a shared space, but each of them is streaming interactivity from a unique and different session of the application. In a sense, the different application sessions 104, 114, and 124 each independently generate the virtual space being shared, but are synchronized with each other by virtue of the synchronization of memory objects (for the purpose of shared interactivity) through the transaction layer. The transaction layer propagates changes from each data center to each of the other data centers, thereby maintaining synchronization between different application sessions. This enables real-time interactivity between users in a shared space that is consistent across data centers.
[0055] Continuing with the above scenario, if the character of user 134 kicks a rock in the shared virtual space and the rock is about to trip the character of user 138, information indicating this action should be sent from data center 100 to data center 110 so that it can be rendered by application session 114 in data center 110. Then, if the character of user 138 jumps over the rock, information about this action is sent back so that application session 104 in data center 100 can render the jump. Based on the above principles, the action of user 134 kicking the rock is reflected in one or more transactions with respect to one or more of memory objects 106 (e.g., a memory object defining the state / movement / position of the character of user 134, a memory object defining the state / movement / position of the rock, etc.). These transactions are packaged by transaction layer 108 and transmitted to transaction layer 118, where they are applied to memory objects 116 and rendered by application session 114. In further accordance with the principles of the present disclosure, the action of user 138 jumping over the stone is reflected in one or more transactions with respect to one or more of memory objects 116 (e.g., a memory object defining the state / movement / position of the character of user 138, a memory object defining the state / movement / position of the stone, etc.). These transactions are packaged by transaction layer 118 and transmitted to transaction layer 108, where they are applied to memory objects 106 and rendered by application session 104. Additionally, user 142's character in the virtual space may be seen kicking and jumping over the stone, and thus transaction layer 128 also receives packaged transactions from transaction layers 108 and 118, which are applied by transaction layer 128 and rendered by application session 124, so that user 142 can see the activity occurring in the virtual space consistent with the reality represented by the other application sessions 104 and 114.
[0056] According to the implementation of the present disclosure, data centers may be geographically distant from each other. For example, data center 100 (and client device 132 and user 134) may be in the United States, while data center 110 (and client device 136 and user 138) may be in Japan, and data center 120 (and client device 140 and user 142) may be in the United Kingdom. Each player is connected to a data center that executes the application program close to its corresponding client device. However, each data center may run the application program without knowing the fact that the application program is running in multiple data centers. Each instance of the application program in each data center is executed independently, so that at each frame, each session utilizes the available data processing it has, thereby generating a frame with input reflected in the available memory object. And because the memory object is being synchronized, the session is able to represent the reality of synchronization. This simplifies the development of the application code, because synchronization is handled by the underlying transaction layer rather than at the application level, and therefore the application may not know the fact that it may be running simultaneous sessions in different data centers. Each session does not need to be specifically configured to interact directly with another data center. For example, each session does not need to know the data center to which various users are connected, because each session does not involve sending messages to the data center based on the knowledge that a specific player is connected to a specific data center. In this sense, each session is unaware of other sessions and does not manage communications with other sessions in other data centers. Instead, the underlying transaction layer handles updates to each in the data center when a transaction occurs on a memory object.
[0057] In some implementations, the application of update packages by each data center may be based on a predefined configuration for processing incoming updates. For example, in some implementations, incoming updates are always applied. In some implementations, an update is applied if the timestamp of the update is immediately after (later than) the timestamp of the last transaction applied to the associated memory object (e.g., applied by a local application session or from a previous update received from another data center). In some implementations, updates are first processed by the application session at the receiving data center and then applied, possibly after being modified in some way by the application session.
[0058] Figure 2A system for synchronization of memory objects between application sessions according to an implementation of the present disclosure is shown. Broadly speaking, in some implementations, the transaction layer is implemented by a library that identifies data sets that should be synchronized between data centers, and therefore updates should be transmitted for the library when changes are detected. Therefore, when a transaction about such data occurs, the change is implemented by the library. Typically, the library is configured to package such memory transactions (e.g., including memory locations / identifiers, timestamps, changed values / new values) and broadcast the transaction to other data centers. When received by each data center, the application specifies what happens when a new data update is received. Different applications may have different configurations for managing the way changed data is. In some implementations, whenever new data is received, if it is the latest update (e.g., based on a timestamp), the new data is applied; while in other implementations, for any new data, the update may be evaluated and may be modified and applied differently, depending on the current application state. Therefore, each server may run an instance of a library module that identifies transactions that should be updated across servers. When such a transaction occurs, it is identified by the library module and transmitted to other data centers.
[0059] Continue to refer Figure 2 In some implementations, a library module 200 is shown as instantiated on a server resource 102, which also runs an application session 104 and hosts memory objects 106, as previously described. The library module 200 includes synchronization data 202, which is configured to identify memory objects / data that should be synchronized across data centers. In some implementations, the synchronization data 202 includes logical memory locations or identifiers for some or all memory objects 106, which are consistent across all instances of the library module so that when the library modules communicate updates to each other, they can reference equivalent memory objects in different data centers. In some implementations, the synchronization data 202 includes a mapping of local memory objects to logical memory locations / identifiers, so that a given logical memory location / identifier maps to an equivalent memory object in each data center.
[0060] As described above, the synchronization data 202 may be configured to identify which memory objects are to be synchronized across data centers. In some implementations, specific memory objects or memory identifiers are marked or identified (or pre-marked / pre-identified) in the synchronization data 202 as data to be synchronized. In some implementations, the synchronization data 202 identifies the type or category of data / variables to be synchronized. In some implementations, the synchronization data 202 identifies the transactions or transaction types to be synchronized. Regardless of the specific implementation, the synchronization data 202 is configured to enable identification of which memory objects 106 are to be synchronized across data centers.
[0061] In some implementations, the application session 104 is configured to reference the library module 200 to determine which memory objects or memory transactions need to be synchronized. Then, if a memory transaction that requires synchronization occurs, the application session 104 can call the library module 200 to process the transaction and / or synchronization. In some implementations, the library module 200 is configured to process memory transactions from the application session 104 and is configured to determine which transactions will be synchronized across various application sessions or data centers. It should be understood that for memory transactions that do not require synchronization, only the affected local memory objects will be changed as a result of the transaction (one or more of the memory objects 106); and for memory transactions that do require synchronization, both the local memory objects and the corresponding memory objects in other sessions / data centers will be changed as a result of the transaction.
[0062] It should be understood that the library module 200 can be configurable to allow developers to determine which memory objects and / or transactions will be synchronized across data centers. In some implementations, the library module 200 (e.g., when included as part of a game engine or application library collection) may include a standard or default configuration that pre-identifies certain data or transaction types as data or transaction types that will be synchronized by the library module 200. However, in some implementations, this configuration can be adjusted by the developer. In some implementations, the application can be configured by the developer to specify which data or transactions to synchronize or which default configurations to adjust. In the case of static libraries, this can occur during application build time, and in the case of dynamic libraries, this can occur when the library is loaded at runtime.
[0063] It should be understood that when developers mark which transactions or objects are important for synchronization, the library is configured to handle the process of updating the state of such transactions or such objects across data centers. It should be understood that not all features of the virtual space need to be synchronized. For example, while it may be desirable to synchronize a player's character or avatar across sessions, it may not be necessary to synchronize other elements in the virtual space, such as the movement of plants or randomly generated birds flying overhead, or elements that do not generally affect the interactivity between users in the shared virtual space. It should be understood that since not all virtual objects or states are synchronized, the amount of data that needs to be transmitted between data centers for synchronization is reduced, and network bandwidth is saved. This helps to achieve real-time or substantially real-time synchronization across sessions by reducing the possibility that delays due to insufficient bandwidth will become a problem.
[0064] Continue to refer Figure 2, when it is determined that a transaction regarding a memory object requires synchronization across sessions / data centers, the packaging logic 204 of the library module 200 is configured to package the relevant information for updating other data centers. In some implementations, the packaging logic 204 constructs an update package 208 containing information for updating and synchronizing the relevant memory objects at other data centers. In some implementations, the update package 208 includes: a timestamp 210 indicating the time of the transaction or change to the memory object as determined or performed by the application session 104; a memory identifier / location 212 that identifies or locates the memory object to be updated at the receiving data center; and a value 214 that may define a new value / current value / updated value of the memory object. In some implementations, the value 214 defines an offset or change from a previous value or other reference value. The packaging logic 208 packages the information to generate the update package 208 and transmits the update package 208 to the other data centers.
[0065] In the illustrated implementation, the update package 208 is shown as being transmitted to the data center 110, where it is processed by a corresponding library module 216 that is similar to the library module 200 but is configured for the application sessions 114 and memory objects 116. The update package 208 is processed by an update handler 222, which in some implementations is included as part of the library module 216. In other implementations, the update handler 222 is separate from the library module 216.
[0066] Update handler 222 is configured to receive update package 208 and apply the information in update package 208 according to predefined settings. In some implementations, the update handler implements rules for how and / or when to apply updates. It should be understood that updates can be handled differently depending on the transaction or memory object affected. For some transactions or memory objects, update handler 222 can be configured to always apply the latest update. That is, if timestamp 210 is later than the time of the last modification to the memory object, the incoming update package 208 will be applied. For some transactions or memory objects, update handler 222 can be configured to evaluate update package 208 and apply it if the update package meets certain criteria, or apply it with some modifications. It should be understood that on a per-transaction basis, when update data is received, there may be different modes for processing update data.
[0067] Although the above has been described as the transmission of updates from data center 100 to data center 110, it should be understood that memory transactions generated by application sessions 114 at data center 110 may also trigger updates to be transmitted from data center 110 to data center 100. Each data center includes a library module substantially the same as described above. In the illustrated implementation, library module 216 also includes synchronization data 218 similar to synchronization data 202, and packaging logic 220 similar to packaging logic 204. Similarly, library module 200 at data center 100 also includes update handler 206 similar to update handler 222 for processing incoming update packages received from other data centers. Thus, in accordance with the above, application sessions 114 may generate memory transactions that trigger updates to be transmitted from data center 110 to other data centers (as determined based on synchronization data 218). Thus, in the illustrated implementation, packaging logic 220 will generate update packages that are transmitted to data center 100 and applied to memory objects 106 by update handler 206.
[0068] Although synchronization has been described above with respect to data centers 100 and 110, it should be understood that the concepts can be extended to any number of data centers, such as data center 120 and other data centers, which also run concurrent sessions of applications and library modules. Therefore, each server / data center has a library module, and the library modules communicate with each other to propagate changes between the various sessions of the application, thereby ensuring synchronization of the shared virtual space / environment. In this way, developers do not have to specify how transactions should be updated across data centers, but can instead code as if they were running only on the local data center. The library module is configured to identify which transactions need to be propagated to other sessions / data centers, so that such transactions or related memory objects are pre-marked or pre-identified in the library module to trigger updates when such transactions occur.
[0069] By way of example only and not limitation, some examples of transactions that may be pre-identified in the library module as triggering updates include the following: a virtual object (e.g., a door) receiving a certain amount of damage, an item being removed from the virtual world (e.g., picked up by a player), a player's inventory (e.g., of virtual items or property) increasing / decreasing; a virtual object (e.g., a vehicle) being destroyed, etc. It should be understood that such transactions may include any information that is important or necessary for another player connected to another data center to know whether to interact in the same shared virtual space / environment.
[0070] In some implementations, updates may be sent or not sent based on other factors. For example, updates triggered for sending may be filtered at a sending data center based on the virtual geographic proximity of virtual objects of a receiving data center.
[0071] Figure 3 A system in which updates are filtered based on virtual geographic proximity is conceptually illustrated in accordance with an implementation of the present disclosure. In the illustrated implementation, a virtual space 300 is conceptually illustrated in which players P1, P2, and P3 are represented in the virtual space 300. It should be understood that the players may be represented in the virtual space by characters, avatars, vehicles, or other virtual objects that may represent the players. Therefore, the positions of the players in the virtual space are actually the positions of the representations of the players, which are referenced synonymously for ease of description. As shown in the illustrated implementation, players P1 and P2 are closer to each other in the virtual space 300 than player P3.
[0072] Furthermore, player P1 is controlled by data center 100; player P2 is controlled by data center 110; and player P3 is controlled by data center 120. That is, player P1 is controlled from a client device connected to data center 100; player P2 is controlled from a client device connected to data center 110; and player P3 is controlled from a client device connected to data center 120.
[0073] As described above, in some implementations, updates are sent or not sent based in part on the geographic location in the virtual space 300. To facilitate this functionality, the library modules can be configured to share location data with each other that identifies the locations of players associated with their respective data centers. Thus, in the illustrated implementation, the library module 200 may share location data identifying the location of player P1 with other library modules 216 and 230 (of data centers 110 and 120, respectively). Similarly, the library module 216 may share location data identifying the location of player P2 with other library modules 200 and 230; and the library module 230 may share location data identifying the location of player P3 with other library modules 200 and 216. In this way, each of the data centers receives data indicating the geographic locations of interest of the other data centers. In this case, the geographic location of interest of a given data center is defined by the location of the players associated with that data center.
[0074] For example, when a change occurs that is relevant to player P1 (e.g., a change in location, inventory, health, damage, appearance, associated weapons (shooting), etc.), this can trigger the library module 200 to publish an update package to a data center associated with such an update. In some implementations, this can be based on the distance from player P1. For example, in some implementations, if a player associated with another data center is within a predefined distance or radius of player P1, the library module 200 will send an update package to that data center. In the illustrated implementation, this is shown by radius R1. Because player P2 is within radius R1, the library module 200 will send an update package to library module 216, because player P2 can be considered close enough so that changes related to player P1 can affect player P2 or otherwise be related to it. On the contrary, because player P3 is not within radius R1, the library module 200 will not send an update package to library module 230, because player P3 can be considered far enough away so that changes related to player P1 can not affect player P3 or otherwise be related to it.
[0075] In a similar manner, changes related to player P2 may be propagated to players within a predefined radius R2 of player P2. Thus, data center 110 (using library module 216) will send updates regarding player P2 to data center 100 (via library module 200), but will not send such updates to data center 120 because player P3 is outside radius R2. And similarly, data center 120 (using library module 230) will not send updates regarding player P3 to either data center 100 or 110 (however, when the player enters radius R3, such updates will not be sent to the respective data center).
[0076] While the foregoing has been described with respect to players, it should be understood that the principles may be applied to any type of virtual object in virtual space 300. That is, updates may be sent based on virtual geographic proximity in the virtual space.
[0077] In some implementations, delivering updates based on geographic proximity can be implemented through a library module as a configurable mechanism that can be turned on / off or activated / deactivated by the developer / application.
[0078] By filtering updates sent based on proximity, resources can be saved, which can be useful in large game worlds where there may be many players, some of which may be far away from each other. In this way, the sending server can decide whether the data is important to the recipient. Thus, another layer of transmission is provided, in which servers transmit to each other locations that are important to their respective players, or locations that are affected by them, so that each server can determine whether to send updates to another server.
[0079] In some implementations, a transaction or memory object may be tagged with a location and / or radius at setup time. Typically, the location will be updated periodically, while the degree to which another entity will be affected by a given transaction or memory object is configured at setup time.
[0080] When a piece of data is changed, the library module can evaluate the list of servers and check each server to determine whether the update should be sent to that server. Therefore, by filtering on the send side, resources are saved because not all updates are sent to all servers. Each server periodically learns about the locations or transactions or objects that are important to each other.
[0081] In some other implementations, the transaction itself may convey the spatial relationship. For example, the update package described above may also include location or proximity information. The update handler may determine whether to apply the update based in part on such location / proximity information.
[0082] In some implementations, different servers / data centers may have permissions to certain transactions or memory objects. For example, a given virtual object such as a character or a vehicle may be controlled by only one data center, and no other data center will create transactions with respect to that virtual object. Instead, other data centers will only receive data from the authorized data center and apply it to update their corresponding virtual objects. In some implementations, a data center may notify other data centers of its permissions through a transaction, and from that point on, other data centers will not create such transactions. Or if another data center attempts to create a transaction, the library may generate a failure status that can be used later for debugging purposes.
[0083] Broadly speaking, implementations of the present disclosure may be included as part of a game engine.
[0084] Broadly speaking, a game engine is a software development framework that provides features that enable efficient development of video games. A game engine may include a software library with reusable modules to handle various aspects of game functionality, including, by way of example and not limitation, graphics rendering (e.g., including vertex processing, polygon processing, shading, lighting, texturing, etc.), sound, physics (including collision handling), animation, scripting, artificial intelligence, networking, streaming, memory management, threading, localization support, scene graphs, cinematography, etc.
[0085] The game engine can be optimized for different hardware platforms, such as game consoles, mobile devices, personal computers, etc. As an example and not limitation, the game engine can optimize memory usage (e.g., how to prioritize various tasks in the graphics pipeline, etc.) depending on the platform. In some implementations, the hardware can be a blade version of some specific processing entity such as a game console. Thus, a user can be assigned to a specific blade, which gives the same hardware that the console game has been optimized for.
[0086] It should be understood that there may also be game server logic to provide streaming and / or other services (packetization, encoding, quality of service (QOS) monitoring, bandwidth testing, access to social networks / friends, etc.).
[0087] In some implementations, the cloud infrastructure may run a hypervisor that abstracts the hardware and provides a virtual machine framework on which an operating system (OS) may be loaded. Thus, a stack may include an application / video game running on an OS loaded on a virtual machine (VM) instantiated by the hypervisor, which is loaded on the underlying hardware. In this way, the execution of the application does not have to be coupled to specific hardware.
[0088] In some implementations, the application / video game may be executed through a container that abstracts at the application layer, packaging code and dependencies together, thereby enabling software development without being aware of the OS or hardware platform and facilitating software portability across platforms.
[0089] In some implementations, a distributed game engine is used, in which different parts of the game engine can be processed by different computing entities. For example, the functions of a game engine such as a physics engine, a rendering engine (2D / 3D graphics), sound, scripts, animations, AI, networking, streaming (coding), memory management, threads, etc. can be divided into different functional processing blocks and / or services distributed between many different calculations. It should be understood that for a distributed game engine, low-latency communication is required to avoid latency issues. In order to maintain the desired frame rate, the total time for calculation and communication should meet certain constraints. Therefore, it may be effective or may not be effective to divide certain tasks according to whether the process can be completed in a shorter time.
[0090] The advantage of using a distributed game engine is that elastic computing can be utilized, where computing resources can be scaled up or down as needed. For example, in a large multi-player game that is traditionally executed on a single hardware server, after, for example, about 100 players, the hardware resources become limited, making it impossible to add more players. The game may queue additional players, which means that players must wait to join the game. However, with a distributed game engine, by using elastic cloud computing resources, more computing nodes can be added to meet demand, thereby achieving, for example, tens of thousands of players. The game is no longer constrained by the limitations of a specific hardware server.
[0091] Therefore, a cloud gaming engine may have functions distributed to different processing entities. It should be understood that different functions may be performed in different frameworks. For example, some functions (e.g., social) may be more easily run in a container, while graphics may run better using a VM connected to a GPU.
[0092] To facilitate the distribution of cloud gaming engine functionality, the distribution / synchronization layer can manage the distribution of jobs, e.g., sending jobs out, getting data back, identifying tasks to perform, and processing queued time, e.g., if a job completes faster than required. In some implementations, a given task can be dynamically subdivided if necessary. For example, an animation can have lighting, and if the lighting is particularly complex, the lighting can be subdivided into three lighting jobs that are sent out for computation and reassembled after returning. Thus, if game engine functions require more work, they can be subdivided.
[0093] The cloud service provider provides computing at specified performance levels, such as in terms of input / output operations per second ("IOPS"). Thus, the game provider can specify VMs, dedicated processing power, amounts of memory, etc. from the cloud service provider and use the cloud service provider's system to instantiate a distributed cloud game engine.
[0094] In some implementations, the library module and the update handler may be one or more components or modules of a game engine. In some implementations, the library module and the update handler may be separate components or may be integrated. In some implementations, the library module and the update handler may operate as a supplement to a game engine. In some implementations, the game engine may be a distributed game engine, as described above.
[0095] As described above, the implementation of the present disclosure can be applied to a cloud gaming system. An example of a cloud gaming system is Now cloud gaming system. In such a system, the client device can be a game console, such as 4 game console, or it may be another device such as a personal computer, laptop, tablet computer, mobile phone, mobile device, etc.
[0096] Broadly speaking, in order to implement cloud gaming, when a user request for a game title is received, several operations are performed by one or more servers in a data center associated with a cloud gaming site. When the cloud gaming site receives a user request, the data center hosting the game associated with the selected game title is identified, and the request is sent to the identified data center to instantiate the game for the selected game title. In response to the request, the server at the data center identifies the game code, loads the identified game code, and initializes files associated with the game code to prepare to present the game content to the user. The game data associated with the game may include general game data and user-specific game data. Therefore, the initialization file may include identifying, loading, and initializing general game data and user-specific game data. Initializing general game data may include initializing a graphics engine, installing graphics data, initializing sound files, installing original images, and the like. Initializing user-specific data may include locating, transmitting, and installing user data, user history, game history, and the like.
[0097] When loading and initializing universal game data, a "startup" screen can be provided to render at the client device. A kind of startup screen can be designed to provide a representative image of the game being loaded, so as to allow the user to preview the type of the game being loaded. Once the universal game data has been loaded, some initial content can be rendered, and a selection / navigation screen can be presented for user selection and customization. The user selection input provided at the selection / navigation screen may include game level selection, one or more game icon selections, game mode selection, game rewards, and other user-related data that may need to upload additional game content. In some embodiments, game content is made available for viewing and interaction by streaming game content from the game cloud system to the user's computing device. In some implementations, after loading user-specific data, game content can be used for playing games.
[0098] Figure 4AAn exemplary system for loading game files for games available through a cloud gaming site is shown. The system includes a plurality of client devices 400, which are communicatively connected to a cloud gaming site 404 via a network 402 (such as the Internet). When a request to access a cloud gaming site 404 is received from a client device 400, the cloud gaming site 404 accesses user account information 406 stored in a user data storage area 408 to identify a user associated with the client device through which the request is initiated. In some embodiments, the cloud gaming site may also verify the identified user to determine all games that the user is authorized to view / play. After user account identification / verification, the cloud gaming site accesses a game name data storage area 410 to identify the game name available at the game cloud site for the user account that initiated the request. The game name data storage area 410 interacts with a game database 412 to obtain the game names of all games available for the cloud gaming site. When a new game is launched, the game database 412 will be updated with the game code, and the game name information of the newly launched game will be provided to the game name data storage area 410. When a request is made, the client device making the request may or may not be registered with the cloud gaming site. If the user of the client device making the request is not a registered user, the cloud gaming site may identify the user as a new user and select a game name suitable for the new user (e.g., a default set of game names). The identified game name is returned to the client device for presentation on display screen 400-a, such as Figure 4A shown.
[0099] Detect user interaction at one of the game names rendered on the client device, and send a signal to the cloud gaming site. The signal includes the game name information where the user interaction is detected and the user interaction registered at the game name. In response to the signal received from the client device, the cloud gaming site actively determines the data center hosting the game, and sends a signal to the identified data center to load the game associated with the game name where the user interaction is detected. In some embodiments, there may be more than one data center hosting the game. In such embodiments, the cloud gaming site can determine the geographic location of the client device that initiated the request, and identify the data center that is geographically close to the client device, and signal the data center to preload the game. The user's geographic location can be determined using a global positioning system (GPS) mechanism within the client device, the IP address of the client, the ping information of the client, etc. Of course, the aforementioned manner of detecting the user's geographic location can be exemplary, and other types of mechanisms or tools can be used to determine the user's geographic location. Identifying a data center close to the client device can minimize the delay during the user's interaction with the game. In some embodiments, the identified data center may not have the bandwidth / capacity required for hosting the game or may be overused. In these embodiments, the cloud gaming site can identify a second data center that is geographically close to the client device. Loading a game involves loading the game code and executing an instance of the game.
[0100] In response to receiving a signal from a cloud gaming site, the identified data center may select a server at the data center to instantiate a game on the server. The server is selected based on available hardware / software capabilities and game requirements. The server may include multiple game consoles, and the server may determine which of the multiple game consoles to use to load the game. The game console may be similar to a stand-alone game console, or may be a rack server or a blade server. The blade server may include multiple server blades, each of which has circuits required to instantiate a single dedicated application (such as a game). Of course, the above-mentioned game consoles are exemplary and should not be considered restrictive. Other types of game consoles (including game stations, etc.) and other forms of blade servers may also be used to host the identified games.
[0101] Once the game console is identified, the generic game-related code of the game is loaded onto the game console, and a signal identifying the game console instantiating the game is returned to the client device via the cloud gaming site over the network. Thus, the loaded game is available to the user.
[0102] Figure 4B4 is a flowchart conceptually illustrating various operations performed to stream a cloud video game to a client device according to an implementation of the present disclosure. The gaming system 418 executes the video game and generates raw (uncompressed) video 420 and audio 422. The video 420 and audio 422 are captured and encoded for streaming purposes, as indicated by reference numeral 424 in the illustrated figure. Encoding can provide compression of the video and audio streams to reduce bandwidth usage and optimize the gaming experience. Examples of encoding formats include H.265 / MPEG-H, H.264 / MPEG-4, H.263 / MPEG-4, H.262 / MPEG-2, WMV, VP6 / 7 / 8 / 9, etc.
[0103] The encoded audio 426 and the encoded video 428 are further packetized into network packets, as indicated at reference numeral 432, for the purpose of transmission over a network (such as the Internet). The network packet encoding process may also employ a data encryption process, thereby providing enhanced data security. In the illustrated implementation, audio packets 434 and video packets 436 are generated for transmission over a network, as indicated at reference numeral 440.
[0104] The gaming system 418 additionally generates haptic feedback data 430 , which is also packetized into network packets for network transmission. In the illustrated implementation, a haptic feedback data packet 438 is generated for transmission over the network, as further indicated at reference numeral 440 .
[0105] The aforementioned operations of generating original video and audio and tactile feedback data, encoding video and audio, and packetizing the encoded audio / video and tactile feedback data for transmission are performed on one or more servers that jointly define the cloud gaming service / system. As indicated by reference numeral 440, audio, video, and tactile feedback data packets are transmitted over a network (such as and / or including the Internet). As indicated by reference numeral 442, audio data packet 434, video data packet 436, and tactile feedback data packet 438 are decoded / reorganized by the client device to define encoded audio 446, encoded video 448, and tactile feedback data 450 at the client device. If the data has been encrypted, the network data packet will also be decrypted. Then, as indicated by reference numeral 444, the encoded audio 446 and the encoded video 448 are decoded by the client device to generate client-side original audio and video data for rendering on a display device 452. Haptic feedback data 450 may be processed / transmitted to produce a haptic feedback effect at controller device 456 or other interface device through which a haptic effect may be rendered. One example of a haptic effect is a vibration or rumble of controller device 456.
[0106] It should be understood that the video game responds to user input and therefore can execute a program flow similar to the program flow described above for transmission and processing of user input but in the opposite direction from the client device to the server. As shown, the user operates the controller device 456 to generate input data 458. The input data 458 is packetized at the client device for transmission to the cloud gaming system over the network. The input data packet 460 is unpacked and reassembled by the cloud gaming server to define input data 462 on the server side. The input data 462 is fed to the gaming system 418, which processes the input data 462 to update the game state of the video game.
[0107] During the transmission of audio data packets 434, video data packets 436, and haptic feedback data packets 438 (reference numeral 440), data transmission through the network can be monitored to ensure the quality of service of the cloud game streaming. For example, network conditions, including both upstream and downstream network bandwidth, can be monitored as indicated by reference numeral 464, and game streaming can be adjusted in response to changes in available bandwidth. That is, encoding and decoding of network data packets can be controlled based on current network conditions, as indicated by reference numeral 466.
[0108] Figure 5 An implementation scheme of an information service provider architecture is shown. An information service provider (ISP) 570 provides a large number of information services to users 582 that are geographically dispersed and connected via a network 586. An ISP may provide only one type of service, such as stock price updates, or may provide multiple services, such as broadcast media, news, sports, games, etc. In addition, the services provided by each ISP are dynamic, that is, services can be added or removed at any point in time. Therefore, the ISP that provides a particular type of service to a particular individual may change over time. For example, when a user is in her hometown, the user may be provided with services by an ISP close to the user, and when the user travels to a different city, the user may be provided with services by a different ISP. The hometown ISP will transfer the required information and data to the new ISP, so that the user information "follows" the user to the new city, thereby making the data closer to the user and easier to access. In another implementation, a master-server relationship can be established between a main ISP that manages information for the user and a server ISP that interfaces directly with the user under the control of the main ISP. In another embodiment, when the client moves around the world, data is transferred from one ISP to another ISP so that the ISP that is in a better position to provide services to the user becomes the ISP that provides these services.
[0109] ISP 570 includes an application service provider (ASP) 572, which provides computer-based services to customers over a network. Software provided using the ASP model is sometimes referred to as on-demand software or software as a service (SaaS). A simple form of providing access to a specific application, such as customer relationship management, is to use a standard protocol, such as HTTP. The application software resides on the vendor's system and is accessed by the user through a web browser using HTML, through dedicated client software provided by the vendor, or through other remote interfaces, such as a thin client.
[0110] Services provided over a wide geographic area often use cloud computing. Cloud computing is a style of computing in which dynamically scalable and often virtualized resources are provided as a service over the Internet. Users do not need to be experts in the technical infrastructure that supports them in the "cloud." Cloud computing can be divided into different services, such as Infrastructure as a Service (IaaS), Platform as a Service (PaaS), and Software as a Service (SaaS). Cloud computing services typically provide common business applications accessed online from a web browser, while the software and data are stored on servers. Based on the way the Internet is depicted in computer network diagrams, the term cloud is used as a metaphor for the Internet (e.g., using servers, storage, and logic), and as an abstraction for the complex infrastructure that it hides.
[0111] In addition, ISP 570 includes a game processing server (GPS) 574, which is used by game clients to play single-player and multi-player video games. Most video games played on the Internet are run through a connection to a game server. Typically, games use a dedicated server application that collects data from players and distributes it to other players. This is more effective and efficient than a peer-to-peer arrangement, but it requires a separate server to host the server application. In another embodiment, GPS establishes communication between players, and the corresponding game playing devices of the players exchange information without relying on a centralized GPS.
[0112] Dedicated GPS are servers that run independently of the clients. Such servers are usually run on dedicated hardware located in a data center, thus providing more bandwidth and dedicated processing power. For most PC-based multiplayer games, dedicated servers are the preferred method of hosting game servers. Massively multiplayer online games run on dedicated servers, which are usually hosted by the software company that owns the game title, allowing them to control and update the content.
[0113] The broadcast processing server (BPS) 576 distributes the audio or video signal to the audience. Broadcasting to a very small audience is sometimes called narrowcasting. The final leg of broadcast distribution is how the signal reaches the listener or observer, and it may be transmitted from the air to an antenna and receiver like a radio or television station, or it may be transmitted through cable television or cable broadcasting (or "wireless cable") through a workstation or directly from the network. The Internet can also bring radio or television to receivers, especially through multicasting, which allows sharing of signals and bandwidth. Historically, broadcasting has been defined by geographic areas, such as national broadcasting or regional broadcasting. However, with the popularity of fast Internet, broadcasting is not defined by geographical conditions, because content can reach almost any country in the world.
[0114] Storage Service Providers (SSPs) 578 provide computer storage space and related management services. SSPs also provide periodic backup and archiving. By providing storage as a service, users can order more storage as needed. Another major advantage is that SSPs include backup services, and if a computer's hard drive fails, the user will not lose all of their data. In addition, multiple SSPs can have full or partial copies of a user's data, allowing the user to access the data in an efficient manner, regardless of the user's location or the device used to access the data. For example, a user can access personal files on a home computer as well as on a mobile phone (when the user is on the move).
[0115] Communications providers 580 provide connectivity to users. One type of communications provider is an Internet Service Provider (ISP), which provides access to the Internet. An ISP connects its customers using data transmission technologies suitable for delivering Internet Protocol datagrams, such as dial-up, DSL, cable modem, fiber optic, wireless, or dedicated high-speed interconnects. Communications providers may also provide messaging services, such as email, instant messaging, and SMS text messages. Another type of communications provider is a Network Service Provider (NSP), which sells bandwidth or network access by providing direct backbone access to the Internet. Network service providers may include telecommunications companies, data carriers, wireless communications providers, Internet service providers, cable TV operators that provide high-speed Internet access, and the like.
[0116] Data exchange 588 interconnects several modules within ISP 570 and connects these modules to users 582 via network 586. Data exchange 588 can cover a small area where all modules of ISP 570 are in close proximity, or can cover a large geographic area when different modules are geographically dispersed. For example, data exchange 588 can include Fast Gigabit Ethernet (or faster Gigabit Ethernet) within a cabinet in a data center, or an intercontinental Virtual Area Network (VLAN).
[0117] The user 582 accesses the remote service using a client device 584, which includes at least a CPU, memory, display, and I / O. The client device may be a PC, mobile phone, notebook computer, tablet computer, gaming system, PDA, etc. In one embodiment, the ISP 570 identifies the type of device used by the client and adjusts the communication method used. In other cases, the client device uses a standard communication method (such as html) to access the ISP 570.
[0118] Embodiments of the present disclosure may be practiced with various computer system configurations including handheld devices, microprocessor systems, microprocessor-based or programmable consumer electronics, minicomputers, mainframe computers, etc. The present disclosure may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a wired or wireless network.
[0119] In view of the above embodiments, it should be understood that the present disclosure can adopt various computer-implemented operations involving data stored in a computer system. These operations are those operations that require physical manipulation of physical quantities. Any operation described herein that forms a part of the present disclosure is a useful machine operation. The present disclosure also relates to a device or equipment for performing these operations. The device can be specially constructed for the desired purpose, or the device can be a general-purpose computer selectively activated or configured by a computer program stored in the computer. Specifically, various general-purpose machines can be used together with computer programs written according to the teachings of this article, or it may be more convenient to construct more specialized equipment to perform the desired operations.
[0120] The present disclosure may also be embodied as computer-readable code on a computer-readable medium. Alternatively, the computer-readable code may be downloaded from a server using the above-mentioned data exchange interconnection. A computer-readable medium is any data storage device that can store data, which can then be read by a computer system. Examples of computer-readable media include hard drives, network attached storage devices (NAS), read-only memories, random access memories, CD-ROMs, CD-Rs, CD-RWs, magnetic tapes, and other optical and non-optical data storage devices. The computer-readable medium may include a computer-readable tangible medium distributed on a network-coupled computer system so that the computer-readable code is stored and executed in a distributed manner.
[0121] Although the method operations are described in a particular order, it should be understood that other housekeeping operations may be performed between the operations, or the operations may be adjusted so that they occur at slightly different times, or the operations may be distributed in a system that allows processing operations to occur at various intervals associated with the processing as long as the processing of the superimposed operations is performed in the desired manner.
[0122] Although the foregoing disclosure has been described in considerable detail for the purpose of clear understanding, it will be appreciated that certain changes and modifications may be practiced within the scope of the appended claims. Therefore, the present embodiments are to be considered illustrative rather than restrictive, and the disclosure is not to be limited to the details given herein, but may be modified within the scope and equivalent range of the described embodiments.
Claims
1. A method, comprising: executing, by a first server in a first data center, a first session of a video game; concurrently with the first session, executing a second session of the video game by a second server in a second data center; wherein the first session and the second session independently generate a first game state and a second game state, respectively, the first game state and the second game state simultaneously represent a shared virtual space, so that the first game state and the second game state simultaneously represent a same area of the shared virtual space; wherein events implemented in the shared virtual space via the first session are implemented by the first server via transactions with respect to a first set of memory objects stored at the first data center, the first session accessing a first repository, the first repository being configured to generate a first set of update packages based on the transactions with respect to the first set of memory objects, and to transmit the first set of update packages from the first server to the second server; wherein the events in the shared virtual space implemented via the second session are implemented by the second server via transactions with respect to a second set of memory objects stored at the second data center, the second session accessing a second repository, the second repository being configured to generate a second set of update packages based on the transactions with respect to the second set of memory objects, and transmit the second set of update packages from the second server to the first server; When the second server receives the first set of update packages from the first server, applying the first set of update packages to the second set of storage objects at the second data center by the second server; When the first server receives the second set of update packages from the second server, applying the second set of update packages to the first set of storage objects at the first data center by the first server; The generation, transmission and application of the first set of update packages and the second set of update packages enable shared real-time interactivity in the shared virtual space via the first session and the second session.
2. The method of claim 1 , wherein the first session and the second session do not communicate with each other, such that the first session executes to continuously update the first game state by using input received at the first data center and the first set of memory objects, and the second session executes to continuously update the second game state by using input received at the second data center and the second set of memory objects.
3. The method of claim 2, wherein the input received at the first data center is received from a first client device, and wherein the input received at the second data center is received from a second client device.
4. The method of claim 1, wherein the generating, transmitting, and applying of the first set of update packages and the second set of update packages implements synchronization of at least some memory objects in the first set of memory objects with corresponding memory objects in the second set of memory objects.
5. The method of claim 4, wherein applying the first set of update packages changes one or more values of the corresponding memory objects in the second set of memory objects, and wherein applying the second set of update packages changes one or more values of the at least some memory objects in the first set of memory objects.
6. The method of claim 1, wherein each of the update packets includes a timestamp, a memory identifier, and a value for a memory object identified by the memory identifier.
7. The method of claim 6, wherein applying each of the update packages comprises setting a value of the memory object identified by the memory identifier to the value of the update package.
8. The method of claim 6, wherein applying each of the update packages comprises determining whether the timestamp of the update package is the latest timestamp for the memory object identified by the memory identifier, and if so, setting the value of the memory object identified by the memory identifier to the value of the update package.
9. The method of claim 1 , wherein the event implemented in the shared virtual space via the first session comprises a change in a position of a first virtual character controlled by the first session, and wherein the event implemented in the shared virtual space via the second session comprises a change in a position of a second virtual character controlled by the second session.
10. The method of claim 1, wherein execution of the first session renders a first view of the shared virtual space, and wherein execution of the second session renders a second view of the shared virtual space, such that the events in the shared virtual space implemented by the first session and the second session can be viewed simultaneously through the first view and the second view of the shared virtual space.
11. An online game service having two or more servers, the two or more servers being located in two or more data centers, the online game service comprising: a transaction layer implemented across the two or more servers, the transaction layer for handling synchronization between different sessions of the video game respectively executed by the two or more servers; wherein said different sessions of said video game are respectively configured to provide, through respective client devices, a view of the same area of a virtual space; wherein the transaction layer is configured to identify sessions providing views of an approximate area of the virtual space, and to effectuate transactional memory synchronization of the identified sessions such that events in the virtual space generated by the identified sessions are synchronized across each of the identified sessions; wherein implementing transactional memory synchronization of the identified sessions comprises identifying memory transactions that result in events in the virtual space generated by one of the identified sessions, and propagating the memory transactions to other of the identified sessions; Wherein propagating the memory transaction includes receiving, by a corresponding server executing other of the identified sessions, an update package from a server executing one of the identified sessions via the transaction layer.
12. An online gaming service as described in claim 11, wherein each session of the video game is executed independently of other sessions of the video game, such that each session of the video game does not manage communications with the other sessions of the video game, and such that each session of the video game is unaware of the other sessions of the video game.
13. The online gaming service of claim 12, wherein propagating the memory transaction to other ones of the identified sessions comprises generating the update packet, the update packet comprising a timestamp of the memory transaction, an identifier of a memory object to which the memory transaction is applied, and a value set by the memory transaction.
14. The online gaming service of claim 11, wherein the transaction layer is configured to identify sessions providing views of an approximate area of the virtual space by analyzing virtual locations in the virtual space that are respectively associated with the different sessions of the video game.
15. An online game service having two or more servers, the two or more servers being located in two or more data centers, the online game service comprising: a transaction layer implemented across the two or more servers, the transaction layer for handling synchronization between different sessions of a video game respectively executed by the two or more servers; wherein said different sessions of said video game are respectively configured to provide, through respective client devices, a view of the same area of a virtual space; wherein the transaction layer is configured to implement transaction memory synchronization of the different sessions such that events generated by the different sessions in the virtual space are synchronized across each of the different sessions; wherein each session of the video game is executed independently of other sessions of the video game, such that each session of the video game does not manage communications with the other sessions of the video game, and such that each session of the video game is unaware of the other sessions of the video game; wherein implementing transactional memory synchronization of the identified sessions comprises identifying a memory transaction that results in an event in the virtual space generated by one of the identified sessions, and propagating the memory transaction to other of the identified sessions; Wherein propagating the memory transaction includes receiving, by a corresponding server executing other of the identified sessions, an update package from a server executing one of the identified sessions via the transaction layer.
16. The online gaming service of claim 15, wherein propagating the memory transaction to other sessions in the session comprises generating the update packet, the update packet comprising a timestamp of the memory transaction, an identifier of a memory object to which the memory transaction is applied, and a value set by the memory transaction.
