System and method for predicting states by using a distributed game engine

By using a distributed game engine and deep learning technology, the game state is predicted and resource allocation is optimized, solving the latency problem caused by the increase in information in video games and achieving a lower latency and higher quality gaming experience.

CN113766958BActive Publication Date: 2024-09-17SONY INTERACTIVE ENTERTAINMENT LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202080031547.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-03-15
Filing Date
2020-02-19
Publication Date
2024-09-17
Estimated Expiration
2040-02-19

AI Technical Summary

Technical Problem

In existing technologies, when accessing video games via computer networks, the increased amount of information generated leads to latency issues, making it difficult to effectively handle the relationships between virtual objects or characters in the game scene. In particular, the latency problem is difficult to solve under the interdependence between virtual characters and artificial intelligence non-player characters (AI NPCs) and the complex physical laws.

Method used

It adopts a distributed game engine combined with deep learning technology, uses neural networks to predict game state, reduce latency and optimize computing resource allocation, uses neural networks to predict the position and behavior of virtual objects, rationally allocates high-quality rendering work to appropriate computing resource nodes to achieve load balancing, and performs state prediction and frame generation before receiving user input.

Benefits of technology

It effectively reduces latency during game execution, improves game response speed and image display quality, and enhances the real-time performance and quality of the game experience by predicting and optimizing the allocation of computing resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113766958B_ABST
    Figure CN113766958B_ABST
Patent Text Reader

Abstract

A method of reducing delays in execution of a game is described. The method includes receiving user input associated with the game via a computer network, and determining a current state of the game based on the user input. While the current state of the game is being determined, the method includes predicting a next state of the game based on the user input and one or more predicted user inputs. The method also includes: generating one or more predicted image frames based on the next state; determining whether the one or more predicted user inputs are received via the computer network; and sending the one or more predicted image frames in response to receiving the one or more predicted user inputs to reduce the delay in execution of the game.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to systems and methods for predicting states using a distributed game engine. Background Art

[0002] Nowadays, video games are accessed through computer networks. For example, many players from all over the world play Fortnite. TM game. One player controls a first avatar and the other player controls a second avatar. Each avatar collects weapons and cuts wood during the game. The avatars are then forced to be confined within a virtual circle. If the avatar is left outside the virtual circle, the avatar actually dies in the game. When both avatars are within the circle, they find each other and then fight each other with their weapons. Only one of the two avatars survives.

[0003] Since video games are accessed via computer networks, a large amount of information associated with the video games is generated. The increase in the amount of information may increase the delay in the execution of the video games. Summary of the invention

[0004] Embodiments of the present disclosure provide systems and methods for predicting states by using a distributed game engine to reduce latency in the execution of applications on a game cloud.

[0005] Other aspects of the present disclosure will become apparent from the following detailed description taken in conjunction with the accompanying drawings, which illustrate, by way of example, the principles of the embodiments described in the present disclosure.

[0006] The systems and methods described herein help reduce latency in processing games and / or help distribute work for distributed game engines by using deep learning. Deep learning is a technique for approximating functions that might otherwise be difficult to calculate using an algorithm. The function is difficult to calculate because the algorithm is unknown or the calculation using the algorithm is complex.

[0007] Usually, many games are successfully executed and the algorithms of these games are usually known and automated. However, in the game described herein, due to the relationship between the multiple states of the frame processing the game scene, it is sometimes difficult to separate the components such as virtual objects or virtual characters in the game from each other. For example, user input is used to drive the virtual character in the game. The action of this virtual character can drive the artificial intelligence non-player character (AI NPC) in the game into a specific behavior or trigger effect according to the laws of physics. For illustration, when receiving the user input, detonate explosives or AI NPC moves or virtual objects move. The changes of AI NPC, laws of physics and user viewpoints can all cause the changes of the rendering of the game scene. This illustrates some mutual dependencies of different functions in the game engine.

[0008] Neural networks can be used to predict the outputs of different functions so that subsequent functions can be opportunistically processed earlier. In the event that the neural network's prediction is incorrect, early processing based on the prediction can be aborted and correct processing based on the actual function output can be restarted.

[0009] In one embodiment, the systems and methods may "correct for errors" in prediction. As an example, the predictor may incorrectly decide that a virtual object or virtual character does not need to be rendered, and opportunistically render the scene without the virtual object. Later during the processing of the frame, due to the influence of the laws of physics, it is determined that the virtual object will be pushed into the field of view. The systems and methods described herein provide two options at this time. One option is that the system and method can abandon some or all of its pre-processing and re-render the scene with the virtual object present. Another option is that the system and method can render the virtual object independently and synthesize it into the scene.

[0010] In one embodiment, the systems and methods described herein facilitate the distribution of work across computing resources. For example, physics engines are typically broken down into multiple components. Examples of these components include a collision detection system, a collision resolution system or solver, and an update system. Collision detection is an expensive process and can be further divided into subcomponents, such as a wide phase detection operation that makes a rough estimate of whether a virtual object has collided, and a narrow phase detection operation that is more computationally expensive and calculates the exact contact points between virtual objects. While the wide phase detection operation is running, a neural network trained based on previous results of the wide phase detection operation can predict which virtual objects are highly likely, slightly likely, and not likely to collide at all. For those virtual objects predicted to be highly likely, the narrow phase detection operation can be dispatched to other computing resources. Once the wide phase detection operation is completed, those virtual objects that are slightly likely to collide will be resolved and either dispatched or not dispatched.

[0011] In one embodiment, the system and method update a complex background of a scene, such as a complex background. For example, a neural network can be trained to determine when a high-resolution background, which is appropriately static but computationally intensive to calculate, may need to be re-rendered based on a variety of factors such as user input, AI state, physical state, and other game states. State values, such as intensity values, color values, shadow values, texture values, etc., used to render a high-resolution background can be predicted by a neural network, so that remote rendering work can be dispatched in the case of an expected high-resolution background.

[0012] Although it is important that the game can update all of these contents in a timely manner, the neural network provides the system with a certain degree of freedom to move tasks. Consider a game running on a distributed game engine, which is a cloud-based distributed game engine. A single node of the distributed game engine can process output of reasonable quality for a single user, but cannot process high-quality output. This may be, for example, because of insufficient resources on the node. Some nodes of the distributed game engine have very fast graphics processing units (GPUs) that can render high-quality graphics for computationally intensive components, and other nodes of the distributed game engine have GPUs with a large amount of memory that can render items with extremely high-resolution textures but have relatively low computational power, while other nodes of the distributed game engine have specialized physical or AI components. The game can run with reasonable quality on a general node of the distributed game engine, or if expected early, high-quality work can be assigned to less busy or more specialized nodes of the distributed game engine to return high-quality output. The deep learning predictor can decide when to dispatch these high-quality jobs. If the prediction is late, reasonable quality is calculated locally at the general node. If the prediction is early, the high-quality output fails and is discarded when it is applied. However, if predicted correctly, e.g., neither late nor early or on time, high quality output will be returned in time to combine with other intermediate results to provide a higher quality experience. Even if all nodes of a distributed game engine are configured in a similar manner, in one embodiment, load balancing is applied between nodes in each case. In load balancing, not all resources are used in the same amount on all nodes.

[0013] In one embodiment, a method of reducing delays in the execution of a game is described. The method includes receiving user input associated with the game via a computer network, and determining a current state of the game based on the user input. While the current state of the game is being determined, the method includes predicting a next state of the game based on the user input and one or more predicted user inputs. The method also includes: generating one or more predicted image frames based on the next state; determining whether the one or more predicted user inputs are received via the computer network; and sending the one or more predicted image frames in response to receiving the one or more predicted user inputs to reduce the delay in the execution of the game.

[0014] In one embodiment, a system for reducing delays in the execution of a game is described. The system includes a first node and a second node. The first node receives user input associated with the game via a computer network, and determines the current state of the game based on the user input. The second node is coupled to the first node. The second node receives the user input associated with the game from the first node, and when determining the current state of the game, predicts the next state of the game based on the user input and one or more predicted user inputs. The second node also generates one or more predicted frames based on the next state, determines whether the one or more predicted user inputs are received via the computer network, and sends the one or more predicted frames in response to receiving the one or more predicted user inputs to reduce the delay during the execution of the game.

[0015] In one embodiment, a computer-readable medium is described, the computer-readable medium containing program instructions for reducing delays in the execution of a game. Execution of the program instructions by one or more processors of a computer system causes the one or more processors to perform multiple operations of the above-mentioned method for reducing delays in the execution of a game.

[0016] Some advantages of the system and method described herein for predicting a state by using a distributed game engine are described. Before the distributed game engine receives a user input predicting the state, the state is predicted and one or more frames of the predicted state are generated. When the user input is received, the frame is sent to the client device via a computer network to display an image and generate sound based on the frame. The delay in generating the frame after receiving the user input is reduced or eliminated. The speed of providing images to the client device and the execution speed of an application (such as a game application) are increased. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Various embodiments of the present disclosure are best understood by referring to the following description taken in conjunction with the accompanying drawings, in which:

[0018] Figure 1 is a diagram of an embodiment of a system for describing an application such as a video game or a video conferencing application.

[0019] FIG. 2A is a diagram for illustrating an embodiment of a system in which, while node A is generating state 1 , another node 1 is generating predicted state 2 .

[0020] Figure 2B is a diagram of the remainder of the system of FIG. 2A .

[0021] Figure 3Ais a diagram for illustrating an embodiment of a system of a distributed game engine and a distributed predictor engine.

[0022] Figure 3B is a diagram for illustrating an embodiment of a system for generating image frames and audio frames of a predicted state 2 during a time period when a virtual object controlled by a user A via a client device is at a position c.

[0023] Figure 3C is an embodiment of a distributed game engine system for illustrating that, when a predicted state 2 is being generated, a user input 1 ′ received by the distributed game engine system from a client device via a computer network serves as a triggering event for generating a state 1 ′.

[0024] Figure 3D is a diagram for illustrating that a virtual object or an artificial intelligence (AI) entity or an AI virtual object is rendered and added to a virtual background when a user input 1 ′ is received instead of when a user input 2 of a predicted state 2 is received.

[0025] Figure 4A is a diagram for illustrating an embodiment of a system in which a node 1 is used to perform wide phase detection that virtual objects may collide in a virtual scene, and another node 2 is used to perform narrow phase detection to determine contact points of the collision of the virtual objects.

[0026] Figure 4B is a diagram for illustrating an embodiment of a system for dispatching high quality graphics work from Node 1 to Node 2.

[0027] Figure 4C is a diagram for illustrating an embodiment of a system for assigning one or more tasks associated with a physics prediction engine from Node 1 to Node 2.

[0028] Figure 4D is a diagram for illustrating an embodiment of a system for assigning one or more tasks associated with an AI prediction engine from node 1 to node 2.

[0029] Figure 5 is a diagram of an implementation scheme of a client device.

[0030] Figure 6 is a conceptual illustration of an implementation according to the present disclosure being performed to stream a cloud video game to a Figure 5 Flowchart of various operations of a client device.

[0031] Figure 7 is a block diagram of an embodiment of a game console that is compatible with Figure 5 The display device of the client device is interfaced and can communicate with the distributed game engine system via a computer network.

[0032] Figure 8 is a diagram illustrating components of a head mounted display (HMD) as an example of a client device.

[0033] Fig. 9 An implementation of an Information Service Provider (INSP) architecture is shown. DETAILED DESCRIPTION

[0034] Systems and methods for predicting states by using a distributed game engine are described. It should be noted that various embodiments of the present disclosure may be practiced without some or all of these specific details. In other cases, well-known process operations are not described in detail to avoid unnecessarily obscuring various embodiments of the present disclosure.

[0035] Figure 1 1 is a diagram of an embodiment of a system 100 for describing an application such as a video game or a video conferencing application. Examples of applications include multi-player games and single-player games. In a multi-player game, multiple players access the video game from a server system 104. For example, a first avatar is controlled by user A to play a multi-player game, and a second avatar is controlled by another user B to play a multi-player game. In addition, in a multi-player game, there may be non-player characters (NPCs) controlled by artificial intelligence (AI). The AI ​​is executed and controlled by the server system 104 instead of the user. The AI ​​NPC is a virtual object that is not controlled by the user via a client device. In a single-player game, one or more players access the video game from the server system 104. As an example, an avatar is controlled by user A to play a multi-player game, and the same avatar is controlled by user B to play a single-player game.

[0036] System 100 includes a server system 104, a computer network 102, and a plurality of client devices 1, 2, and 3. Server system 104 includes one or more servers, which may be server blades or game consoles. Each server includes one or more processors and one or more memory devices. One or more processors of a server are coupled to one or more memory devices. As used herein, examples of processors include central processing units (CPUs), microprocessors, microcontrollers, application specific integrated circuits (ASICs), and programmable logic devices (PLDs). In one embodiment, a memory device is a device from which data is read or to which data is written. Examples of memory devices include read-only memory (ROM) devices, or random access memory (RAM) devices, or combinations thereof. For illustration, a memory device includes a flash memory, a cache, or a redundant array of independent disks (RAID).

[0037] The computer network 102 is used to transmit data, such as video data and audio data, between a client device and a server, or between a client device and a node, or between multiple nodes, or between multiple servers, or between multiple client devices, etc., to facilitate the operation of a distributed game engine system (DGES) 106, which includes a distributed game engine and a distributed predictor engine. Examples of the computer network 102 include a wide area network (WAN) such as the Internet, or a local area network (LAN) such as the Internet, or a combination thereof.

[0038] As used herein, a client device is a device operated by a user to gain access to an application executed by the distributed game engine system 106. Examples of client devices include computers, tablets, game consoles, smartphones, handheld controllers, head mounted displays (HMDs), televisions, combinations of game consoles and handheld controllers, and combinations of HMDs, handheld controllers, and game consoles. Examples of handheld controllers include DualShock TM Controllers and Move TM motion controllers, both available from Sony TM In a combination including a game console and a handheld controller, the game console is coupled to the handheld controller via a wired or wireless connection. In addition, in a combination of an HMD, a handheld controller and a game console, the HMD is coupled to the game console via a wired connection or a wireless connection. Examples of wired connections include a serial transmission cable or a parallel transmission cable or a universal serial bus (USB) cable. Examples of wireless connections include Bluetooth TM Connectivity and Wi-Fi TM connect.

[0039] The game console or HMD or handheld controller or a combination thereof includes one or more cameras to capture the input device of the client device (e.g., handheld controller, HMD, mouse, keypad, joystick, touchpad, touch screen, etc.) or the gesture of movement of the body part of user A, such as a change in position or a change in orientation or a combination thereof. Examples of body parts include arms, hands, legs, wrists, one or more fingers, legs, knees, eyes, heads, etc. As used herein, an HMD is a display device that a user wears to view a virtual scene, such as a virtual reality (VR) scene or an augmented reality (AR) scene. In addition, a television is an example of a display device and includes a display screen. As used herein, examples of display devices include liquid crystal display (LCD) devices, light emitting diode display (LED) devices, and plasma display devices. VR scenes or AR scenes are generated when the distributed game engine system 106 executes an application.

[0040] The server system 104 includes a plurality of nodes that operate collectively as a distributed game engine system 106. For example, the distributed game engine system 106 includes a plurality of AI engines AI1 to AIn, wherein n is an integer greater than one. In addition, the distributed game engine system 106 includes a plurality of audio engines (AE) AE1 to AEn, a plurality of physics engines PE1 to PEn, and a plurality of graphics engines (GE) GE1 to GEn, wherein n is an integer greater than one. In one embodiment, the distributed game engine system 106 also includes a plurality of animation engines, a plurality of network engines, a plurality of memory management engines, a plurality of scream engines and / or a plurality of script engines. Each AI engine AI1 to AIn, audio engine AE1 to AEn, physics engine PE1 to PEn, and graphics engine GE1 to GEn is a part of the distributed game engine system 106. In one embodiment, as used herein, an engine is a software engine. A software engine is a library, a software development kit (SDK), or an object representing a functional block. A software engine is executed by one or more processors, such as a graphics processing unit (GPU) and a central processing unit (CPU). In one embodiment, as used herein, each engine is a virtual machine (VM). In one embodiment, each engine is a processor or a hardware device. In one embodiment, each engine is a neural network or a portion of a neural network.

[0041] The distributed game engine system 106 stores applications, such as game computer programs, computer programs for generating VR scenes, computer programs for generating augmented reality AR scenes, physics software programs for applying physical laws to generate VR scenes or AR scenes, and rendering computer programs for applying rendering operations to generate VR scenes or AR scenes. As an example, a portion of the application is stored and executed by node A of the distributed game engine system 106, another portion of the application is stored and executed by another node 1 of the distributed game engine system 106, and the remaining portion of the application is stored and executed by another node 2 of the distributed game engine system 106. As used herein, a node is a hardware server or a game console or hardware server of the distributed game engine system 106 for executing at least a portion of the application. As an example, one node has a housing separate from the housing of another node. As another example, one node is placed on a rack in a data center different from a rack in the data center on which another node is placed. As another example, a node of the distributed game engine system 106 is located in a data center different from another node of the distributed game engine system 106.

[0042] In one embodiment, multiple nodes are located within a single housing. For example, in PlayStation Now TMIn the case of a server, a single housing is shared by multiple nodes. When multiple nodes are housed in a single housing, each node has its own network connection to the computer network 102 via a network communication device. However, as an alternative, the single housing includes the network communication device, and the nodes are coupled to the computer network 102 via the same network communication device. A single housing with multiple nodes allows for better connectivity in terms of throughput and latency.

[0043] In one embodiment, the node is a virtual machine, which is a simulation of a computer system. In a virtual machine, a hypervisor is a computer software or hardware or a combination thereof that shares and manages hardware resources (such as a processor and a memory device) to run an application on one or more operating systems. As an example, a virtual machine includes an operating system, one or more application computer programs running on the operating system, and one or more hardware resources, such as a central processing unit, a graphics processing unit, a video encoder, an audio encoder, a video codec, an audio codec, a video decoder, an audio decoder, a network communication device, a memory device, an internal communication device, etc., and the one or more hardware resources are accessed by one or more application computer programs via an operating system and a hypervisor to perform the function described as being performed by a node in this article. The above-mentioned application is an example of an application computer program.

[0044] In addition, in one embodiment, the physics engine applies the laws of physics to determine the position and orientation of the virtual background of the virtual object or virtual scene, which can be a VR scene or an AR scene. As used herein, examples of virtual objects include virtual guns, virtual spears, virtual boulders, virtual weapons, avatars, virtual characters, etc. As used herein, examples of virtual backgrounds include virtual rooms, virtual natural environments, virtual trees, virtual oceans, and virtual environments where virtual objects are located. In one embodiment, the terms virtual background and virtual background are used interchangeably herein. The virtual object or virtual background is controlled by user A via client device 1. In one embodiment, the virtual object or virtual background is controlled by AI instead of user A. Multiple positions and multiple orientations define the movement of the virtual object or virtual background. The physics engine is a computer program that is executed to determine the physical relationship between different parts in a virtual scene and between different virtual scenes. The physical relationship is determined according to physical laws such as the law of gravity, the law of motion, and the law of friction.

[0045] In one embodiment, the AI ​​engine determines the movement and functionality of a virtual object or virtual character in a video game, and the virtual object or virtual character cannot be controlled by a user via a client device.

[0046] In one embodiment, the audio engine determines and provides audio data for a corresponding virtual scene of the game. For example, when a portion of the virtual scene emits a sound, the audio engine determines the audio data for outputting the sound and other variables of the sound, such as pitch, tone, amplitude, etc., and links the audio data with the portion of the virtual scene.

[0047] In one embodiment, the graphics engine is a rendering engine or a renderer or a rendering operation, which applies graphics such as color, texture, shadow, intensity, lighting or a combination thereof to a two-dimensional (2D) model or a three-dimensional (3D) model of a virtual object to create a 2D or 3D representation of a virtual object, and applies graphics to a 2D or 3D model of a virtual background to create a representation of a virtual background, so as to output one or more image frames. As used herein, the model of a virtual object has the position and orientation of the virtual object, and the model of the virtual background has the position and orientation of the virtual background. For example, a model is a grid with vertices that defines the shape of a virtual object or a virtual background. The shape is defined according to the position and orientation calculated for a virtual object or a virtual background. A rendering engine generates an image from a 2D or 3D model of one or more parts of a virtual scene (such as a virtual object or a virtual background). For example, a rendering engine defines the color, texture, shadow and light intensity applied to one or more parts of a virtual scene.

[0048] The server system 104 includes a video codec 108 to encode one or more image frames to output one or more encoded image frames, and to decode one or more encoded image frames to output one or more decoded image frames. For example, the video codec 108 is implemented as one or more processors or as computer software to compress or decompress one or more image frames using a video encoding protocol such as H.264. The video encoding protocol is also a video decoding protocol. As another example, the video codec 108 is a hardware device (e.g., an integrated circuit, a processor, etc.) or a software module (e.g., a computer program, etc.) or a combination thereof that compresses or decompresses image frames according to a video file format or a streaming video format or a video encoding protocol (e.g., H.264, H.265 / MPEG-H, H.263 / MPEG-4, H.262 / MPEG-2a, a custom protocol, etc.). In one embodiment, the terms compression and encoding are used interchangeably herein, and the terms decompression and decoding are used interchangeably herein.

[0049] In one embodiment, in addition to the video codec 108, an audio codec is also used in the system 100 to encode audio data using an audio encoding protocol to output one or more encoded audio frames, and to decode audio frames using an audio decoding protocol to output one or more decoded audio data. An audio encoding protocol is also an audio decoding protocol. An audio codec is a hardware device (e.g., an integrated circuit, a processor, etc.) or a software module (e.g., a computer program, etc.) or a combination thereof that compresses or decompresses audio data according to an audio file format or a streaming audio format.

[0050] User A operates client device 1 to access an application stored on server system 104. For example, user A logs into his / her user account stored on server system 104 via a website or user application to access the application stored on server system 104. Once the application is accessed, user A uses client device 1 to provide user input 1. Examples of user input 1 are selection of a button on client device 1 or a touch on client device 1 or a gesture made by user A with his / her body part or with client device 1. In one embodiment, the user input includes one or more movements of one or more joysticks of client device 1, or one or more gestures made by user A, or one or more selections of one or more buttons on client device 1.

[0051] User input 1 is sent from client device 1 to server system 104 via computer network 102 to change the state of the application. For example, one or more of physics engines PE1 to PEn output one or more positions of virtual objects, one or more orientations of virtual objects in virtual scenes, one or more positions of virtual backgrounds, and one or more orientations of virtual backgrounds in virtual scenes. In addition, one or more of audio engines AE1 to AEn output audio data to be emitted by virtual objects, output audio data to be output by AI in virtual scenes, and output audio data to be output together with virtual backgrounds. In addition, one or more of AI engines AI1 to AIn output one or more positions and one or more orientations of AI in virtual scenes. One or more of graphics engines GE1 to GEn provide graphics such as color, texture, intensity, shadow, lighting, etc. to models of virtual objects, models of AI, and models of virtual backgrounds within virtual scenes to output one or more image frames. Virtual objects in virtual scenes are controlled by user input 1 and may be avatars or representations of user A.

[0052] The video codec 108 receives one or more image frames generated based on the user input 1 from one or more of the graphic engines GE1 to GEn, and encodes the one or more image frames to output a video stream of encoded video frames 1. In addition, the audio codec receives audio data generated based on the user input 1 output from one or more of the audio engines AE1 to AEn, and encodes the audio data to output one or more encoded audio frames. The encoded video frame 1 and the encoded audio frame are packetized by the server system 104 by applying an external communication protocol such as a transmission control protocol (TCP) based on the Internet protocol (IP) to generate packets. The packets are sent from the server system 104 to the client device 1 via the computer network 102.

[0053] The client device 1 receives the packet from the server system 104, and unpacks the packet using the external communication protocol to extract the encoded video frame 1 and the encoded audio frame from the packet. In addition, the client device 1 decompresses or decodes the encoded video frame 1 using the video decoding protocol to obtain the image frame, and decompresses or decodes the encoded audio frame using the audio decoding protocol to obtain the audio frame. The audio data of the audio frame is output as sound by the client device 1. In addition, the image frame is displayed as an image on the display device of the client device 1. As used herein, examples of the display device include a liquid crystal display (LCD) device, a light emitting diode (LED) display device, and a plasma display device.

[0054] Similarly, user input is received from client device 2 by server system 104 via computer network 102 to output encoded frame 2, which includes encoded video frame and encoded audio frame. Encoded frame 2 is sent from server system 104 to client device 2 via computer network 102 to display one or more images on the display device of client device 2 and output sound on client device 2. Client device 2 is operated by user 2 and can be used to control an avatar that is different from the avatar controlled by user A via client device 1. In addition, similarly, user input is received from client device 3 by server system 104 via computer network 102 to output encoded frame 3, which includes encoded video frame and encoded audio frame. Encoded frame 3 is sent from server system 104 to client device 3 via computer network 102 to display one or more images on the display device of client device 3 and output sound on client device 3. Client device 3 is operated by user 3 and can be used to control an avatar that is different from the avatar controlled by user A via client device 1. Additionally, client device 3 may be used to control an avatar that is different from the avatar that user B controls via client device 2 .

[0055] 2A is a diagram of an embodiment of a system 200 illustrating that node 1 is generating predicted state 2 while node A is generating state 1. State 1 is sometimes referred to herein as the current state, and predicted state 2 is sometimes referred to herein as the next state. Figure 2B 2 is a diagram of the rest of the system 200. The system 200 includes a node A and a node 1. In addition, the system 200 includes a computer network 102, a node component server 202, a cloud game server 204, and a client device 1. In addition, the system 200 includes a switching system 206.

[0056] The switching system 206 includes one or more switches that facilitate data transmission between the node component server 202 and two or more of the nodes A, B (not shown) and C (not shown) described herein. For example, the switching system 206 is a switching frame. The switching frame provides a large amount of bandwidth between two or more nodes A, B and C, and is often dynamically reconfigured and allows quality of service (QoS). For illustration, when there is not enough capacity between two or more nodes and QoS retries to send data, QoS facilitates reducing congestion on the link. Some of the two or more nodes A, B and C promptly begin processing the data of the remaining part of the lack of capacity of the two or more nodes A, B and C. As another example, the switching system 206 includes a multiplexer that forms a distributed game engine system 106 and transmits data to it from the node component server 206 and to the client devices 1, 2 and 3 ( Figure 1 ) to transmit data to one or more of two or more nodes A, B and C. As another example, the switching system 206 includes one or more transistors that facilitate the data transmission between the node component server 202 and two or more nodes A, B and C. As yet another example, the switching system 206 includes one or more switches, each of which changes its position between an open position and a closed position. The open position of the switch separates the node component server 202 from the node coupled to the switch. The closed position of the switch couples the node component server 202 to the node coupled to the switch. In one embodiment, nodes A, B and C are nodes of a distributed game engine, and nodes 1 and 2 described herein are nodes of a distributed predictor engine.

[0057] The cloud gaming server 204 and the client devices 1, 2, and 3 are coupled to the computer network 102. In addition, the node component server 202 is coupled to the cloud gaming server 204.

[0058] Node A includes a central processing unit A (CPU A), a memory device A, another central processing unit A1 (CPUA1), a memory device A1, a graphics processing unit A (GPU A), a GPU memory device A, an internal communication device A, a network communication device A, an audio encoder A, and a video encoder A. Components of node A such as CPU A, memory device A, CPU A1, memory device A1, GPU A, GPU memory device A, internal communication device A, network communication device A, audio encoder A, and video encoder A are coupled to each other via a bus A.

[0059] As used herein, a GPU executes a rendering computer program to generate a video frame that includes state information of an AR scene or VR scene, such as color, texture, intensity, shadows, and lighting. Examples of GPUs include processors, ASICs, and PLDs. In one embodiment, the terms "video frame" and "image frame" are used interchangeably herein.

[0060] As used herein, an internal communication device is used to communicate data between a node and another node. The internal communication device applies an internal communication protocol, such as a direct memory access (DMA) protocol, a remote DMA (RDMA) protocol, an RDMA based on a converged Ethernet, a wireless bandwidth, an Ethernet protocol, a custom protocol, a serial transmission protocol, a parallel transmission protocol, a USB protocol, a wireless protocol, a Bluetooth protocol, a wired protocol, a universal datagram protocol (UDP), a UDP based on an Internet protocol, a transmission control protocol (TCP) based on an IP protocol, an Ethernet protocol based on TCP / IP, etc., to communicate data between two nodes. As an example of DMA, an internal communication chip of a node (such as a PCI Express non-transparent switching chip, an RDMA chip, or an RDMA chip based on a converged Ethernet, or a wireless bandwidth chip) communicates via a peripheral component interconnect fast (PCIe) communication bus to directly write to or read from a memory device in one or more other nodes. In addition, in a communication bus such as PCIe, peripheral devices such as GPUs and other devices are based on memory because each peripheral device has an assigned memory address space on the bus. To illustrate, the GPU of one node applies an internal communication protocol to write or read registers or buffers of the GPU of another node. In this way, the node communicates with another node through a shared mailbox register. When another node reads from or writes from a node, an application or part of an application running on the CPU of the node is interrupted. The other node sends an interrupt signal before reading from or writing from the node.

[0061] As used herein, examples of internal communication devices include processors, ASICs, and PLDs. For illustration, the internal communication device is a PCI Express non-transparent switch chip or an RDMA chip, or an RDMA chip based on converged Ethernet, or a wireless bandwidth chip. As another illustration, the internal communication device is a network interface controller or network interface card (NIC), a device that communicates using serial data transfer, a device that communicates using parallel data transfer, or a device that communicates using a USB protocol.

[0062] It should be noted that PCI-Express and RDMA technology have significantly lower latency and provide higher performance than the Ethernet protocol or the TCP protocol or the UDP protocol because it eliminates the protocol layer that generates overhead in the operating system executed by the CPU. When a node has been authorized to access a data block in another node, the DMA engine in the node executing the DMA protocol directly reads from or writes to the memory in the other node and bypasses the operating system in the node. There is no network protocol such as the Ethernet protocol or the TCP protocol or the UDP protocol, and the DMA engine of the node determines how it organizes the memory and its internal structure. If a dump operation is required between one node and other nodes, the internal communication chip of one node executes the DMA engine to read and write data from other nodes without involving the CPU of the node.

[0063] In one embodiment, one node described herein is coupled to another node also described herein via a cable or computer network 102. For example, node A is coupled to node 1 via a coaxial cable, a USB cable, or via the Internet. As another example, node 1 is coupled to another node 2 via a cable or computer network 102.

[0064] The network communication device is used to transmit data packets between nodes and client devices via the computer network 102. For example, the network communication device applies an external communication protocol (e.g., TCP / IP, UDP / IP, etc.) to receive and send data packets. Examples of network communication devices include processors, ASICs, and PLDs. For illustration, the network communication device is a network interface controller or NIC.

[0065] Similarly, the node 1 includes a central processing unit 1 (CPU 1), a memory device 1, another central processing unit 1a (CPU 1a), a memory unit 1a, a graphics processing unit 1 (GPU 1), a GPU memory device 1, an internal communication device 1, a network communication device 1, an audio encoder 1, and a video encoder 1. The components of the node 1 (such as the CPU 1, the memory device 1, the CPU 1a, the memory device 1a, the GPU 1, the GPU memory device 1, the internal communication device 1, the network communication device 1, the audio encoder 1, and the video encoder 1) are coupled to each other via a bus 1.

[0066] The client device 1 generates a game request 210 and sends the game request to the cloud gaming server 204 via the computer network 102. For example, user A uses the input device of the client device 1 to select one or more buttons on the input device to generate the game request 210. The cloud gaming server 204 determines whether the user account accessed by user A of the client device 1 to generate the game request 210 is authorized to access the distributed gaming engine system 106 based on the game request 210. User A of the client device 1 provides login information, such as a user name, password, etc., via the input device of the client device 1 to access the user account. When the login information is authenticated by the cloud gaming server 204, user A of the client device 1 can access the user account. After determining that the user account of user A is authorized to access the distributed gaming engine system 106, the cloud gaming server 204 sends a signal to the node component server 202 to enable access to the execution of the application via the client device 1 and the computer network 102. The application is generated by the distributed gaming engine system 106 ( Figure 1 ) is executed by one or more of nodes A, B, C, 1 and 2.

[0067] In one embodiment, in addition to the authentication of the login information, additional operations are performed before enabling the client device 1 to be coupled to the node component server 202 to access the application executed by the distributed game engine system 106. For example, a network test server (not shown) coupled to the computer network 102 receives a signal from the cloud game server 204 to access the application executed by the distributed game engine system 106, and performs bandwidth delay on multiple data centers with the distributed game engine system 106. The results of the test are provided by the network test server to the cloud resource manager (not shown). The cloud resource manager is a server coupled to the computer network 102. The cloud resource manager determines which data centers will be connected to the client device 1 to access the application. The determination is based on the test results and other information, such as the availability of a sufficient number of nodes and which data center the application is stored in. The cloud resource manager selects one or more of the data centers having one or more of nodes A, B, C, 1, and 2, and sends a signal to the node component server 202 to select one or more of nodes A, B, C, 1, and 2.

[0068] After receiving the signal from the cloud resource manager, the node component server 202 selects one or more of the nodes A, B, C, 1, and 2 of the distributed game engine system 106 that will execute the application program via the switching system 206 to initialize the one or more of the nodes A, B, C, 1, and 2. For example, the node component server 202 sends a signal to the control input of the switching system 206 to couple to nodes A and 1 or to nodes A and B or to nodes 1 and 2 or to nodes A, 1, and 2. After receiving the signal at the control input, the switching system 206 closes the position of one or more of the switches to connect the node component server 202 to the corresponding one or more nodes of the distributed game engine system 106 coupled to the one or more of the switches, and opens the position of the remaining switches to disconnect the remaining nodes of the distributed game engine 106 from the node component server 202. After connecting to the node component server 202 via the switching system 206, one or more of the nodes A, B, C, 1 and 2 of the distributed game engine system 106 executes an application to transmit encoded frames from one or more of the nodes A, B, C, 1 and 2 to the client device 1 via the computer network 102.

[0069] After the switching system 206 selects one or more of nodes A, B, C, 1, and 2, user A uses the input device of the client device 1 to provide user input 1 to node A via the computer network 102. For example, when user A selects one or more buttons on the input device of the client device 1 or moves the input device 1, or a combination thereof, user input 1 is generated. As another example, user input 1 includes one or more image frames of movement of the input device or a body part of user A, or a combination thereof. The image frames are captured by one or more cameras of the client device 1. The user input 1 is packetized by the client device 1 using an external communication protocol to generate one or more packets, which are sent from the client device 1 to the network communication device A of node A via the computer network 102. The network communication device A unpacks the one or more packets with the user input 1 using the external communication protocol to extract the user input 1, and provides the user input 1 to CPU A.

[0070] CPU A analyzes user input 1 to determine a change in the position and orientation of an input device of client device 1, or to determine whether a button on the input device is selected, or to determine whether the position and orientation of a body part of user A has changed, or a combination thereof. CPU A executes a physics engine to determine one or more positions and one or more orientations of a virtual object in a virtual scene controlled by user A using an input device of client device 1. One or more positions and one or more orientations of a virtual object correspond to a change in the position and orientation of an input device of client device 1, or to a change in the position and orientation of a body part of user A, or to a selection of a button on the input device, or a combination thereof. CPU A also applies an audio engine to determine audio data corresponding to one or more positions and one or more orientations of a virtual object in state 1. One or more positions of a virtual object in state 1, audio data to be output by a virtual object in state 1, and one or more orientations of a virtual object in state 1 are stored in memory device A by CPU A. In one embodiment, a virtual background is an example of a virtual object. For example, a virtual background is a virtual object in a virtual scene, and another virtual object also exists in the virtual scene. One or both of these virtual objects are controlled by user A via client device 1.

[0071] In addition, CPU A1 accesses one or more positions of the virtual object of state 1, audio data to be output by the virtual object of state 1, and one or more orientations of the virtual object of state 1 from memory device A. CPU A1 applies the AI ​​engine to the one or more positions of the virtual object of state 1, audio data to be output by the virtual object of state 1, and one or more orientations of the virtual object of state 1. The AI ​​engine is applied by CPU A1 to determine one or more positions of one or more AIs, one or more orientations of one or more AIs, and audio data corresponding to the one or more positions and one or more orientations in a virtual scene with virtual objects controlled by user A. The one or more positions of one or more AIs, one or more orientations of one or more AIs, and audio data corresponding to the one or more positions and one or more orientations in a virtual scene with virtual objects controlled by user A are for state 1. In addition, audio data corresponding to the one or more positions of one or more AIs and one or more orientations will be output by the one or more AIs. The one or more positions of one or more AIs of state 1, one or more orientations of one or more AIs of state 1, and audio data to be output by one or more AIs of state 1 are stored in memory device A1 by CPU A1.

[0072] GPU A accesses one or more positions of the virtual object and one or more orientations of the virtual object from memory device A, and accesses one or more positions of one or more AIs and one or more orientations of one or more AIs from memory device A1, and applies the rendering engine to the positions and orientations of the virtual object and the one or more AIs to generate one or more image frames of state 1. The image frames of state 1 are stored by GPU A in GPU memory device A.

[0073] Audio encoder A accesses audio data of a virtual object from memory device A and audio data of one or more AIs from memory device A1 to generate one or more audio frames, and encodes the audio frame of state 1 to output one or more encoded audio frames of state 1. Similarly, video encoder A accesses image frames of state 1 from GPU memory device A, and encodes the image frames to output one or more encoded image frames of state 1.

[0074] The network communication device A receives the encoded image frame of state 1 from the video encoder A and the encoded audio frame of state 1 from the audio encoder A, and applies the external communication protocol to the encoded frame of state 1 to generate one or more packets of state 1. The encoded frame of state 1 includes the encoded image frame of state 1 and the encoded audio frame of state 1. The network communication device A sends the packet of state 1 to the client device 1 via the computer network 102 to display one or more images of state 1 on the display device of the client device 1 and output sound via the client device 1. An image is generated based on the encoded image frame of state 1 and a sound is output based on the encoded audio frame of state 1.

[0075] CPU A stores user input 1 in memory device A. When CPU A applies the physics engine, CPU A applies the audio engine, CPU A1 applies the AI ​​engine, and / or GPU A applies the graphics engine, node 1 applies its physics prediction engine, audio prediction engine, AI prediction engine, and / or graphics prediction engine to determine prediction state 2, which is an example of a state after state 1 or a next state. For example, during a time period when CPU A applies the physics engine, CPU A applies the audio engine, CPU A1 applies the AI ​​engine, and / or GPU A applies the graphics engine, CPU A determines that prediction state 2 is to be generated. After determining that prediction state 2 is to be generated, CPU A instructs the internal communication device A of node A to access user input 1 from memory device A, and provides user input 1 to node 1 for access by CPU 1 of node 1. The internal communication device A of node A applies the internal communication protocol to user input 1 to generate one or more transmission units with user input 1, and sends the transmission units to node 1. The internal communication device 1 of the node 1 receives one or more transmission units having the user input 1 from the internal communication device A of the node A, and applies the internal communication protocol to parse the one or more transmission units to obtain the user input 1 from the one or more transmission units. The user input 1 is stored in the memory device 1 of the node 1 by the internal communication device 1. For example, the internal communication device 1 receives an instruction from the CPU A of the node A via the internal communication device A to store the user input 1 in the memory device 1 for access by the CPU 1.

[0076] The CPU 1 of the node 1 accesses the user input 1 from the memory device 1 and determines the movement of the virtual object controlled by the user A via the client device 1, such as one or more positions, or one or more orientations, or a combination thereof. The movement of the predicted state 2 is determined according to the predicted user input 2 and the user input 3 which is also predicted. For example, the CPU 1 applies the laws of physics to predict the additional movement of the virtual object in the case where the user input 2 is received from the client device 1 via the computer network 102, and predicts the further movement of the virtual object in the case where the user input 3 is received from the client device 1 via the computer network 102. The user inputs 2 and 3 are examples of predicted user inputs, which have not actually been received when the movement of the virtual object of the predicted state 2 is determined. The CPU 1 predicts that the user inputs 2 and 3 will be received, or it is possible to receive the user inputs 2 and 3, or it is possible to receive the user inputs 2 and 3 after receiving the user input 1. The CPU 1 predicts that the user input 2 will be received from the client device 1 successively after receiving the user input 1, and the CPU 1 predicts that the user input 3 will be received successively after receiving the user input 2. As an example, predicted state 2 includes a position and orientation of a virtual object based on or corresponding to user input 2, and also includes a position and orientation of a virtual object based on or corresponding to user input 3. The virtual object is controlled by user A via client device 1. The laws of physics applied by CPU 1 are part of a physics prediction engine. CPU 1 also determines audio data corresponding to the position and orientation of the virtual object of predicted state 2. CPU 1 stores the position and orientation of the virtual object of predicted state 2 and the audio data to be output by the virtual object of predicted state 2 in a memory device 1 of node 1. In one embodiment, the movement of predicted state 2 is determined according to user input 2 or according to any other number of user inputs (such as three, four, or five user inputs).

[0077] In addition, the CPU 1a accesses the position and orientation of the virtual object and the audio data to be output by the virtual object of the predicted state 2 from the memory device 1, and applies the AI ​​prediction engine to determine one or more positions and one or more orientations of one or more AIs in one or more virtual scenes for which the position and orientation of the virtual object of the predicted state 2 are determined. For example, the CPU 1a determines that the position and orientation of the AI ​​in the virtual scene in which the virtual object controlled by the user A via the client device 1 has a position and orientation determined based on the user input 2 or based on the user inputs 2 and 3. As another example, the CPU 1a determines that when another virtual object controlled by the user A via the client device 1 runs to the left or sits down in the virtual scene, the virtual object controlled by the AI ​​or the CPU 1a will move to the right or stand up in the virtual scene.

[0078] In addition, the CPU 1a applies the audio prediction engine to generate audio data to be output by one or more AIs of the prediction state 2 based on the audio data to be output by the virtual object of the prediction state 2. The CPU 1a stores one or more positions and one or more orientations of the one or more AIs and the audio data to be output by the one or more AIs of the prediction state 2 in the memory device 1a.

[0079] GPU 1 of node 1 accesses the position of the virtual object and the orientation of the virtual object of predicted state 2 from memory device 1, and accesses one or more positions and one or more orientations of one or more AIs of predicted state 2 from memory device 1a, and applies a graphics prediction engine as a rendering engine to the positions and orientations to generate one or more image frames of predicted state 2. The image frames of predicted state 2 are stored in GPU memory device 1 by GPU 1. For example, the image frames of predicted state 2 are stored in one or more caches of GPU memory device 1.

[0080] The audio encoder 1 accesses the audio data of the virtual object from the memory device 1 and accesses the audio data of one or more AIs from the memory device 1a to generate one or more audio frames, and encodes the audio frame of the prediction state 2 to output one or more encoded audio frames of the prediction state 2. Similarly, the video encoder 1 accesses the image frame of the prediction state 2 from the GPU memory device 1, and encodes the image frame to output one or more encoded image frames. The audio encoder 1 stores the encoded audio frame of the prediction state 2 in the memory device of the audio encoder 1, and the video encoder 1 stores the encoded image frame of the prediction state 2 in the memory device of the video encoder 1.

[0081] When the user inputs 2 and 3 are actually received by the node A from the client device 1 via the computer network 102, the CPU A of the node A sends the user inputs 2 and 3 to the internal communication device A. For example, the network communication device A of the node A receives the user inputs 2 and 3 from the client device 1 via the computer network 102. The internal communication device A applies the internal communication protocol to the user inputs 2 and 3 to generate one or more transmission units having the user inputs 2 and 3, and sends the transmission units to the internal communication device 1 of the node 1. The internal communication device 1 receives the transmission units and applies the internal communication protocol to the transmission units to obtain the user inputs 2 and 3 from the transmission units, and provides the user inputs 2 and 3 to the CPU 1.

[0082] The CPU 1 determines that the user inputs 2 and 3 actually received match the user inputs 2 and 3 in which the coded image frame and the coded audio frame of the predicted state 2 are generated by the node 1. After such determination, the CPU 1 sends a signal to the network communication device 1 of the node 1. The network communication device 1 accesses the coded image frame of the predicted state 2 from the memory device of the video encoder 1 and the coded audio frame of the predicted state 2 from the audio encoder 1, and applies the external communication protocol to the coded image frame and the coded audio frame of the predicted state 2 to generate one or more packets. The network communication device 1 sends the packet to the client device 1 via the computer network 102, so that one or more images are displayed on the client device 1 according to the coded image frame of the predicted state 2, and the client device 1 outputs the sound according to the coded audio frame of the predicted state 2.

[0083] By generating the encoded image frame and the encoded audio frame of the predicted state 2 before the user inputs 2 and 3 are actually received by the node 1 or the node A, the delay in the execution of the application by the distributed game engine system 106 is reduced. For example, once the user inputs 2 and 3 are received by the node 1 or the node A, the user inputs 2 and 3 are analyzed without delay to determine one or more positions and one or more orientations of the virtual object controlled by the user A via the client device 1, determine the audio data to be output by the virtual object, determine one or more one or more positions and one or more orientations of one or more AIs in the virtual scene with the virtual object, determine the audio data to be output by the one or more AIs, generate image frames according to the positions and orientations of the virtual objects and the AIs, generate encoded image frames of the predicted state 2 according to the image frames, and generate encoded audio frames of the predicted state 2 according to the audio data of the AIs and the virtual objects. One or more of the operations of determining one or more positions and one or more orientations of a virtual object in a virtual scene, determining audio data to be output by the virtual object, determining one or more positions and one or more orientations of one or more AIs in a virtual scene, determining audio data to be output by one or more AIs, generating image frames according to the positions and orientations of the virtual objects and AIs, generating encoded image frames of a predicted state 2 according to the image frames, and generating encoded audio data of a predicted state 2 according to the audio data of the AIs and virtual objects has been performed in advance by node 1 before node 1 receives user inputs 2 and 3. Once node 1 receives user inputs 2 and 3, one or more packets are generated according to the encoded image frames of the predicted state 2 and the encoded audio data of the predicted state 2, and the packets are sent from node 1 to client device 1 via computer network 102 to reduce the delay in the execution of the application.

[0084] It should be noted that one or more of CPU 1 applying the physics prediction engine, CPU 1 applying the audio prediction engine, CPU 1a applying the AI ​​prediction engine, and GPU 1 of node 1 applying the graphics prediction engine to generate prediction state 2 is performed simultaneously with CPU A applying the physics engine, CPU A applying the audio engine, CPU A1 applying the AI ​​engine, and GPU A of node A applying the graphics engine to generate state 1. For example, during the time period when CPU A applies the physics engine, CPU A applies the audio engine, CPU A1 applies the AI ​​engine, and / or GPU A of node A applies the graphics engine to generate state 1, the physics prediction engine, audio prediction engine, AI prediction engine, and graphics prediction engine for generating prediction state 2 are applied by node 1.

[0085] Furthermore, when node 1 is applying a physical prediction engine, an AI prediction engine, an audio prediction engine, or a graphic prediction engine, or a combination thereof, to generate image frames and audio frames for a predicted state 2, in the event that user input 1' is received instead of user input 2, one or more of nodes A and 1 apply a high priority process to determine state 1' based on user input 1'. For example, CPU A of node A receives user input 1' from client device 1 via computer network 102. CPU A determines that user input 1' is received after user input 1 is received instead of user input 2 for predicting state 2. CPU A further determines that user input 1' does not match user input 2 for which predicting state 2 is determined.

[0086] User inputs 2 and 3 of predicted state 2 are pre-stored in memory device A for determining whether a match occurs between user input 2 of predicted state 2 and user input 1', and between user input 3 of predicted state 2 and user input 1'. For example, CPU 1 accesses user inputs 2 and 3 of predicted state 2 from memory device 1 of node 1, and provides user inputs 2 and 3 of predicted state 2 to internal communication device 1 of node 1. Internal communication device 1 applies the internal communication protocol to user inputs 2 and 3 of predicted state 2 to generate one or more transmission units, and sends the transmission units to internal communication device A of node A. Internal communication device A applies the internal communication protocol to the transmission units to obtain user inputs 2 and 3 of predicted state 2, and sends user inputs 2 and 3 of predicted state 2 to memory device A for storage.

[0087] CPU A provides user input 1' to internal communication device A. Internal communication device A applies the internal communication protocol to the user input 1' to generate one or more transmission units with user input 1', and sends the transmission units to internal communication device 1 of node 1. After receiving the transmission units with user input 1', internal communication device A applies the internal communication protocol to the transmission units to extract user input 1' from the transmission units, and provides the user input 1' to CPU 1 of node 1.

[0088] When node 1 receives user input 1' instead of receiving user input 2, node 1 stops applying one or more of the physical prediction engine, AI prediction engine, audio prediction engine, and graphic prediction engine for generating predicted state 2 according to user inputs 2 and 3 of predicted state 2 to provide a higher priority to generating state 1' than generating predicted state 2. For example, user input 1' is received by node 1 or by node A when node 1 is in the process of applying one or more of its physical prediction engine, its AI prediction engine, its audio prediction engine, or its graphic prediction engine to generate predicted state 2 or during this time period. CPU1 stops applying the physics prediction engine to determine the movement of the virtual object controlled by user A in prediction state 2, or CPU 1 stops applying the audio prediction engine to determine the audio data to be output by the virtual object of prediction state 2, or CPU 1a stops applying the AI ​​prediction engine to determine the movement of one or more AIs of prediction state 2, or CPU 1a stops applying the AI ​​prediction engine or the audio prediction engine to determine the audio data to be output by the AI ​​of prediction state 2, or GPU 1 stops applying the graphics prediction engine to generate one or more image frames based on the movement of the virtual object and the movement of the AI ​​of prediction state 2, or the video encoder 1 stops encoding the image frames of prediction state 2, or the audio encoder 1 stops encoding the audio data of prediction state 2, or a combination thereof.

[0089] In addition, when user input 1' is received instead of user input 2 and 3, instead of generating predicted state 2, one of nodes A and 1 immediately starts generating state 1' according to user input 1' to provide a higher priority to generating state 1' compared to generating predicted state 2. For example, user input 1' is received by node 1 or by node A when node 1 is in the process of generating image frames or encoded image frames or encoded audio frames or a combination thereof for predicted state 2 or during this time period. Node 1 stops generating image frames or encoded image frames or encoded audio frames for predicted state 2. Instead, CPU 1 of node 1 or CPU A of node A applies its physics engine to determine the movement of the virtual object controlled by user A via client device 1 in state 1'. In addition, CPU 1 of node 1 or CPU A of node A applies its audio engine to determine the audio data to be output by the virtual object in state 1'. In addition, the CPU A1 of node A or the CPU 1a of node 1 applies its AI engine to determine the movement of one or more AIs of state 1' based on the movement of the virtual object of state 1' and to determine the audio data to be output by one or more AIs of state 1' based on the audio data to be output by the virtual object of state 1'. In addition, the GPU A of node A or the GPU 1 of node 1 applies its graphics engine to generate one or more image frames of virtual objects, a virtual background of a virtual scene in which the virtual object is to be displayed, and graphics of one or more AIs of state 1'. In addition, the audio encoder A or the audio encoder 1 encodes the audio data to be output by the virtual object of state 1' and the audio data to be output by one or more AIs of state 1' to generate one or more encoded audio frames. In addition, the video encoder A or the video encoder 1 encodes the image frame of state 1' to output one or more encoded image frames. The network communication device A or the network communication device 1 applies the external communication protocol to the encoded audio frame and the encoded image frame of state 1' to generate one or more packets of state 1', and sends the packets to the client device 1 via the computer network 102. The client device 1 processes the encoded image frames of state 1 ′ to display one or more images of state 1 ′ on a display device of the client device 1 , and processes the encoded audio frames of state 1 ′ to output sounds associated with the one or more images.

[0090] In one embodiment, when the CPU 1 determines that the user inputs 2 and 3 actually received match the user inputs 2 and 3 for which the node 1 generates the image frame and the audio frame of the predicted state 2, the CPU 1 sends an encoding signal to the video encoder 1 of the node 1 and the audio encoder 1 of the node 1. The image frame of the predicted state 2 and the audio data of the predicted state 2 are not encoded before the user inputs 2 and 3 are actually received. After receiving the encoding signal, the video encoder 1 performs encoding of the image frame of the predicted state 2 in the above-described manner, and the audio encoder 1 performs encoding of the audio data of the predicted state 2. The network communication device 1 of the node 1 applies the external communication protocol to the encoded frames (including the encoded audio frames and the encoded image frames) to generate packets in the above-described manner, and sends the packets to the client device 1.

[0091] In one embodiment, a portion of state 1' is generated by node A and another portion of state 1' is generated by node 1 based on user input 1'. For example, node A applies its physics engine to determine the movement of virtual objects in the virtual scene of state 1', and node 1 applies its audio engine to determine the audio data to be output by the virtual objects in state 1'. As another example, node A applies its physics engine to determine the movement of virtual objects in the virtual scene of state 1', and node 1 applies its AI engine to determine the movement of one or more AIs in the virtual scene based on the movement of virtual objects in state 1'.

[0092] In this embodiment, the portion of state 1' generated by node A is transmitted from node A to node 1, or the portion of state 1' generated by node 1 is transmitted from node 1 to node A for transmission to client device 1 via computer network 102. For example, data including the position and orientation of the movement of virtual objects in the virtual scene defining state 1' is accessed by CPU A from memory device A and sent to internal communication device A. Internal communication device A generates one or more transmission units by applying the internal communication protocol to the data defining the movement of virtual objects in state 1', and sends the transmission units to internal communication device 1. Internal communication device 1 applies the internal communication protocol to the transmission units to obtain data defining the movement of virtual objects in state 1', and sends the data to CPU 1a for determining the position and orientation of the movement of one or more AIs in the virtual scene. As another example, one or more image frames of one or more AIs in state 1' are accessed by GPU 1 from GPU memory device 1 of node 1, and sent to internal communication device 1 for generating one or more transmission units according to the internal communication protocol. The transmission unit is sent from the internal communication device 1 to the internal communication device A, which applies the internal communication protocol to obtain the image frames of one or more AIs of state 1', and sends the image frames to the video encoder A. The video encoder A of node A encodes the image frames of one or more AIs of state 1' and the image frames of the virtual objects of state 1' received from node 1. The image frames of the virtual objects of state 1 are stored in the GPU memory device A of node A. In addition, the video encoder A encodes any remaining image frames of the virtual scene of state 1' to output the encoded image frames of state 1'. In addition, the audio data of state 1' is encoded by the audio encoder A to output one or more encoded audio frames of state 1'. The network communication device A applies the external communication protocol to the encoded audio frames and the encoded image frames of state 1' to generate one or more data packets, and sends the packets to the client device 1 via the computer network 102.

[0093] In one embodiment, high priority processing is performed by one of nodes 1 and A that has a faster processing speed and / or a larger memory than the other node. For example, nodes 1 and A select CPU 1 with a faster processing speed to apply its physics engine to generate data about the movement of a virtual object controlled by user A in state 1', such as one or more positions and one or more orientations. CPU A determines that CPU 1 has a faster processing speed and sends user input 1' of state 1' to CPU 1 via internal communication devices A and 1 to process user input 1'. As another example, GPU memory device A has a larger amount of memory space than the memory space within GPU memory device 1. In this example, data about the movement of a virtual object in state 1' determined by CPU 1 is accessed from memory device 1 by CPU 1 and sent to internal communication device 1. Internal communication device 1 applies an internal communication protocol to the data about the movement of a virtual object in state 1' to generate one or more transmission units, and sends the transmission units to internal communication device A. Internal communication device A applies the internal communication protocol to the transmission unit to obtain data about the movement of the virtual object, and sends the data to memory device A for storage. GPU A accesses data on the movement of the virtual object in state 1 ′ from memory device A to generate one or more image frames according to the data, and stores the image frames in GPU memory device A.

[0094] In one embodiment, one or more of nodes 1 and A determine or identify a difference between one or more elements of predicted state 2 and one or more elements of state 1' in response to receiving user input 1', and generate audio data or image frames based on the difference to provide to client device 1 via computer network 102. For example, GPU 1 generates one or more image frames of a virtual background of predicted state 2 of a virtual scene. After generating the image frame of the virtual background of predicted state 2, node A receives user input 1'. User input 1' is provided from node A to node 1 to be stored in GPU memory device 1. GPU 1 determines that user input 1' is received from node A and upon receiving user input 1', the image frame of the virtual background of predicted state 2 is provided from GPU memory device 1 to internal communication device 1 by GPU 1 of node 1. Internal communication device 1 applies an internal communication protocol to the image frame of the virtual background of predicted state 2 to generate one or more transmission units, and sends the transmission units to internal communication device A of node A. Internal communication device A of node A applies the internal communication protocol to the transmission unit to obtain the image frame of the virtual background of predicted state 2, and provides the image frame to CPU A and CPUA1 of node A. CPU A parses the image frame of the virtual background of the predicted state 2 to determine or identify the difference between the image frame to be generated for the virtual scene of state 1' and the image frame of the virtual background of the virtual scene of predicted state 2. CPU A determines that the difference is the difference of the virtual object to be superimposed on the virtual background of predicted state 2. The difference is determined based on user input 1'. The virtual object to be superimposed or the position and orientation of the virtual object are examples of one or more elements of state 1', and the virtual background of predicted state 2 is an example of one or more elements of predicted state 2. CPU A determines the position and orientation of the virtual object and the audio data to be output by the virtual object of state 1', and stores the position, orientation and audio data in the memory device A of node A. The position and orientation of the virtual object of state 1' are determined based on user input 1'.

[0095] In addition, in this embodiment, the CPU A1 of the node A parses the image frame of the virtual background of the predicted state 2 to determine or identify that the difference between the image frame to be generated for the virtual scene of the state 1' and the image frame of the virtual background of the virtual scene of the predicted state 2 is the difference of the AI ​​to be superimposed on the virtual background of the predicted state 2. The difference is determined according to the position and orientation of the virtual object of the state 1'. The AI ​​to be superimposed or the position and orientation of the AI ​​is an example of one or more elements of the state 1'. The CPU A1 determines the position and orientation of the AI ​​and the audio data to be output by the AI ​​of the state 1', and stores the position, direction and audio data in the memory device A1. The position and orientation of the AI ​​of the state 1' is determined according to the position and orientation of the virtual object of the state 1'. For illustration, if the virtual object of the state 1' jumps, the AI ​​of the state 1' jumps higher than the virtual object, or if the virtual object of the state 1' shoots in the virtual scene, the AI ​​also shoots in the virtual scene.

[0096] In this embodiment, GPU A generates an image frame of a virtual object having state 1' based on the position and orientation of the virtual object, generates an image frame of AI having state 1' based on the position and orientation of the AI, and superimposes the image frame of the virtual object of state 1' onto the image frame of the virtual background of the predicted state 2 to generate a superimposed image frame of the virtual scene of state 1'. GPU A sends the superimposed image frame to video encoder A. Video encoder A encodes the superimposed image frame to generate an encoded image frame of the virtual scene of state 1'.

[0097] In addition, in this embodiment, the audio encoder A encodes the audio data of the AI ​​and virtual objects of state 1' to generate an encoded audio frame. The encoded image frame of the virtual scene of state 1' and the encoded audio frame of the virtual scene of state 1' are converted into one or more packets by the network communication device A and sent to the client device 1 through the computer network 102 to display one or more synthetic images of the virtual scene of state 1' on the display device of the client device 1, the one or more synthetic images having the virtual background of the predicted state 2 and the virtual objects and AI of state 1'.

[0098] In one embodiment, instead of superimposing the image frames of the virtual object and the image frames of the AI ​​on the image frames of the virtual background as described in the previous embodiment, the image frames of the virtual background of the virtual scene with the virtual object or the AI ​​or both and the state 1' are generated by the node A or the node 1 based on the user input 1', and are encoded and sent to the client device 1 via the computer network 102 for display. In this embodiment, the GPU 1 discards (such as deletes or erases) the image frames of the virtual background with the predicted state 2 from the GPU memory device 1. The image frames of the virtual background with the predicted state 2 match the image frames of the virtual background with the state 1'. For example, the virtual background of the predicted state 2 is the same as the virtual background of the state 1'.

[0099] It should be noted that in one embodiment, the system 200 includes a plurality of nodes in addition to the nodes shown in Figure 2 A. For example, the system 200 includes 50 nodes, or 25 nodes, or 5 nodes.

[0100] It should also be noted that some of the above embodiments are described with respect to two user inputs 2 and 3. However, in one embodiment, these embodiments are equally applicable to one user input, such as user input 2 or user input 3, rather than both user inputs 2 and 3. For example, predicted state 2 is generated based on user input 2 rather than both user inputs 2 and 3.

[0101] In one embodiment, instead of using user input 1 to generate state 1 or predicted state 2, any number of user inputs are used to generate state 1 or predicted state 2. For example, CPU A of node A stores one or more previous user inputs in memory device A. The one or more previous user inputs are user inputs received by node A from client device 1 via computer network 102 before node A receives user input 1 from client device 1. The one or more previous user inputs are generated in a similar manner to generating user input 1. For example, one or more previous user inputs are generated when user A selects one or more buttons on an input device of client device 1 or moves one or more joysticks on client device 1 or makes one or more gestures captured by a camera of client device 1. As an example, when user A controls the input device of client device 1 to move an avatar or virtual object in a virtual scene, client device 1 generates one or more previous user inputs. Internal communication device A accesses user input 1 and one or more previous user inputs of state 1 stored in GPU memory device A of node A, applies an internal application protocol to user input 1 and one or more previous user inputs to generate one or more transmission units with user input 1, previous user inputs, and sends the transmission units to internal communication device 1 of node 1. Predicted state 2 is generated by node 1 based on one or more previous user inputs and user input 1 in a similar manner as state 1 is generated by node 1 based on user input 1 .

[0102] In one embodiment, the output of state 1 is used to generate predicted state 2. For example, CPU 1 determines the position of a virtual object controlled by user A via client device 1 for predicted state 2 based on the position of the virtual object in state 1. To illustrate, for predicted state 2, the virtual object moves to the right or left or up or down from the position in state 1. As another example, CPU 1 determines the orientation of a virtual object controlled by user A via client device 1 for predicted state 2 based on the orientation of the virtual object in state 1. To illustrate, for predicted state 2, the virtual object rotates clockwise or anticlockwise from the orientation of the virtual object in state 1. As yet another example, CPU 1a determines the position of the AI ​​for predicted state 2 based on the position of the virtual object in state 1, and determines the orientation of the AI ​​for predicted state 2 based on the orientation of the AI ​​in state 1.

[0103] In one embodiment, any control of the input device described herein by the user to change the state is performed via the user account assigned to the user by the server system 104. For example, user A uses the client device 1 to control a virtual object via his / her user account after logging into the user account.

[0104] It should be noted that in one embodiment, functions described herein as being performed by CPU A of node A are instead performed by CPU A1 of node A, or functions described as being performed by CPU A1 are instead performed by CPU A. Similarly, in one embodiment, functions described herein as being performed by CPU 1 of node 1 are instead performed by CPU 1a of node 1, or functions described as being performed by CPU 1a are instead performed by CPU 1.

[0105] Figure 3A 304 is a diagram for illustrating an embodiment of a system 300 of a distributed game engine 302 and a distributed predictor engine 304. The distributed game engine 302 and the distributed predictor engine 304 are components of the distributed game engine system 106 ( Figure 1 ). For example, one or more of nodes A, B, and C of distributed game engine system 106 are nodes of distributed game engine 302, and one or more of nodes 1 and 2 of distributed game engine system 106 are nodes of distributed predictor engine 304. Examples of each of distributed game engine 302 and distributed predictor engine 304 include machine learning engines and neural networks.

[0106] As shown in graph 306, a virtual object (such as an avatar or representation of user A) controlled by user A via client device 1 moves from position a to position b in a virtual scene. Graph 306 shows the position of the virtual object in the virtual scene. User input 1 is received and processed by distributed game engine 302 to generate state 1, which includes the state controlled by user A via client device 1 ( Figure 1 ) is moved from position b to position c of a virtual object controlled by user A via client device 1. Position c is an example of an output of state 1. User input 1 is received to move a virtual object controlled by user A via client device 1 from position b to position c.

[0107] During the processing of user input 1 to determine position c or generate an image frame period for displaying a virtual object as moving from position b to position c, the distributed predictor engine 304 receives user input 1 and transmits the virtual object to the computer network 102 ( Figure 1 ) receives predicted user input 2 from client device 1, and processes user input 2 to output predicted state 2, which includes position d1 of the virtual object controlled by user A and movement from position c to position d1. In addition, during the time period of processing user input 1, distributed predictor engine 304 further predicts that after receiving user input 2, user input 3 will be received to output predicted state 2, which includes position f of the virtual object controlled by user A and movement from position d1 to position f.

[0108] Furthermore, if during the period of processing user inputs 2 and 3 to output predicted state 2, the distributed predictor engine 304 or the distributed game engine 302 determines that user input 1' is received, one or more of the distributed game engine 302 and the distributed predictor engine 304 determines state 1' based on user input 1'. For example, one or more of the distributed game engine 302 and the distributed predictor engine 304 determines state 1' instead of continuing to determine predicted state 2. State 1' includes position d of a virtual object controlled by user A via client device 1 and movement of the virtual object from position c to position d. Positions c, d1, and f are located along path I, and positions c, d, and f are located along predicted path II.

[0109] In one embodiment, the distributed predictor engine 304 predicts the user A of the virtual scene based on the history of the user A of the virtual scene, or the other users B and C of the virtual scene. Figure 1 ), or one or more positions and one or more orientations of one or more virtual objects in the virtual scene, or the state 1 of the virtual scene, or a combination thereof, to determine the predicted state 2 of the virtual scene. For example, CPU 1 (FIG. 2A) determines that user A will be more likely to control the input device of client device 1 to generate user input 2 to move the virtual object from position c to position d1 rather than position d. In this example, CPU 1 accesses the memory device 1 (FIG. 2A) or the database within memory device A (FIG. 2A) to determine that user A previously controlled the virtual object from position c to position d1 rather than from position c to position d via his / her user account for more than a predetermined number of times. CPU 1 accesses the database within memory device A via internal communication devices A and 1 (FIG. 2A). As another example, CPU 1 determines that user A will be more likely to control the input device of client device 1 to generate user input 2 to move the virtual object from position c to position d1. In this example, the CPU 1 accesses the database in the memory device 1 (FIG. 2A) or the memory device A to determine that a greater number of users B and C have previously logged in via their corresponding user accounts and their corresponding client devices 2 and 3 ( Figure 1 ) to control the virtual object to travel from position c to position d1 instead of from position c to position d, and each of users B and C controls the virtual object more than a predetermined number of times.

[0110] As yet another example, the CPU 1 determines that user A will be more likely to control the input device of the client device 1 to generate the user input 2 to move the virtual object from position c to position d1 rather than position d. In this example, the CPU 1 accesses the memory device 1 (FIG. 2A) or the database within the memory device A to determine that user A previously controlled the virtual object to travel from position c to position d1 rather than from position c to position d via his / her user account more than a predetermined number of times. In addition, in this example, the CPU 1 accesses the memory device 1 (FIG. 2A) or the database within the memory device A to determine that more than a preset number of users B and C previously controlled the virtual object to travel from position c to position d1 rather than from position c to position d via their corresponding user accounts and their corresponding client devices 2 and 3, and each of users B and C controlled the virtual object more than a predetermined number of times.

[0111] As another example, CPU 1 determines that user A will be more likely to control the input device of client device 1 to generate user input 2 to move the virtual object from position c to position d1 rather than position d. In this example, CPU 1 accesses the position of the AI ​​within the virtual scene with the virtual object controlled by user A via client device A. The position of the AI ​​is accessed from memory device 1a (FIG. 2A) or memory device A1 (FIG. 2A). The virtual object is located at position c in the virtual scene. CPU 1 accesses memory device A1 via internal communication devices A and 1 (FIG. 2A). CPU 1 determines that the virtual object is more likely to move from position c to position d1 rather than position d based on the position of the AI ​​in the virtual scene. For illustration, CPU 1 determines that the virtual enemy of the virtual object at position c is close to the virtual object, and therefore the virtual object will run to position d1 rather than position d. Position d1 is safer than position d because position d1 provides cover for the virtual object. Compared to position d without cover, position d1 can be behind a virtual rock or a virtual tree in the virtual scene to provide cover.

[0112] As yet another example, the CPU 1 determines that user A will be more likely to control the input device of the client device 1 to generate user input 2 to move the avatar from position c to position d1 rather than position d. In this example, the CPU 1 accesses the position of another virtual object, such as a slider on a health level bar, from the memory device 1 or the memory device A (FIG. 2A) to determine that the health of the avatar is below a predetermined level. When the health of the avatar is below the predetermined level, the CPU 1 further determines that it will be more likely to receive user input 2 from the client device 1 via the computer network 102 rather than receiving user input 1'.

[0113] It should be noted that in graphic 306, instead of positions a, b, c, d, d1, and f, orientations a, b, c, d, d1, and f may be used, or each of a, b, c, d, d1, and f is a combination of a position and an orientation.

[0114] Figure 3B is used to show that when a user A uses a client device 1 ( Figure 1 ) is a diagram of an embodiment of a system 310 for generating image frames and audio frames of a predicted state 2 during a time period when a virtual object controlled by a user is at a position c. The system 310 includes a distributed predictor engine 304, which further includes a distributed physics prediction engine 312. The distributed physics prediction engine 312 is executed by CPU A of node A, or CPU of node B, or CPU 1 of node 1, or CPU 2 of node 2, or a combination thereof.

[0115] During the time period when the virtual object controlled by user A through client device 1 is at position c, the distributed physics prediction engine 312 predicts or determines that the virtual object is highly likely or slightly likely to collide with another virtual object 314 between positions c and d1. When the virtual object will move from position c of the prediction state 2 to position d1, the distributed physics prediction engine 312 predicts or determines that the virtual object will be highly likely or slightly likely to collide with another virtual object 314. After such prediction, the distributed physics prediction engine 312 determines one or more positions and one or more orientations of the virtual object controlled by user A and one or more positions and one or more orientations of the virtual object 314 during the collision, and stores the positions and orientations in one or more memory devices of nodes 1 (FIG. 2A) and 2. In addition, the distributed audio prediction engine of the distributed predictor engine 304 generates audio data of the collision. In addition, the distributed graphics engine of the distributed predictor engine 304 accesses the positions and orientations of the virtual object controlled by user A and the virtual object 314 from one or more memory devices of nodes 1 (FIG. 2A) and 2, and generates one or more image frames according to the positions and orientations during the collision. In addition, one or more video encoders of nodes 1 and 2 obtain image frames and encode the image frames to output one or more coded image frames of the collision. In addition, one or more audio encoders of nodes 1 and 2 obtain the colliding audio data to output one or more audio frames, and encode the audio frames to output one or more coded audio frames of the collision.

[0116] After actually receiving the user input 2 from the client device 1 via the computer network 102, one or more network communication devices of nodes 1 and 2 apply the external communication protocol to the encoded audio frame and the encoded video frame to generate one or more packets, and send the packets to the client device 1 via the computer network 102 to display one or more images of the collision on the client device 1 and output the sound of the collision on the client device 1.

[0117] Figure 3C is used to illustrate that when the prediction state 2 is being generated, the distributed game engine system 106 is connected to the computer network 102 ( Figure 1 ) An embodiment of a distributed game engine system 106 in which a user input 1' received from a client device 1 serves as a trigger event for generating a state 1'. When a user input 1' is received by the distributed game engine system 106 from the client device 1 via the computer network 102 immediately after receiving the user input 1, the distributed game engine system 106 stops applying the physics prediction engine, the AI ​​prediction engine, the graphics prediction engine, and the audio prediction engine to generate image frames and audio frames for the predicted state 2, and starts applying the graphics engine, the AI ​​engine, the graphics engine, and the audio engine to generate image frames and audio frames for the predicted state 1'. As an example, the CPU 1 of the node 1 (FIG. 2A) stops determining the position, orientation, and audio data of the virtual object controlled by the user A for the predicted state 2. Instead, the node 1 ( Figure 1 ) or CPU A of node A (FIG. 2A) begins to determine the position, orientation, and audio data of the virtual object of state 1' based on user input 1'. As another example, CPU 1a of node 1 (FIG. 2A) stops generating the position, orientation, and audio data of the AI ​​of predicted state 2. Conversely, CPU 1a of node 1 (FIG. 2A) or CPU A1 of node A (FIG. 2A) begins to determine the position, orientation, and audio data of the AI ​​of predicted state 1' based on user input 1'. As yet another example, GPU 1 of node 1 (FIG. 2A) stops generating one or more image frames based on one or more positions and orientations of the virtual object of predicted state 2 and one or more positions and orientations of the AI ​​of predicted state 2. The virtual object is generated by user A via client device 1 ( Figure 1) control. Instead, GPU 1 of node 1 or GPU A of node A (FIG. 2A) starts to generate one or more image frames based on one or more positions and orientations of the virtual object of state 1' and one or more positions and orientations of the AI ​​of state 1'. In addition, audio encoder 1 of node 1 (FIG. 2A) stops encoding audio data to be output by the virtual object predicting state 2, and video encoder 1 of node 1 (FIG. 2A) stops encoding image frames predicting state 2. Instead, audio encoder 1 or audio encoder A starts encoding the audio data of state 1' to output the encoded audio frames of state 1'. In addition, video encoder 1 or video encoder A starts encoding the image frames of state 1' to output the encoded image frames of state 1'. The encoded audio frames and encoded image frames of state 1' are packetized by network communication device A of node A or network communication device 1 of node 1 (FIG. 2A) and transmitted via computer network 102 ( Figure 2B ) is sent to the client device 1 to display one or more images of the virtual scene on the client device 1 based on the encoded image frames and output the sound of the virtual scene based on the encoded audio frames.

[0118] Figure 3D It is a diagram for illustrating that a virtual object or AI is rendered and added to a virtual background when a user input 1' of a state 1' is received, rather than when a user input 2 of a predicted state 2 is received. The GPU 1 of the node 1 (FIG. 2A) generates an image frame of a virtual background of the predicted state 2, and the image frame does not include a virtual object of the predicted state 2 controlled by the user A via the client device 1 and / or does not include the AI ​​of the predicted state 2. After receiving the user input 1', the CPU A of the node A (FIG. 2A) determines the position and orientation of the virtual object of the state 1' controlled by the user A, and further determines the audio data to be output by the virtual object based on the user input 1'. The CPU A of the node A determines the position and orientation at which the virtual object of the state 1' will be added to the virtual background of the predicted state 2.

[0119] It should be noted that CPU A accesses the position and orientation of the virtual background of the predicted state 2 from the memory device 1 of the node 1. For example, CPU A sends a request for the position and orientation of the virtual background of the predicted state 2 to the node 1 via the internal communication devices A and 1 (FIG. 2A). Upon receiving the request, the CPU 1 of the node 1 accesses the position and orientation of the virtual background of the predicted state 2 from the memory device 1 of the node 1, and provides the position and orientation to the internal communication device 1. The internal communication device 1 applies the internal communication protocol to the position and orientation of the virtual background of the predicted state 2 to generate one or more transmission units, and sends the transmission units to the internal communication device A of the node A. The internal communication device A applies the internal communication protocol to the transmission unit to obtain the position and orientation of the virtual background of the predicted state 2, and provides the position and orientation of the virtual background to the CPUA of the node A.

[0120] In addition, the CPU A1 of the node A (FIG. 2A) determines the position and orientation of the AI ​​of the state 1', and further determines the audio data to be output by the AI ​​based on the user input 1'. The CPU A1 determines that the AI ​​of the state 1' will add the position and orientation to the position and orientation of the virtual background of the predicted state 2 at this position and orientation. The CPU A1 accesses the position and orientation of the virtual background of the predicted state 2 from the node 1 in a manner similar to the above-described CPU A accessing the position and orientation of the virtual background of the predicted state 2 from the node 1. The GPU A of the node A (FIG. 2A) accesses the position and orientation of the virtual object stored in the memory device A of the node A of the state 1', and superimposes the virtual object at this position and orientation on one or more image frames of the virtual background of the predicted state 2 to output one or more superimposed image frames of the virtual scene of the state 1'. In addition, the GPU A of the node A accesses the position and orientation of the AI ​​stored in the memory device A1 of the node A of the state 1', and superimposes the AI ​​at this position and orientation on the image frame of the virtual background of the predicted state 2 to output the superimposed image frame of the virtual scene of the state 1'.

[0121] The video encoder A of node A obtains an overlay image frame and encodes the overlay image frame to output one or more encoded overlay image frames. In addition, the audio encoder A of node A encodes the audio data to be output by the virtual object of state 1' to generate one or more encoded audio frames, and encodes the audio data to be output by the AI ​​of state 1' to generate one or more encoded audio frames. The network communication device A of node A generates one or more packets based on the encoded overlay image frame and the encoded audio frame of state 1', and sends the packets to the client device 1 via the computer network 102 to display one or more synthetic images with a virtual background, virtual objects and AI in a virtual scene on the client device 1.

[0122] In one embodiment, instead of generating an overlay image frame of state 1' based on a virtual background predicting state 2, one or more image frames having the same virtual background of state 1' are re-rendered by GPU A of node A to generate one or more image frames of state 1' (Figure 2A).

[0123] Additionally, in one embodiment, instead of adding both the AI ​​and virtual objects of state 1 ′ to the virtual background of predicted state 2 , either the AI ​​or virtual objects of state 1 ′ are added to the virtual background of predicted state 2 .

[0124] Figure 4A 1 is a diagram for illustrating an embodiment of a system 400 in which node 1 is used to perform wide phase detection of possible collisions of virtual objects in a virtual scene and node 2 is used to perform narrow phase detection to determine contact points of collisions of virtual objects. Node 2 is also used to perform collision resolution. System 400 includes node 1, node 2, node A, node B, computer network 102, node component server 202, cloud game server 204, and client device 1. Node B is coupled to switching system 206.

[0125] The node 2 includes a central processing unit 2 (CPU 2), a memory device 2, another central processing unit 2a (CPU2a), a memory unit 2a, a graphics processing unit 2 (GPU 2), a GPU memory device 2, an internal communication device 2, a network communication device 2, an audio encoder (AE) 2, and a video encoder (VE) 2. The components of the node 2 (such as the CPU 2, the memory device 2, the CPU2a, the memory device 2a, the GPU 2, the GPU memory device 2, the internal communication device 2, the network communication device 2, the audio encoder 2, and the video encoder 2) are coupled to each other via a bus 2.

[0126] After receiving user input 1, CPU 1 of node 1 executes a physics prediction engine to perform wide detection and sends computationally intensive work of performing narrow phase detection to CPU 2 and / or sends computationally intensive work of performing collision resolution to CPU 2. For example, CPU 1 executes a physics prediction engine to determine whether a first virtual object in a virtual scene will collide with, or is highly likely to collide with, or is slightly likely to collide with, a second virtual object in a virtual scene based on predicted user input 2 (if received). After such determination, CPU 1 does not determine the position and orientation of the first virtual object and the position and orientation of the second virtual object during the collision. In addition, after such determination, CPU 1 does not determine the position and orientation of the first virtual object and the position and orientation of the second virtual object after the collision. Instead, CPU 1 provides a determination that the first virtual object will collide with, or is highly likely to collide with, or is slightly likely to collide with, a second virtual object to internal communication device 1 with instructions to perform narrow phase detection and / or collision resolution. Determining the position and orientation of the first virtual object and the second virtual object during and after the collision is more computationally intensive than determining that the first virtual object and the second virtual object will collide with each other, or is highly likely to collide with, or is slightly likely to collide with each other. The position and orientation of the first virtual object and the second virtual object during the collision provide a collision point where the first virtual object and the second virtual object collide, and are examples of complex physical states. Similarly, the position and orientation of the first virtual object and the second virtual object after the collision are additional examples of complex physical states. In addition, determining that the first virtual object and the second virtual object will collide or are highly likely to collide or are slightly likely to collide is an example of determining a simple physical state. Determining that the first virtual object and the second virtual object have a collision chance greater than a predetermined percentage (such as 70% or 65%) is an example of determining that the first object and the second object are highly likely to collide. In addition, determining that the first virtual object and the second virtual object have a collision chance greater than another preset percentage (such as greater than 40% or 50%) and less than a preset percentage (such as 70% or 65%) is an example of determining that the first virtual object and the second virtual object are slightly likely to collide.

[0127] The internal communication device 1 receives an instruction for performing narrow phase detection and / or collision resolution and a determination about a collision of a first virtual object and a second virtual object, and applies an internal communication protocol to the instruction and the determination to generate one or more transmission units having the instruction and the determination. The determination about the collision of the first virtual object and the second virtual object includes a determination that the first virtual object and the second virtual object will collide, or a determination that the first virtual object and the second virtual object are highly likely to collide, or a determination that the first virtual object and the second virtual object are slightly likely to collide. The internal communication device 1 sends the transmission unit to the internal communication device 2 of the node 2. The internal communication device 2 executes the internal communication protocol to obtain an instruction for performing narrow phase detection and / or collision resolution and a determination about a collision of the first virtual object and the second virtual object from the transmission unit, and sends the instruction and the determination to the CPU 2 of the node 2.

[0128] The CPU 2 executes instructions for narrow phase detection and / or collision resolution based on the determination of the collision between the first virtual object and the second virtual object. For example, the CPU 2 applies a physics prediction engine to determine one or more positions and one or more orientations of the first virtual object and one or more positions and one or more orientations of the second virtual object during the collision and audio data during the collision, and stores the positions and orientations of the first virtual object and the second virtual object and the audio data in the memory device 2. As another example, to resolve the collision, the CPU 2 applies a physics prediction engine to determine how far the first virtual object is separated from the second virtual object after the collision, and applies the laws of physics to generate forces to separate the first virtual object and the second virtual object from each other. The CPU 2 also determines audio data corresponding to the first virtual object and the second virtual object after the collision and stores the audio data in the memory device 2. The interval between the first virtual object and the second virtual object after the collision is defined by the one or more positions and one or more orientations of the first virtual object and the one or more positions and one or more orientations of the second virtual object.

[0129] The GPU 2 accesses the position and orientation of the first virtual object during and after the collision and the position and orientation of the second virtual object during and after the collision from the memory device 2, and applies the graphics prediction engine to render one or more image frames based on the position and orientation of the first virtual object and the second virtual object, and stores the image frames in the GPU memory device 2. The video encoder VE2 accesses the image frames stored in the memory device 2, and encodes the image frames to output one or more encoded image frames, which are stored in the video encoder VE 2. In addition, the audio encoder AE 2 accesses the audio data stored in the memory device 2 and encodes the audio data to output one or more encoded audio frames, which are stored in the audio encoder AE 2.

[0130] A user input 2 for predicting a state 2 is received by node A from a client device 1 through a computer network 102. Node A provides the user input 2 to a CPU 1 of node 1 via internal communication devices A and 1. The user input 2 is provided by CPU 1 to the internal communication device 1. The internal communication device 1 applies an internal communication protocol to the user input 2 to generate one or more transmission units, and sends the transmission units to the internal communication device 2.

[0131] The internal communication device 2 applies the internal communication protocol to the transmission unit to obtain the user input 2, and sends the user input 2 to the network communication device 2. In response to receiving the user input 2, the network communication device 2 obtains the encoded audio frame of the collision from the audio encoder AE 2 and the encoded video frame of the collision from the video encoder VE 2, and applies the external communication protocol to the encoded audio frame and the encoded video frame to generate one or more packets, and sends the packets to the client device 1 via the computer network 102 to display one or more images of the collision of the first virtual object and the second virtual object on the display device of the client device 1 and output the sound of the collision via the client device 1.

[0132] In one embodiment, the positions and orientations of the first virtual object and the second virtual object during and after the collision and the audio data during and after the collision are for predicted state 2.

[0133] In one embodiment, CPU 2 has higher processor performance than CPU 1. For example, CPU 2 has a shorter response time, or a higher throughput, or a lower utilization of components of Node 2, or a greater processing power, or a lesser load, or a lesser amount of work to perform, or a lesser number of tasks to perform, or a combination thereof, compared to CPU 1.

[0134] It should be noted that in one embodiment, functions described herein as being performed by CPU 2 of node 2 are instead performed by CPU 2a of node 2, or functions described as being performed by CPU 2a are instead performed by CPU 2.

[0135] In one embodiment, user input 1 is provided to node 1 by node A. For example, user input 1 is received by node 1 from client device 1 via computer network 102. CPU 1 accesses user input 1 stored in memory device 1, and provides user input 1 to internal communication device 1. Internal communication device 1 applies internal communication protocol to user input 1 to generate one or more transmission units, and sends the transmission units to internal communication device A. Internal communication device A applies internal communication protocol to the transmission units to extract user input 1, and provides user input 1 to be stored in memory device 1 of node 1 for access by CPU 1 from memory device 1.

[0136] In one embodiment, User Input 1 or any other user input described herein (such as User Input 2, User Input 3, and User Input 1 ') is sent from Client Device 1 to one or more of the nodes selected by the exchange system 206 for executing the application.

[0137] In one embodiment, CPU 2 determines a contact plane where the first virtual object and the second virtual object are to collide and a penetration distance from the contact point. In one embodiment, CPU 2 analyzes the instructions from CPU 1 in detail to determine that there is no collision between the first virtual object and the second virtual object, and there is no need to determine the position and orientation of the first virtual object and the second virtual object during and after the collision.

[0138] Figure 4Bis a diagram for illustrating an embodiment of a system 410 for dispatching high-quality graphics work from node 1 to node 2. GPU 1 generates one or more image frames or portions of image frames of prediction state 2, and stores the image frames or portions of image frames in GPU memory device 1. One or more image frames or portions of image frames of prediction state 2 are examples of simple graphics states, such as a virtual background in a virtual scene. GPU 1 generates instructions to generate remaining image frames or remaining portions of image frames of prediction state 2. The remaining image frames or remaining portions of image frames are examples of complex graphics states, such as virtual objects to be displayed in a virtual scene. The virtual scene includes a virtual background of a simple graphics state when displayed. GPU 1 sends instructions to internal communication device 1 to provide node 2 with a task of determining a complex graphics state. In response to receiving the instructions, internal communication device 1 accesses one or more positions and one or more orientations of a virtual object from memory device 1, or one or more positions and one or more orientations of an AI from memory device 1a, or a combination thereof, to facilitate the generation of remaining image frames or remaining portions of image frames of prediction state 2. The position and orientation of the virtual object of the predicted state 2 stored in the memory device 1 and the position and orientation of the AI ​​of the predicted state 2 stored in the memory device 1a are used by the GPU 1 of the node 1 to generate an image frame or a portion of an image frame of the predicted state 2.

[0139] The internal communication device 1 applies the internal communication protocol to the instruction received from the GPU 1 and to the position and orientation of the virtual object and AI of the predicted state 2 to generate one or more transmission units, and sends the transmission units to the internal communication device 2. The internal communication device 2 receives the transmission units and applies the internal communication protocol to the transmission units to obtain the instruction and the position and orientation of the virtual object and AI of the predicted state 2. The internal communication device 2 sends the instruction together with the position and orientation of the virtual object and AI to the GPU 2.

[0140] GPU 2 generates a remaining image frame or a remaining portion of an image frame according to the position and orientation of the virtual object and the AI ​​of the predicted state 2, and stores the remaining image frame or the remaining portion of the image frame in GPU memory device 2. Internal communication device 2 accesses the remaining image frame or the remaining portion of the image frame of the predicted state 2 from GPU memory device 2, and applies the internal communication protocol to the remaining image frame or the remaining portion of the image frame to generate one or more transmission units.

[0141] The transmission unit of the prediction state 2 is sent from the internal communication device 2 to the internal communication device 1 of the node 1. The internal communication device 1 applies the internal communication protocol to the transmission unit to obtain the remaining image frame or the remaining part of the image frame of the prediction state 2, and provides the remaining image frame or the remaining part to the GPU memory device 1 for storage.

[0142] GPU 1 combines a portion of the image frame of prediction state 2 with the remaining portion of the image frame of prediction state 2 or combines the image frame of prediction state 2 with the remaining image frame of prediction state 2. For example, GPU 1 identifies from the portion of the image frame of prediction state 2 and the remaining portion of the image frame of prediction state 2 that the portion and the remaining portion identify the same image frame and the position of the portion relative to the position of the remaining portion. By identifying that the portion and the remaining portion will be combined into the image frame of prediction state 2 and the positions of the portion and the remaining portion in the image frame, GPU 1 outputs the image frame of prediction state 2, which has the portion at an appropriate position in the image frame and the remaining portion at an appropriate position. As another example, GPU 1 identifies from the image frame of prediction state 2 generated by GPU 1 and the remaining image frame of prediction state 2 generated by GPU 2 a sequence of image frames to be displayed on client device 1. GPU 1 arranges the image frame of prediction state 2 generated by GPU 1 and the remaining image frame of prediction state 2 generated by GPU 2 in the sequence, and outputs an order for presenting or displaying the image frame generated by GPU 1 and the remaining image frame generated by GPU 2. The image frame generated by GPU 1 and the remaining image frames generated by GPU 2 are combined, such as arranged, by GPU 1 in this order.

[0143] The video encoder VE1 encodes a combination of the image frame of the prediction state 2 generated by the GPU 1 and the remaining image frame of the prediction state 2 generated by the GPU 2 to output one or more encoded image frames. The video encoder VE1 encodes the image frame generated by the GPU 1 and the remaining image frame generated by the GPU 2 according to the order of the combination of the image frame and the remaining image frame. In one embodiment, the video encoder VE1 encodes the image frame of the prediction state 2 having the portion of the prediction state 2 generated by the GPU 1 and the remaining portion of the prediction state 2 generated by the GPU 2 to output the encoded image frame.

[0144] When the user input 2 of the prediction state 2 is received by the node 1 from the node A, the network communication device 1 of the node 1 accesses the encoded image frame of the prediction state 2 from the video encoder VE1 in addition to the encoded audio frame of the prediction state 2 from the audio encoder 1 of the node 1, and applies the external communication protocol to the encoded image frame and the encoded audio frame to generate one or more packets, and sends the packets to the client device 1 through the computer network 102. After receiving the packets, the client device 1 displays one or more images based on the encoded image frame of the prediction state 2, and outputs sound based on the encoded audio frame of the prediction state 2.

[0145] The image frames generated by GPU 1 for predicted state 2 may have a lower quality than the remaining image frames generated by GPU 2 for predicted state 2. For example, the image frames generated by GPU 1 may have a lower resolution than the remaining image frames generated by GPU 2. As another example, the image frames generated by GPU 1 may be displayed at a lower frame rate than the remaining image frames generated by GPU 2.

[0146] Similarly, the portion of the image frame generated by GPU 1 at prediction state 2 has a lower quality than the rest of the image frame generated by GPU 2 at prediction state 2. For example, the image frame generated by GPU 1 has a lower resolution than the rest of the image frame generated by GPU 2.

[0147] In one embodiment, GPU 2 has higher quality than GPU 1. For example, GPU 2 has higher computer performance than GPU 1. To illustrate, GPU 2 has a shorter response time, or a higher throughput, or a lower utilization of components of Node 2, or a greater processing power, or a lesser load, or a lesser amount of work to perform, or a lesser number of tasks to perform, or a combination thereof, compared to GPU 1.

[0148] In one embodiment, when the user input 2 of the prediction state 2 is received by the node 1 from the node A, the video encoder VE1 encodes a combination of the image frame of the prediction state 2 generated by the GPU 1 and the remaining image frame of the prediction state 2 generated by the GPU 2 to output one or more encoded image frames, or encodes an image frame of the prediction state 2 having a portion of the prediction state 2 generated by the GPU 1 and the remaining portion of the prediction state 2 generated by the GPU 2 to output an encoded image frame. The encoding of the combination of the image frame generated by the GPU 1 and the remaining image frame generated by the GPU 2 or the encoding of the image frame generated by combining the portion of the image frame of the prediction state 2 generated by the GPU 1 and the remaining portion of the image frame of the prediction state 2 generated by the GPU 2 is performed after receiving the user input 2 but not before. The network communication device 1 of the node 1 also accesses the encoded image frame of the prediction state 2 from the video encoder VE1 in addition to the encoded audio frame of the prediction state 2 from the audio encoder 1 of the node 1, and applies the external communication protocol to the encoded image frame and the encoded audio frame to generate one or more packets, and sends the packets to the client device 1 through the computer network 102.

[0149] Figure 4C4 is a diagram for illustrating an embodiment of a system 420 for assigning one or more tasks associated with a physics prediction engine from node 1 to node 2. System 420 includes nodes 1 and 2. One or more processors of node 1 (such as CPU 1, CPU 1a, and GPU 1) have lower processor performance than one or more processors of node 2. One or more processors of node 2 include CPU 2, CPU A1, and GPU 2. In addition, one or more memory devices of node 1 (such as memory device 1, memory device 1a, and GPU memory device 1) have a lower amount of storage space than one or more memory devices of node 2. One or more memory devices of node 2 include memory device 2, memory device 2a, and GPU memory device 2.

[0150] After receiving user input 1, CPU 1 performs a control operation based on user input 1 and user inputs 2 and 3 ( Figure 3A ) determines that its processing performance will be insufficient to determine a portion of predicted state 2. For example, CPU 1 determines that a portion of predicted state 2 received by user A via client device 1 ( Figure 1 ) As another example, CPU 1 determines that one or more positions and one or more orientations of a virtual object controlled by user A via client device 1 will be determined using a preset number of components greater than node 1 to predict state 2.

[0151] After such determination, CPU 1 sends user inputs 1, 2, and 3 to CPU 2 via internal communication devices 1 and 2. For example, internal communication device 1 applies the internal communication protocol to user inputs 1, 2, and 3 to generate one or more transmission units having user inputs 1, 2, and 3, and sends the transmission units to internal communication device 2. Internal communication device 2 applies the internal communication protocol to the transmission units to obtain user inputs 1, 2, and 3, and sends the user inputs 1, 2, and 3 to CPU 2.

[0152] CPU 2 applies the physics prediction engine to determine one or more positions and one or more orientations of a virtual object controlled by user A via client device 1 based on user inputs 1, 2, and 3. The position and orientation of the virtual object are for predicted state 2. In addition, CPU 2 applies the audio prediction engine to determine audio data to be output by the virtual object controlled by user A via client device 1 for predicted state 2 based on user inputs 1, 2, and 3. CPU 2 stores the position and orientation of the virtual object for predicted state 2 in memory device 2 of node 2.

[0153] In addition, the CPU 2a of the node 2 accesses the position and orientation of the virtual object of the prediction state 2 from the memory device 2, applies the physics prediction engine to the position and orientation of the virtual object to determine one or more positions and orientations of one or more AIs in the virtual scene with the virtual object. The virtual scene is for the prediction state 2. The CPU 2a stores the position and orientation of the AI ​​in the memory device 2a. In addition, the CPU 2a applies the audio prediction engine to determine the audio data to be output by the AI ​​in the virtual scene based on the position and orientation of the AI. The audio data to be output by the AI ​​is for the prediction state 2.

[0154] The GPU 2 of the node 2 accesses the position and orientation of the virtual object from the memory device 2 and the position and orientation of the AI ​​from the memory device 2a, and applies a graphics prediction engine (such as a rendering code) to the position and orientation to generate one or more image frames of the virtual scene of the predicted state 2. The video encoder VE 2 of the node 2 encodes the image frames of the virtual scene to output one or more encoded image frames of the virtual scene of the predicted state 2. In addition, the audio encoder 2 of the node 2 accesses the audio data to be output by the virtual object from the memory device 2 and the audio data to be output by the AI ​​from the memory device 2a, and encodes the audio data to output the encoded audio frame of the predicted state 2.

[0155] By node 2 via computer network 102 ( Figure 1 ), node A and node 1 receive user inputs 2 and 3 from the input device of client device 1. For example, CPU A of node A (FIG. 2A) receives user inputs 2 and 3 from client device 1 through computer network 102, and CPU A provides user inputs 2 and 3 to internal communication device A. Internal communication device A of node A applies the internal communication protocol to user inputs 2 and 3 to generate one or more transmission units, and sends the transmission units to internal communication device 1 of node 1. Internal communication device 1 applies the internal communication protocol to the transmission units to extract user inputs 2 and 3 from the transmission units, and sends user inputs 2 and 3 to CPU 1 of node 1. CPU 1 of node 1 instructs internal communication device 1 and sends user inputs 2 and 3 to node 2. Internal communication device 1 of node 1 applies the internal communication protocol to user inputs 2 and 3 to generate one or more transmission units, and sends the transmission units to internal communication device 2 of node 2. Internal communication device 2 applies the internal communication protocol to the transmission units received from node 1 to extract user inputs 2 and 3, and sends user inputs 2 and 3 to CPU 2a of node 2.

[0156] In the case of a computer network 102 ( Figure 1), after node A and node 1 receive user inputs 2 and 3 from the input device of client device 1, the network communication device 2 of node 2 applies the external communication protocol to the encoded image frames and encoded audio frames of the virtual scene of the predicted state 2 to generate one or more packets, and sends the packets to the client device 1 via the computer network 102. After receiving the packets, the client device 1 displays one or more images of the virtual scene of the predicted state 2 based on the encoded video frames, and outputs sounds based on the encoded audio frames of the predicted state 2.

[0157] In one embodiment, upon receiving user input 1, CPU 1 applies a physics prediction engine to predict the result based on user input 1 and user inputs 2 and 3 ( Figure 3A ) determines a portion of the predicted state 2, where lower processing performance is sufficient. For example, the CPU 1 determines that the user A via the client device 1 ( Figure 1 ) is controlled by the client device 1 ( Figure 1 ) to output audio data for the virtual object controlled by the controller.

[0158] In this embodiment, CPU 1 sends user inputs 1, 2, and 3 and the position, orientation, and audio data of the virtual object to CPU 2 via internal communication devices 1 and 2. For example, internal communication device 1 applies the internal communication protocol to the user inputs 1, 2, and 3 and the position, orientation, and audio data of the virtual object to generate one or more transmission units with user inputs 1, 2, and 3, and sends the transmission units to internal communication device 2. Internal communication device 2 applies the internal communication protocol to the transmission units to obtain user inputs 1, 2, and 3 and the position, orientation, and audio data of the virtual object, and sends the user inputs 1, 2, and 3 and the position, orientation, and audio data of the virtual object to CPU 2 and CPU 2a. CPU 2 stores the position and orientation of the virtual object and the audio data to be output by the virtual object of the predicted state 2 in memory device 2.

[0159] In the same embodiment, CPU 2a applies the physics prediction engine to user inputs 1, 2, and 3 and the position and orientation of the virtual object to determine one or more positions and orientations of one or more AIs in a virtual scene with virtual objects whose positions and orientations are determined by CPU 1. The virtual scene is for prediction state 2. In addition, CPU 2a applies the audio prediction engine to determine the audio data to be output by the AI ​​in the virtual scene of prediction state 2 based on user inputs 1, 2, and 3. The position and orientation of the AI ​​of prediction state 2 and the audio data to be output by the AI ​​of prediction state 2 are stored in memory device 2a. The task of determining the position and orientation of the AI ​​of prediction state 2 is more computationally intensive than the task of determining the position and orientation of the virtual object of prediction state 2 in the virtual scene. In addition, the task of determining the audio data to be output by the AI ​​of prediction state 2 in the virtual scene is also more computationally intensive than the task of determining the audio data to be output by the virtual object of prediction state 2 in the virtual scene.

[0160] In this embodiment, GPU 2 of node 2 accesses the position and orientation of the virtual object from memory device 2 and the position and orientation of the AI ​​from memory device 2a, and applies a graphics prediction engine (such as rendering code) to the position and orientation to generate one or more image frames of the virtual scene of the predicted state 2. Video encoder VE2 of node 2 encodes the image frames of the virtual scene to output one or more encoded frames of the virtual scene of the predicted state 2. In addition, audio encoder 2 of node 2 accesses audio data to be output by the virtual object from memory device 2 and audio data to be output by the AI ​​from memory device 2a, and encodes the audio data to output encoded audio frames of the predicted state 2.

[0161] In this embodiment, via computer network 102 ( Figure 1 ), after node A and node 1 receive user inputs 2 and 3 from the input device of client device 1, the network communication device 2 of node 2 applies the external communication protocol to the encoded image frames and encoded audio frames of the virtual scene of the predicted state 2 to generate one or more packets, and sends the packets to the client device 1 via the computer network 102. After receiving the packets, the client device 1 displays one or more images of the virtual scene of the predicted state 2 based on the encoded video frames, and outputs sounds based on the encoded audio frames of the predicted state 2.

[0162] In one embodiment, any coding described herein is performed after receiving one or more of the user inputs 2 and 3 of the prediction state 2. For example, in a computer network 102 ( Figure 1), after node A and node 1 receive user inputs 2 and 3 from the input device of client device 1, the video encoder VE 2 of node 2 encodes the image frames of the virtual scene to output one or more encoded image frames of the virtual scene of the predicted state 2. In addition, after receiving the user inputs 2 and 3, the audio encoder 2 of node 2 accesses the audio data to be output by the virtual object from the memory device 2 and accesses the audio data to be output by the AI ​​from the memory device 2a, and encodes the audio data to output the encoded audio frame of the predicted state 2. The network communication device 2 of node 2 applies the external communication protocol to the encoded image frame and the encoded audio frame of the virtual scene of the predicted state 2 to generate one or more packets, and sends the packets to the client device 1 via the computer network 102. After receiving, the client device 1 displays one or more images of the virtual scene of the predicted state 2 based on the encoded video frame, and outputs sound based on the encoded audio frame of the predicted state 2.

[0163] In one embodiment, CPU 1a has higher processor performance than CPU 2a. In this embodiment, the position and orientation of the virtual object controlled by user A via client device 1 are sent from node 2 to node 1 for determining one or more positions and one or more orientations of one or more AIs in a virtual scene with a virtual object of predicted state 2. In addition, audio data to be output by the virtual object is sent from node 2 to node 1 for determining the audio data to be output by the AI ​​of predicted state 2. For example, internal communication device 2 accesses the position, orientation and audio data of the virtual object of predicted state 2 from memory device 2, and applies the internal communication protocol to generate one or more transmission units, and sends the transmission units to internal communication device 1 of node 1. Internal communication device 1 applies the internal communication protocol to parse the transmission unit to obtain the position, orientation and audio data of the virtual object of predicted state 2, and provides the position and orientation to CPU 1a of node 1. CPU 1a of node 1 determines one or more positions and orientations of one or more AIs based on the position and orientation of the virtual object in the virtual scene of predicted state 2. Furthermore, the CPU 1 a determines the audio data to be output by the AI ​​based on the audio data to be output by the virtual object in the virtual scene of the prediction state 2 .

[0164] In one embodiment, GPU 1 has a higher processor performance than GPU 2 of node 2. In this embodiment, instead of GPU 2 generating one or more image frames based on the position and orientation of the virtual object controlled by user A via client device 1 and the position and orientation of the AI, GPU 1 generates an image frame of predicted state 2. GPU 1 accesses the position and orientation of the virtual object of predicted state 2 from memory device 1 if the position and orientation are determined by CPU 1 or from memory device 2 if the position and orientation are determined by CPU 2.

[0165] In this embodiment, GPU 1 accesses the position and orientation of the virtual object of the predicted state 2 from memory device 2 via internal communication devices 1 and 2. For example, GPU 1 generates an instruction for obtaining the position and orientation of the virtual object from memory device 2, and sends the instruction to internal communication device 1. Internal communication device 1 applies the internal communication protocol to the instruction to generate one or more transmission units, and sends the transmission units to internal communication device 2. Internal communication device 2 applies the internal communication protocol to the transmission unit to obtain the instruction, and sends the instruction to CPU 2. CPU 2 accesses the position and orientation of the virtual object from memory device 2, and sends the position and orientation to internal communication device 2. Internal communication device 2 applies the internal communication protocol to the position and orientation of the virtual object to generate one or more transmission units, and sends the transmission unit to internal communication device 1. Internal communication device 1 applies the internal communication protocol to the transmission unit to extract the position and orientation of the virtual object, and sends the position and orientation to GPU 1.

[0166] Continuing with this embodiment, GPU 1 accesses the position and orientation of the AI ​​from memory device 1a when the position and orientation are determined by CPU 1a, or from memory device 2a when the position and orientation are determined by CPU 2a. GPU 1 accesses the position and orientation of the AI ​​of predicted state 2 from memory device 2a via internal communication devices 1 and 2. For example, GPU 1 generates an instruction for obtaining the position and orientation of the AI ​​of predicted state 2 from memory device 2a, and sends the instruction to internal communication device 1. Internal communication device 1 applies the internal communication protocol to the instruction to generate one or more transmission units, and sends the transmission units to internal communication device 2. Internal communication device 2 applies the internal communication protocol to the transmission unit to extract the instruction, and sends the instruction to CPU 2a. CPU 2a accesses the position and orientation of the AI ​​of predicted state 2 from memory device 2a, and sends the position and orientation to internal communication device 2. Internal communication device 2 applies the internal communication protocol to the transmission unit to extract the instruction, and sends the instruction to CPU 2a. CPU 2a accesses the position and orientation of the AI ​​of predicted state 2 from memory device 2a, and sends the position and orientation to internal communication device 2. Internal communication device 2 applies the internal communication protocol to the position and orientation of the AI ​​of predicted state 2 to generate one or more transmission units, and sends the transmission units to internal communication device 1. The internal communication device 1 applies the internal communication protocol to the transmission unit to obtain the position and orientation of the AI ​​of the predicted state 2, and sends the position and orientation to the GPU 1.

[0167] In one embodiment, the audio encoder 1 has a higher processor performance than the audio encoder 2 of the node 2. In this embodiment, if the audio data to be output by the virtual object of the predicted state 2 is generated by the CPU 2, the audio encoder 1 generates an instruction for obtaining the audio data from the node 2, and provides the instruction to the internal communication device 1. The internal communication device 1 applies the internal communication protocol to the instruction to generate one or more transmission units having the instruction, and sends the transmission unit to the internal communication device 2. The internal communication device 2 applies the internal communication protocol to the transmission unit to obtain the instruction, and sends the instruction to the CPU 2. The CPU 2 responds to the instruction and accesses the audio data from the memory device 2, and sends the audio data to the internal communication device 2. The internal communication device 2 applies the internal communication protocol to the audio data to be output by the virtual object of the predicted state 2 to generate one or more transmission units, and sends the transmission unit to the internal communication device 1. The internal communication device 1 applies the internal communication protocol to the transmission unit to obtain the audio data to be output by the virtual object of the predicted state 2, and sends the audio data to the audio encoder 1. After receiving the audio data, the audio encoder 1 encodes the audio data to output an encoded audio frame. In a similar manner, if the audio data to be output by one or more AIs of the prediction state 2 is generated by the CPU 2a, the audio encoder 1 generates an instruction for obtaining the audio data from the memory device 2a of the node 2. After receiving the audio data from the memory device 2a via the internal communication devices 1 and 2, the audio encoder 1 encodes the audio data to be output by the AI ​​to generate one or more encoded audio frames of the prediction state 2.

[0168] In one embodiment, the audio encoder 1 accesses the audio data to be output by the virtual object controlled by the user A via the client device 1 from the storage device 1, and accesses the audio data to be output by one or more AIs from the storage device 2 of the node 2. The audio data to be output by the virtual object and the audio data to be output by the AI ​​are for the virtual scene of the predicted state 2.

[0169] In one embodiment, the audio encoder 1 accesses audio data to be output by one or more AIs from the storage device 1, and accesses audio data to be output by a virtual object controlled by user A using the client device 1 from the storage device 2 of the node 2. The audio data to be output by the virtual object and the audio data to be output by the AI ​​are for a virtual scene of the predicted state 2.

[0170] In one embodiment, the video encoder 1 has a higher processor performance than the video encoder 2 of the node 2. In this embodiment, if one or more image frames of the virtual object having the predicted state 2 are generated by the GPU 2, the video encoder 1 generates an instruction for obtaining the image frame from the node 2, and provides the instruction to the internal communication device 1. The internal communication device 1 applies the internal communication protocol to the instruction to generate one or more transmission units having the instruction, and sends the transmission unit to the internal communication device 2. The internal communication device 2 applies the internal communication protocol to the transmission unit to extract the instruction, and sends the instruction to the GPU 2. The GPU 2 responds to the instruction and accesses the image frame from the GPU memory device 2, and sends the image frame to the internal communication device 2. The internal communication device 2 applies the internal communication protocol to the image frame to be output by the virtual object of the predicted state 2 to generate one or more transmission units, and sends the transmission unit to the internal communication device 1. The internal communication device 1 applies the internal communication protocol to the transmission unit to extract the image frame of the virtual object of the predicted state 2, and sends the image frame to the video encoder 1. After receiving the image frame, the video encoder 1 encodes the image frame to output the encoded image frame. Similarly, if an image frame of one or more AIs having a prediction state 2 is generated by GPU 2, the video encoder 1 generates an instruction for obtaining the image frame from the GPU memory device 2 of node 2. After receiving the image frame from the GPU memory device 2 via the internal communication devices 1 and 2, the video encoder 1 encodes the image frame of the AI ​​to generate one or more encoded image frames.

[0171] In one embodiment, the video encoder 1 accesses an image frame having a virtual object controlled by user A using client device 1 from GPU memory device 1, and accesses an image frame having one or more AIs from GPU memory device 2 of node 2. The image frame having the virtual object and the AI ​​is a virtual scene for prediction state 2.

[0172] In one embodiment, the video encoder 1 accesses an image frame with one or more AIs from the GPU memory device 1, and accesses an image frame with a virtual object controlled by user A using the client device 1 from the GPU memory device 2 of the node 2. The image frame with the virtual object and the AI ​​is a virtual scene for the prediction state 2.

[0173] In one embodiment, the network communication device 1 has a higher processor performance than the network communication device 2 of the node 2. In this embodiment, if one or more coded image frames of the prediction state 2 are output from the video encoder VE 2, the network communication device 1 generates an instruction for obtaining the coded image frame from the node 2, and provides the instruction to the internal communication device 1. The internal communication device 1 applies the internal communication protocol to the instruction to generate one or more transmission units having the instruction, and sends the transmission unit to the internal communication device 2. The internal communication device 2 applies the internal communication protocol to the transmission unit to extract the instruction, and sends the instruction to the video encoder VE 2. The video encoder VE 2 responds to the instruction and accesses the coded image frame from the memory device of the video encoder VE 2, and sends the coded image frame to the internal communication device 2. The internal communication device 2 applies the internal communication protocol to the coded image frame of the prediction state 2 to generate one or more transmission units, and sends the transmission unit to the internal communication device 1. The internal communication device 1 applies the internal communication protocol to the transmission unit to extract the coded image frame of the prediction state 2, and sends the coded image frame to the network communication device 1. After receiving the encoded image frame and after or in response to receiving user inputs 2 and 3, the network communication device 1 applies the external communication protocol to the encoded image frame to generate one or more packets, and sends the packets to the client device 1 via the computer network 102 to display one or more images on a display device of the client device 1 based on the encoded image frame.

[0174] In a similar manner, in one embodiment, if one or more encoded audio frames of the predicted state 2 are output from the audio encoder VE 2, the network communication device 1 of the node 1 generates an instruction for obtaining the encoded audio frame of the predicted state 2 from the audio encoder AE 2 of the node 2 via the internal communication devices 1 and 2. The instruction is sent from the node 1 to the node 2. After receiving the encoded audio frame and after or in response to receiving the user inputs 2 and 3, the network communication device 1 applies the external communication protocol to the encoded audio frame to generate one or more packets, and sends the packets to the client device 1 via the computer network 102 to output sound based on the encoded audio frame.

[0175] Figure 4Dis a diagram of an embodiment of a system 420 for assigning one or more tasks associated with an AI prediction engine from node 1 to node 2. After receiving user input 1, CPU 1a determines that a complex AI state is to be determined for prediction state 2 based on user input 1. As an example, CPU 1a determines that multiple collision points of multiple AIs are to be determined for prediction state 2 based on user inputs 2 and 3 to be received by node 1. CPU 1a performs the task of determining that multiple AIs will collide with each other based on user inputs 2 and 3 of prediction state 2. The collision of multiple AIs is an example of a simple AI state. As another example, after receiving user input 1, CPU 1a determines user inputs 2 and 3 of prediction state 2 based on user input 1. CPU 1a further determines user inputs 2 and 3 ( Figure 3A ) determines that its processing performance will be insufficient to determine a portion of predicted state 2. For illustration, CPU 1a determines that a processing power greater than a threshold amount will be used to determine one or more positions and one or more orientations of one or more AIs in a virtual scene of predicted state 2. As another example, CPU 1a determines that a greater than a preset number of components of node 1 will be used to determine one or more positions and one or more orientations of AIs in a virtual scene of predicted state 2.

[0176] After determining that a complex AI state is to be determined, CPU 1a sends user inputs 2 and 3 to CPU 2a via internal communication devices 1 and 2 for determining a complex AI state of prediction state 2. For example, internal communication device 1 applies the internal communication protocol to user inputs 1, 2, and 3 to generate one or more transmission units having user inputs 2 and 3, and sends the transmission units to internal communication device 2. Internal communication device 2 applies the internal communication protocol to the transmission units to extract user inputs 2 and 3, and sends the user inputs 2 and 3 to CPU 2a.

[0177] CPU 2a applies the AI ​​prediction engine to determine the position and orientation of the AI ​​based on user inputs 2 and 3. The position and orientation of the AI ​​is for predicted state 2. In addition, CPU 2a applies the audio prediction engine to determine the audio data to be output by the AI ​​in the virtual scene of predicted state 2 based on user inputs 2 and 3. CPU 2a stores the position and orientation of the AI ​​and the audio data to be output by the AI ​​of predicted state 2 in the memory device 2a of node 2.

[0178] The remaining operations are similar to the above reference Figure 4CThose operations described. For example, GPU 2 of node 2 generates an image frame based on the position and orientation of the virtual object in the virtual scene of the predicted state 2 and the position and orientation of the AI ​​in the virtual scene. In addition, video encoder 2 outputs a coded image frame by encoding the image frame generated by GPU 2. In addition, audio encoder AE2 encodes the audio data to be output by AI and the audio data to be output by the virtual object in the virtual scene of the predicted state 2 to generate a coded audio frame. After receiving user inputs 2 and 3, network communication device 2 generates a packet having the coded audio frame and the coded image frame generated by node 2, and transmits the packet to the computer network 102 ( Figure 4C ) sends the packet to client device 1.

[0179] In one embodiment, node A (FIG. 2A) is referred to herein as the first node, node 1 is referred to herein as the second node, and node 2 is sometimes referred to herein as the third node.

[0180] Figure 5 is a diagram of an embodiment of a client device 500, which is a client device 1, 2, or 3 ( Figure 1 ). Examples of client device 500 include cellular phones and HMDs. Client device 500 includes multiple components, such as video audio separator 502, network communication device (NCD) 504, stream buffer 506, one or more speakers 508, input device 510, display device 512, audio buffer 514, external digital camera 516, internal digital camera 518, video buffer 520, video audio synchronizer 522, microphone 524, inertial sensor 526, frame encoder 528, frame decoder 530, audio digital-to-analog converter (DAC) 532, video DAC 534, audio analog-to-digital converter (ADC) 536, video ADC 538, and tactile feedback device 540. Tactile feedback device 540 includes tactile feedback processor 542, driver 544, and mechanical device 546. The components of client device 500 are coupled to each other via bus 536. As used herein, a buffer is used to store data, such as video data or audio data, for a short period of time or temporarily. As another example, a buffer is an area within a memory device used to temporarily store data while it is being moved.

[0181] The external digital camera 516 faces a user such as A, B or C ( Figure 1) of the user's real-world environment, while the internal digital camera 518 faces the user's eyes. Examples of real-world environments include rooms, warehouses, cubicles, and enclosed spaces, etc. As used herein, examples of cameras include wide-angle cameras, infrared sensor cameras, panoramic cameras, etc. A camera is an optical instrument used to record still images or record video as moving images for storage in a digital memory device. The camera includes a lens that focuses light reflected from the real-world environment or from the user's eyes, and includes a camera body that encloses an image capture mechanism for capturing images of the real-world environment or the user's eyes. Examples of external digital cameras 516 include cameras manufactured by Sony Computer Entertainment, Inc. TM Playstation manufactured Examples of the display device 512 include a light emitting diode (LED) display device, a liquid crystal display (LCD) display device, a liquid crystal on silicon display device, an organic LED (OLED) display device, a plasma screen, and the like.

[0182] The display device 512 includes a microcontroller including a microprocessor, a driver, and a memory device to display a game on a display screen of the display device 512. As an example, the microprocessor of the display device 512 obtains a decoded image frame from the frame decoder 530 and sends a signal to a driver of the display screen of the display device 512 to a driver element, such as an LED, to display one or more images of a game or another application on the display screen. As used herein, a driver includes one or more transistors coupled to each other.

[0183] Examples of inertial sensor 526 include gyroscopes, magnetometers, and accelerometers. Examples of NCD 504 include network interface cards (NICs) and network interface controllers. Examples of input device 510 include keypads, keyboards, touch screens, touch pads, inertial sensors, one or more buttons, one or more switches, one or more joysticks, etc. In one embodiment, inertial sensor 526 is part of input device 510.

[0184] The frame encoder 528 includes a video encoder that compresses or encodes multiple image frames or data within the image frames to output one or more encoded image frames. For example, the video encoder of the frame encoder 528 applies a video inter-frame compression protocol such as H.264 and Motion Joint Photographic Experts Group (MJPEG) to compress multiple image frames or applies an intra-frame compression protocol to compress data within the image frames to output one or more encoded image frames. As an example, the video encoder of the frame encoder 528 includes a processor and a buffer, which is used to store image frames that are to be compressed or have been compressed by the processor. As another example, the video encoder of the frame encoder 528 includes a processor but does not include a buffer.

[0185] In addition, the frame encoder 528 includes an audio encoder that encodes audio data to output encoded audio frames. For example, the audio encoder of the frame encoder 528 applies an audio inter-frame compression protocol such as Advanced Audio Coding (AAC) to the audio data to output encoded audio frames.

[0186] Similarly, the frame decoder 530 includes a video decoder that decodes the encoded image frame or the encoded data within the encoded image frame to output one or more decoded image frames or one or more image frames. As an example, the video decoder of the frame decoder 530 applies a video inter-frame decompression protocol such as H.264 and Motion Joint Photographic Experts Group (MJPEG) to decompress multiple image frames or applies an intra-frame decompression protocol to decompress the data within the image frame to output one or more decoded image frames. As an example, the video decoder of the frame decoder 530 includes a processor and a buffer, which is used to store image frames to be decompressed or have been decompressed by the processor. As another example, the frame decoder 530 includes a processor but does not include a buffer.

[0187] In addition, the frame decoder 530 includes an audio decoder that decodes one or more coded audio frames to output an audio frame or a decoded audio frame. For example, the audio decoder of the frame decoder 530 applies an audio inter-frame decompression protocol such as AAC to the coded audio frame to output decoded audio data or audio data.

[0188] In one embodiment, the video audio separator 502 is a computer program that separates audio data from image frames. In one embodiment, the video audio separator 502 is a hardware circuit, such as an ASIC or PLD designed and manufactured to distinguish audio data from image frames.

[0189] In one embodiment, the video audio synchronizer 522 is a computer program that synchronizes the video frames with the audio data so that any one of the video frames is displayed together with the sound output based on the corresponding audio data. In one embodiment, the video audio synchronizer 522 is a hardware circuit such as an ASIC or PLD designed and manufactured to synchronize the display of any one of the video frames with the sound output based on the corresponding audio data.

[0190] In one embodiment, as used herein, a DAC is an electronic device that converts digital data such as video frames or image frames or digital audio data into analog signals such as voltage, current, or charge. For example, a video DAC is a hardware circuit that converts image frames into analog signals to display a game on a display device 512, and an audio DAC 532 is an electronic circuit that converts audio data into analog audio signals to output sound via a speaker 508.

[0191] In one embodiment, as used herein, an ADC is an electronic device that converts an analog signal into digital data such as a video frame or an image frame or audio data. For example, the video ADC 538 is a hardware circuit that converts an analog signal into an image frame, and the audio ADC 536 is an electronic circuit that converts an analog audio signal into audio data.

[0192] Examples of driver 544 include transistors or one or more transistors coupled to each other. In addition, examples of mechanical component 546 are a vibrating metal plate, or a motor and a metal plate. The motor is coupled to the metal plate via a connecting mechanism (such as one or more rods or rods coupled to each other via gears).

[0193] Data packets flow through computer network 102 ( Figure 1 ) or is received into the stream buffer 506 via the computer network 102 and a router (not shown) coupled to the computer network 102 and the client device 500. As an example, the router is coupled between the computer network 102 and the client device 500. The NCD 504 retrieves the data packet stream from the stream buffer 506 and depackets the stream. For example, the NCD 504 applies an external communication protocol to extract or obtain a coded frame, such as a coded image frame or a coded audio frame, from the packet. For further explanation, the NCD 504 determines the payload of the packet based on the header of the packet and accesses the coded frame from the payload. The NCD 504 sends the coded frame to the frame decoder 530, or the frame decoder 530 accesses the coded frame from the NCD 504. The frame decoder 530 decodes the coded frame using a decoding protocol such as H.264, H.265 / MPEG-H, H.263 / MPEG-4, H.262 / MPEG-2a, or a custom protocol to output decoded image frames and audio data.

[0194] The decoded image frame is accessed by the video audio separator 502 from the decoder 530 or sent from the decoder 530 to the video audio separator 502. The video audio separator 502 separates the audio data from the decoded image frame. For example, the video audio separator 502 separates the audio data from the decoded image frame according to the identifier provided to the audio data and the identifier provided to the decoded image frame. The video audio separator 502 sends the audio data to the audio buffer 514 and sends the decoded image frame to the video buffer 520. The video audio synchronizer 522 synchronizes the decoded image frame stored in the video buffer 520 with the audio data stored in the audio buffer 514. For example, the video audio synchronizer 522 uses the time when one of the decoded image frames is generated and the time when the corresponding audio data is generated to determine that the decoded image frame will be displayed together with the sound output according to the corresponding audio data.

[0195] The audio DAC 532 converts the synchronized audio data from a digital format to an analog format to generate an audio signal, and the audio signal is converted into sound by the speaker 508. The video DAC 534 converts the synchronized image frame from a digital format to an analog format to generate an analog video signal. The display device 512 displays the image of the game on the display screen of the display device based on the analog video signal. The image is displayed in synchronization with the sound output by the speaker 508.

[0196] In addition, user A, B, or C ( Figure 1 ) speaks into microphone 524, which converts the user's voice (e.g., speech, etc.) into an audio signal, such as a voltage, current, electrical signal, etc. Audio ADC 538 converts the audio signal from an analog format to a digital format to generate audio data, which is stored in audio buffer 514. The audio data is accessed from audio buffer 514 by NCD 504 to be transmitted via computer network 102 ( Figure 1 ) is sent to the distributed game engine system 106 ( Figure 1 ). For example, the NCD 504 applies an external communication protocol to generate one or more packets of embedded audio data and sends the packets to the distributed game engine system 106 via the computer network 102.

[0197] In one embodiment, the frame encoder 528 applies an audio inter-frame compression protocol to the audio data generated by the audio ADC 538 to output encoded audio frames, and provides the encoded audio frames to the NCD 504. The NCD 504 applies an external communication protocol to the encoded audio frames to generate one or more packets, and sends the packets to the distributed game engine system 106 via the computer network 102.

[0198] Internal digital camera 518 captures user A, B or C ( Figure 1)'s eyes or face or head or body. The internal digital camera 518 faces user A, B, or C. For example, when the client device 500 is an HMD worn by user A, the internal digital camera 518 faces the eyes of user A. As another example, when the client device 500 is a smartphone, the internal digital camera 518 is a front-facing camera located on the same side or on the same surface where the display screen of the display device 512 of the client device 500 is located. As yet another example, the internal digital camera 518 is a front-facing camera facing the hand of user A or the arm of user A to capture gestures made by user A. Similarly, the external digital camera 516 captures one or more images of the real environment around the user. As an example, when the client device 500 is a smartphone, the external digital camera 516 is a rear-facing camera located on the opposite side or opposite surface of the client device 500 compared to the side where the display screen of the display device 512 is located. The images captured by the digital cameras 516 and 518 are stored in the video buffer 520. In one embodiment, the terms image and image frame are used interchangeably herein. In one embodiment, images captured by digital cameras 516 and 518 are converted from digital format to analog format by video DAC 534 and sent to display the images on display device 512 .

[0199] The images captured by the digital cameras 516 and 518 are accessed by the NCD 504 from the video buffer 520 to generate one or more data packets having the images. The NCD 504 sends the data packets to the distributed game engine system 106 ( Figure 1 ). In one embodiment, the images captured by the digital cameras 516 and 518 are accessed by the frame encoder 530. The frame encoder 530 applies an inter-frame compression protocol or an intra-frame compression protocol to the images to generate one or more encoded image frames, and provides the encoded image frames to the NCD 504 via the bus 536. The NCD 504 applies an external communication protocol to the encoded image frames to generate one or more data packets from the encoded image frames, and sends the data packets to the distributed game engine system 106 via the computer network 102.

[0200] The inertial sensor 526 generates inertial sensor data, such as acceleration of a body part of user A, rotation speed of a body part of user A, orientation of a body part of user A, or a combination thereof. If the client device 500 includes a handheld controller, the inertial sensor 526 generates inertial sensor data about the movement of the handheld controller. The inertial sensor data is provided by the inertial sensor 526 to the NCD 504 via the bus 536. The NCD 504 generates one or more data packets embedding the inertial sensor data and sends the data packets to the distributed game engine system 106 ( FIG. 10 ) via the computer network 102. Figure 1 ).

[0201] In addition, the NCD 504 receives one or more selections made by the user A, B, or C by selecting one or more buttons or by making one or more gestures or by making one or more joystick movements of the input device 510 to generate input data, and provides the input data to the NCD 504 via the bus 536. The NCD 504 applies the external communication protocol to the input data to generate one or more data packets with the input data, and sends the data packets to the distributed game engine system 106 via the computer network 102.

[0202] In one embodiment, the data packets generated by NCD 504 are sent via a router (not shown) that communicates with the NCD 504 via a wireless connection (such as Wi-Fi). TM Connect or Bluetooth TM The router receives the data packet and determines the destination address from the data packet. The router receives the data packet via the computer network 102 ( Figure 1 ) routes the data packet to one or more nodes of the distributed game engine system 106 that are assigned a destination address.

[0203] Similarly, in one embodiment, data packets generated by the distributed game engine system 106 are sent via a router (not shown) coupled between the computer network 102 and the client device 500. The router is coupled to the NCD 504 of the client device 500 via a wireless connection. The router receives the data packets from the distributed game engine system 106 and determines the destination address from the data packets. The router routes the data packets to the NCD 514 of the client device 500, which is assigned the destination address, via the wireless connection.

[0204] In one embodiment, input device 510 is part of a device separate from client device 500. For example, input device 510 is part of a handheld controller such as a Sony TM Move TM Controller or Sony TM DualShock TM The handheld controller is coupled to an internal communication device (not shown) of the client device 500 via a wireless connection or a wired connection (such as a parallel data transfer cable or a serial data transfer cable or a USB cable). An example of an internal communication device is an application such as Bluetooth. TM or Wi-Fi TMThe data transmission device uses a wireless protocol to communicate data with the input device 510. As an example, the internal communication device of the client device 500 is coupled to the NCD 504 via the bus 536. The NCD 504 accesses the input data received by the internal communication device from the handheld controller and applies the external communication protocol to generate one or more packets, and sends the packets to the distributed game engine system 106 via the computer network 102.

[0205] In one embodiment, the client device 500 does not include an internal digital camera 518 .

[0206] In one embodiment, an external digital camera 516 is located outside the client device 500 to capture images of the movement of a body part of user A, B, or C (such as an arm, hand, or head, or a combination thereof), or an HMD worn by the user, or a handheld controller held by the user.

[0207] In one embodiment, the terms package and data packet are used interchangeably herein.

[0208] In one embodiment, the tactile feedback device 540, microphone 524, input device 510, and inertial sensor 526 are components of the handheld controller. In addition, in this embodiment, the display device 512 and the speaker 508 are components of the television. In addition, the external digital camera 516 is a device separate from the handheld controller, the game console, and the television. This embodiment does not include the internal digital camera 518. In addition, in this embodiment, the remaining components of the client device 500 (such as the frame encoder 528, the video audio separator 502, the NCD 504, the frame decoder 530, the audio DAC 532, the stream buffer 506, the video DAC 534, the audio buffer 514, the video ADC 538, the audio ADC 536, the video audio synchronizer 522, and the video buffer 520) are components of the game console. The game console is coupled to the handheld controller via a wired connection or a wireless connection. In addition, the game console is connected to the handheld controller via a wireless connection or a high-definition multimedia interface (HDMI TM ) is connected to couple to a display device.

[0209] In one embodiment, haptic feedback device 540, microphone 524, input device 510, inertial sensor 526, display device 512, speaker 508, external digital camera 516, and internal digital camera 518 are components of an HMD worn on the head of user A, B, or C. In addition, in this embodiment, the remaining components of client device 500 (such as frame encoder 528, video audio separator 502, NCD 504, frame decoder 530, audio DAC 532, stream buffer 506, video DAC 534, audio buffer 514, video ADC 538, audio ADC 536, video audio synchronizer 522, and video buffer 520) are components of a game console. The game console is coupled to the HMD via a wired connection or a wireless connection.

[0210] Figure 6 is a conceptual illustration of an implementation of the present disclosure being performed to stream a cloud video game to a client device 500 ( Figure 5 ) is a flowchart of various operations of the distributed game engine system 106. One or more game servers 602 of the distributed game engine system 106 execute the video game and generate the original (uncompressed) video 604 and audio 606. The server is sometimes referred to as a node in this article. An example of a server is a game console or a server blade. The video 604 and audio 606 are encoded by one or more game servers 602 for streaming purposes, as indicated by the reference numeral 608 in the illustrated figure. Coding provides compression for video and audio streams to reduce bandwidth usage and optimize the gaming experience. Examples of coding formats include H.265 / MPEG-H, H.264 / MPEG-4, H.263 / MPEG-4, H.262 / MPEG-2, WMV, VP6 / 7 / 8 / 9, etc.

[0211] The encoded audio 610 and the encoded video 612 are further processed by NCD 504 ( Figure 5 ) is packaged into data packets or network packets, as indicated by reference numeral 614, for transmission over a computer network 102 (such as the Internet). In some embodiments, the network packet encoding process also employs a data encryption process, thereby providing enhanced data security. In the illustrated implementation, audio packets 616 and video packets 618 are generated by applying an external communication protocol for transmission over the computer network 102.

[0212] The one or more game servers 602 additionally generate haptic feedback data 622 , which is also packaged as data packets for network transmission. In the illustrated implementation, haptic feedback packets 624 are generated for transmission over the computer network 102 .

[0213] The above-mentioned operation of generating raw video and audio and tactile feedback data is performed on one or more game servers 602 of one or more data centers of the distributed game engine system 106, and the operation of encoding video and audio and packaging the encoded audio / video and tactile feedback data for transmission is performed by the stream engine of one or more data centers. As indicated by reference numeral 620, the audio, video and tactile feedback packets are transmitted through the computer network 102. As indicated by reference numeral 626, the audio packet 616, the video packet 618 and the tactile feedback packet 624 are decomposed by the client device 500, such as parsing, etc., to extract the encoded audio 628, the encoded video 630 and the tactile feedback data 632 from the data packet at the client device 500. If the data has been encrypted, the data is also decrypted. Then, the encoded audio 628 and the encoded video 630 are decoded by the client device 500, as indicated by reference numeral 634, to generate the client-side raw audio and video data for display on the display device 512 of the client device 500. The tactile feedback data 632 is processed by the tactile feedback processor 542 ( Figure 5 ) to produce a haptic feedback effect at the handheld controller device 642 or other interface device (e.g., HMD, etc.) through which haptic effects can be presented. An example of a haptic effect is vibration or rumbling of the controller device 642 or HMD.

[0214] It should be understood that the video game responds to user input and therefore performs a process flow similar to the process described above for transmission and processing of user input, but in the reverse direction from the client device 500 to the one or more servers 502. As shown, a controller device 642 or another input device or a combination thereof generates input data 644. The input data 644 is packaged at the client device 500 to generate input data packets 646 for transmission to the one or more servers 602 over the computer network 102. The input data packets 646 are unpacked and reassembled by the one or more servers 602 to define input data 648 at the data center side. The input data 648 is fed to the one or more servers 602, which process the input data 648 to generate one or more states, as described above.

[0215] During the transmission of audio packets 616, video packets 618, and haptic feedback packets 624 via computer network 102, in some embodiments, the data transmission through computer network 102 is monitored to ensure quality of service. For example, the network conditions of computer network 102 are monitored, as indicated by reference numeral 650, including both upstream and downstream network bandwidth, and the game streaming is adjusted in response to changes in available bandwidth. That is, the encoding and decoding of network packets are controlled based on the current network conditions, as indicated by reference numeral 652.

[0216] Figure 7 is a block diagram of an embodiment of a game console 700 that is compatible for interfacing with a display device 512 of a client device 500 and capable of communicating with a distributed game engine system 106 ( Figure 1 ) for communication. The game console 700 is located in the data center A or at the location of the user A. In some embodiments, the game console 700 is used to execute the game displayed on the HMD. The game console 700 is provided with various peripheral devices that can be connected to the game console 700. The game console 700 has a cell processor 728, a dynamic random access memory (XDRAM) unit 726, a Reality Synthesizer with a dedicated video random access memory (VRAM) unit 732, and a processor. TM The game console 700 also has a Blu-ray player for reading from a disk 740a and a removable hard disk drive (HDD) 736 accessible through the I / O bridge 734. A disk read only memory (BD-ROM) optical disk reader 740. Optionally, the game console 700 also includes a device for reading compact flash cards, Memory Cards, etc., which can be accessed through the I / O bridge 734. The I / O bridge 734 is also connected to a universal serial bus (USB) 2.0 port 724, a Gigabit Ethernet port 722, an IEEE 802.11b / g wireless network (Wi-Fi) port 720, and a Bluetooth capable port. Wireless link port 718.

[0217] In operation, the I / O bridge 734 handles all wireless, USB and Ethernet data, including data from the game controller 642 and / or 703 and from the HMD 705. For example, when user A is playing a game generated by executing a portion of the game code, the I / O bridge 734 receives data from the game controller 642 and / or 703 and / or the HMD 705 via a Bluetooth link and directs the input data to the cell processor 728, which updates the current state of the game accordingly. As an example, a camera within the HMD 705 captures a gesture of user A to generate an image representing the gesture. The image is an example of input data. Each game controller 642 and 703 is an example of a handheld controller (HHC).

[0218] Wireless, USB and Ethernet ports also provide connections for other peripheral devices besides game controllers 642 and 703 and HMD 705, such as: remote control 704; keyboard 706; mouse 708; portable entertainment device 710, such as a Sony Playstation 700, for example. Entertainment devices, etc.; cameras, such as camera 712, etc.; microphone headset 714; and microphone 715. In some embodiments, such peripheral devices are wirelessly connected to the game console 700, for example, the portable entertainment device 710 is connected via Wi-Fi. TM The ad hoc connection is used for communication, and the microphone headset 714 communicates via Bluetooth TM Link for communication.

[0219] The provision of these interfaces means that the game console 700 may also be compatible with other peripheral devices such as digital video recorders (DVRs), set-top boxes, digital cameras, portable media players, Voice over Internet Protocol (IP) phones, mobile phones, printers and scanners.

[0220] In addition, a conventional memory card reader 716 is connected to the game console 700 via a USB port 724, thereby enabling reading of a memory card 748 of the type used by the game console 700. The game controllers 642 and 703 and the HMD 705 are operable to communicate wirelessly with the game console 700 via a Bluetooth link 718, or to connect to the USB port 724, thereby also receiving power to charge the batteries of the game controllers 642 and 703 and the HMD 705. In some embodiments, each of the game controllers 642 and 703 and the HMD 705 includes a memory, a processor, a memory card reader, a permanent memory (e.g., such as flash memory), a light emitter (e.g., such as a lighted spherical segment, a light emitting diode (LED) or an infrared light), a microphone and speaker for ultrasonic communication, an acoustic chamber, a digital camera, an internal clock, a recognizable shape (e.g., such as a spherical segment facing the game console 700), and a wireless device using a protocol (e.g., such as Bluetooth, Wi-Fi, etc.).

[0221] Game controller 642 is a controller designed to be used by both hands of user A, and game controller 703 is a single-handed controller with an attachment. HMD 705 is designed to be mounted on top of user A's head and / or in front of his eyes. In addition to one or more analog joysticks and conventional control buttons, each game controller 642 and 703 is susceptible to three-dimensional positioning determination. Similarly, HMD 705 is susceptible to three-dimensional positioning determination. Therefore, in some embodiments, in addition to or instead of conventional button or joystick commands, gestures and movements made by user A using game controllers 642 and 703 and HMD 705 are converted into inputs to the game. Optionally, other wireless-enabled peripheral devices (e.g., such as Playstation 3, TM portable device) as a controller. TM In the case of a portable device, additional game or control information is provided on the display screen of the device, such as control instructions or number of lives, etc. In some embodiments, other alternative or supplemental control devices are used, such as, for example, a dance mat (not shown), a light gun (not shown), a steering wheel and pedals (not shown), a custom controller, etc. Examples of custom controllers include a single or several large buttons for a quick response quiz game (also not shown).

[0222] The remote control 704 is also operable to communicate wirelessly with the game console 700 via a Bluetooth link 718. The remote control 704 includes a Blu-Ray TM Controls for the operation of the disk BD-ROM reader 740 and navigation of the disk contents.

[0223] In addition to conventional pre-recorded and recordable CDs and so-called Super Audio CDs, Blu-Ray TM The disk BD-ROM reader 740 is operable to read CD-ROMs compatible with the game console 700. In addition to conventional pre-recorded and recordable DVDs, Blu-Ray TM The disk BD-ROM reader 740 is also operable to read a digital video disk-ROM (CD-ROM) that is compatible with the game console 700. Blu Ray TM The disk BD-ROM reader 740 is further operable to read BD-ROMs compatible with the game console 700, as well as conventional pre-recorded and recordable Blu-Ray disks.

[0224] The game console 700 is operable to supply audio and video generated or decoded via the RealitySynthesizer graphics unit 730 to a display and sound output device 742 having a display screen 744 and one or more speakers 746, such as a monitor or television, through an audio connector 750 and a video connector 752, or to a display and sound output device 742 having a display screen 744 and one or more speakers 746, such as a monitor or television, or to a computer via a computer. The wireless link port 718 supplies audio and video to the display device of the HMD 705. In various embodiments, the audio connector 750 includes conventional analog and digital outputs, while the video connector 752 variously includes component video, S-video, composite video, and one or more High Definition Multimedia Interface (HDMI) outputs. Thus, the video output may be in a format such as Phase Alternating Line (PAL) or National Television System Committee (NTSC), or in 2220p, 1080i, or 1080p high definition. Audio processing (e.g., generation, decoding, etc.) is performed by the cell processor 708. The operating system of the game console 700 supports 5.1 surround sound, Theater Surround (DTS), and 7.1 surround sound decoding of the disk.

[0225] In some embodiments, the camera (e.g., camera 712, etc.) includes a single charge coupled device (CCD), an LED indicator, and a hardware-based real-time data compression and encoding device so that the compressed video data is transmitted in an appropriate format, such as based on the Moving Picture Experts Group (MPEG) standard within the image, for decoding by the game console 700. The LED indicator of the camera 712 is arranged to illuminate in response to appropriate control data from the game console 700, for example, to indicate adverse lighting conditions, etc. Some embodiments of the camera 712 are connected to the game console 700 via USB, Bluetooth or Wi-Fi communication ports. Various embodiments of the camera include one or more associated microphones and are also capable of transmitting audio data. In several embodiments of the camera, the CCD has a resolution suitable for high-definition video capture. In use, the image captured by the camera is incorporated into the game or interpreted as a game control input. In another embodiment, the camera is an infrared camera suitable for detecting infrared light.

[0226] In various embodiments, in order to successfully communicate data with a peripheral device (such as a camera or remote control, for example) via one of the communication ports of the game console 700, appropriate software, such as a device driver or the like, is provided.

[0227] In some embodiments, the above-mentioned system device (including game console 700, handheld controller and HMD705) enables HMD 705 to display and capture the video of the interactive session of the game. The system device initiates the interactive session of the game, which defines the interaction between user A and the game. The system device further determines the initial position and orientation of the handheld controller and / or HMD 705 operated by user A. The game console 700 determines the current state of the game based on the interaction between user A and the game. During the interactive session between user A and the game, the system device tracks the position and orientation of the handheld controller and / or HMD 705. The system device generates the audience video stream of the interactive session based on the current state of the game and the tracked position and orientation of the handheld controller and / or HMD 705. In some embodiments, the handheld controller presents the audience video stream on the display screen of the handheld controller. In various embodiments, HMD 705 presents the audience video stream on the display screen of HMD 705.

[0228] refer to Figure 8 , a diagram illustrating components of an HMD 802 is shown. The HMD 802 is a HMD 705 ( Figure 7 ). HMD 802 includes a processor 800 for executing program instructions. A memory device 802 is provided for storage purposes. Examples of memory device 802 include volatile memory, non-volatile memory, or a combination thereof. A display device 804 is included, which provides user A ( Figure 1 ) A visual interface for viewing, such as a display of image frames, etc. A battery 806 is provided as a power source for the HMD 802. The motion detection module 808 includes any of various motion sensitive hardware, such as a magnetometer 810, an accelerometer 88, and a gyroscope 814.

[0229] An accelerometer is a device for measuring acceleration and the reaction force caused by gravity. Single-axis and multi-axis models can be used to detect the magnitude and direction of acceleration in different directions. Accelerometers are used to sense tilt, vibration, and shock. In one embodiment, three accelerometers 812 are used to provide the direction of gravity, which gives an absolute reference for two angles (e.g., world space pitch angle and world space roll angle, etc.).

[0230] The magnetometer measures the strength and direction of the magnetic field near the HMD 802. In some embodiments, three magnetometers 810 are used in the HMD 802 to ensure the absolute reference of the world space yaw angle. In various embodiments, the magnetometer is designed to span the earth's magnetic field of ± 80 microtesla. The magnetometer is affected by metal and provides a yaw measurement value that changes monotonically with the actual yaw. In some embodiments, the magnetic field is warped due to the metal in the real world environment, thereby causing the warping of the yaw measurement. In various embodiments, the information from other sensors (e.g., gyroscope 814, camera 816, etc.) is used to calibrate the warping. In one embodiment, an accelerometer 812 is used together with a magnetometer 810 to obtain the inclination and azimuth of the HMD 802.

[0231] Gyroscope is used to measure or maintain the device of orientation based on the principle of angular momentum. In one embodiment, instead of gyroscope 814, three gyroscopes provide information about the movement across corresponding axes (such as x-axis, y-axis and z-axis) based on inertial sensing. Gyroscope helps to detect rapid rotation. However, in some embodiments, gyroscope drifts over time without absolute reference. This can trigger periodic resetting of gyroscope, which can be done using other available information, such as position / orientation determination based on visual tracking of object, accelerometer, magnetometer, etc.

[0232] A camera 816 is provided for capturing images and image streams of the real-world environment (e.g., a room, a cabin, a natural environment, etc.) surrounding user A. In various embodiments, more than one camera is included in the HMD 802, including a rear-facing camera (e.g., pointing away from user A when user A is viewing a display of the HMD 802, etc.), and a front-facing camera (e.g., pointing toward user A when user A is viewing a display of the HMD 802, etc.). Additionally, in several embodiments, a depth camera 818 is included in the HMD 802 for sensing depth information of objects in the real-world environment.

[0233] The HMD 802 includes a speaker 820 for providing audio output. In addition, in some embodiments, a microphone 822 is included for capturing audio from the real world space, including sounds from the surrounding environment and speech emitted by user A, etc. The HMD 802 includes a tactile feedback module 824 (e.g., a vibration device, etc.) for providing tactile feedback to user A. In one embodiment, the tactile feedback module 824 can cause movement and / or vibration of the HMD 802 to provide tactile feedback to user A.

[0234] An LED 826 is provided as a visual indicator of the status of the HMD 802. For example, the LED may indicate battery charge, power on, etc. A card reader 828 is provided to enable the HMD 802 to read information from and write information to a memory card. A USB interface 830 is included as an example of an interface for enabling connection of peripheral devices or connection with other devices such as other portable devices, computers, etc. In various embodiments of the HMD 802, any of a variety of interfaces may be included to enable greater connectivity of the HMD 802.

[0235] A WiFi module 832 is included to enable connection to the Internet via wireless networking technology. In addition, the HMD 802 includes a Bluetooth module 834 for wireless connection to other devices. A communication link 836 may also be included for connection to other devices. In one embodiment, the communication link 836 uses infrared transmission for wireless communication. In other embodiments, the communication link 836 uses any of a variety of wireless or wired transmission protocols to communicate with other devices.

[0236] An input button / sensor 838 is included to provide a Figure 1 ) provides an input interface. Any of a variety of input interfaces are included, such as buttons, touch pads, joysticks, trackballs, etc. In various embodiments, an ultrasonic communication module 840 is included in the HMD 802 to facilitate communication with other devices via ultrasonic technology.

[0237] Biosensor 842 is included to enable detection of physiological data from a user. In one embodiment, biosensor 842 includes one or more dry electrodes for detecting bioelectrical signals of a user through the user's skin.

[0238] The foregoing components of HMD 802 are merely described as exemplary components that may be included in HMD 802. In various embodiments, HMD 802 includes or does not include some of the various foregoing components.

[0239] Fig. 9 An embodiment of an information service provider (INSP) architecture is shown. INSP 902 delivers a wide range of information services to users A, B, and C and user D who are geographically dispersed and connected via a computer network 102 (e.g., a LAN, a WAN, or a combination thereof, etc.). Examples of WANs include the Internet, and examples of LANs include intranets. User A operates a client device 920-1, user B operates another client device 920-2, user C operates yet another client device 920-3, and user D operates another client device 920-4. Client device 920-1 is client device 1 ( Figure 1), client device 920-2 is client device 2 ( Figure 1 ), and client device 920-3 is client device 3 ( Figure 1 ) example.

[0240] In some embodiments, each client device 920-1, 920-2, 920-3, and 920-4 includes a central processing unit (CPU), a display, and an input / output (I / O) interface. Examples of each client device 920-1, 920-2, 920-3, and 920-4 include a personal computer (PC), a mobile phone, a netbook, a tablet computer, a gaming system, a personal digital assistant (PDA), a game console 700 and a display device, an HMD 802 ( Figure 8 ), gaming console 700 and HMD 802, desktop computer, laptop computer, smart TV, etc. In some embodiments, INSP 902 identifies the type of client device and adjusts the communication method employed.

[0241] In some embodiments, the INSP delivers one type of service, such as stock price updates, or delivers multiple services, such as broadcast media, news, sports, games, etc. In addition, the services provided by each INSP are dynamic, that is, services can be added or removed at any point in time. Therefore, the INSP that provides a particular type of service to a particular individual may change over time. For example, when the client device 920-1 is in the hometown of user A, the client device 920-1 is served by an INSP that is close to the client device 920-1, and when user A travels to a different city, the client device 920-1 is served by a different INSP. The hometown INSP transfers the required information and data to the new INSP so that the information "follows" the client device 920-1 to the new city, thereby making the data closer to the client device 920-1 and easier to access. In various embodiments, a master-server relationship is established between a master INSP that manages the information of the client device 920-1 and a server INSP that directly interfaces with the client device 920-1 under the control of the master INSP. In some embodiments, as client device 920-1 moves around the world, data is transferred from one ISP to another ISP so that the INSP that is in a better position to provide services to client device 920-1 becomes the INSP that provides those services.

[0242] INSP 902 includes an application service provider (ASP) 909 that provides computer-based services to customers through computer network 102. Software provided using the ASP model is sometimes also referred to as on-demand software or software as a service (SaaS). A simple form of providing access to computer-based services (e.g., customer relationship management, etc.) is to use standard protocols such as Hypertext Transfer Protocol (HTTP), etc. The application software resides on the provider's server and is accessed by each client device 920-1, 920-2, 920-3, and 920-4 through dedicated client software and / or other remote interfaces (e.g., thin clients) provided by the provider, etc., with the help of a web browser using Hypertext Markup Language (HTML), etc.

[0243] Services delivered in a wide geographic area typically use cloud computing. Cloud computing is a computing method in which dynamically scalable and usually virtualized resources are provided as services through a computer network 102. Users A, B, C, and D do not need to be experts in the technical infrastructure in the "cloud" that supports them. In some embodiments, cloud computing is 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 online general business applications accessed from a web browser, while software and data are stored on servers. The term cloud is used as a metaphor for computer network 102 based on how to depict computer network 102 in a computer network diagram, such as using servers, storage, and logic, etc., and is an abstract concept to the complex infrastructure hidden by it.

[0244] In addition, the INSP 902 includes a game processing provider (GPP) 910, sometimes referred to herein as a game processing server, which is used by the client devices 920-1, 920-2, 920-3, and 920-4 to play single-player and multi-player video games. Most video games played through the computer network 102 are run via a connection to a game server. Typically, the game uses a dedicated server application that collects data from the client devices 920-1, 920-2, 920-3, and 920-4 and distributes it to other clients operated by other users. This is more effective and efficient than a peer-to-peer arrangement, but a separate server is used to host the server application. In some embodiments, the GPP 910 establishes communications between the client devices 920-1, 920-2, 920-3, and 920-4, which exchange information without further reliance on the centralized GPP 910.

[0245] Dedicated GPPs are servers that run independently of the clients. Such servers usually run on dedicated hardware located in a data center, providing more bandwidth and dedicated processing power. For most PC-based multiplayer games, dedicated servers are the method of hosting game servers. Massively multiplayer online games run on dedicated servers that are usually hosted by the software company that owns the game title, allowing them to control and update the content.

[0246] Broadcast processing server (BPS) 912, sometimes referred to as broadcast processing provider in this article, distributes audio or video signals to listeners. Broadcasting to a very small range of listeners is sometimes called narrowcasting. The last leg of broadcast distribution is how the signal reaches client devices 920-1, 920-2, 920-3 and 920-4, and in some embodiments, the signal is distributed to antennas and receivers in the air like a radio station or a television station, or distributed via a radio station through cable television or cable broadcasting or "wireless cable". In various embodiments, the computer network 102 also brings radio or television signals to client devices 920-1, 920-2, 920-3 and 920-4, especially by allowing multicasting of shared signals and bandwidth. Historically, in several embodiments, broadcasting is delimited by geographical regions, such as national broadcasting, regional broadcasting, etc. However, with the popularity of high-speed Internet, broadcasting is no longer limited by geography because content can reach almost any country in the world.

[0247] Storage service provider (SSP) 914 provides computer storage space and related management services. SSP 914 also provides periodic backup and archiving. By providing storage as a service, client devices 920-1, 920-2, 920-3 and 920-4 use more storage than when storage is not used as a service. Another major advantage is that SSP 914 includes backup services, and client devices 920-1, 920-2, 920-3 and 920-4 will not lose data in the event of failure of their hard drives. In addition, in some embodiments, multiple SSPs have all or part of the data received from client devices 920-1, 920-2, 920-3 and 920-4, thereby allowing client devices 920-1, 920-2, 920-3 and 920-4 to access data in an effective manner independent of the place or client type where client devices 920-1, 920-2, 920-3 and 920-4 are located. For example, user A accesses personal files via a home computer and via a mobile phone when user A is on the move.

[0248] The communication provider 916 provides connections to the client devices 920-1, 920-2, 920-3, and 920-4. One type of communication provider 916 is an Internet service provider (ISP) that provides access to the computer network 102. The ISP uses a data transmission technology suitable for delivering Internet protocol datagrams to connect the client devices 920-1, 920-2, 920-3, and 920-4, such as dial-up, digital subscriber line (DSL), cable modem, optical fiber, wireless, or dedicated high-speed interconnection. In some embodiments, the communication provider 916 also provides messaging services, such as email, instant messaging, and short message service (SMS) text messages. Another type of communication provider is a network service provider (NSP) that sells bandwidth or network access by providing direct backbone access to the computer network 102. Examples of network service providers include telecommunications companies, data carriers, wireless communication providers, Internet service providers, cable TV operators that provide high-speed Internet access, etc.

[0249] Data exchange 918 interconnects several modules within INSP 902 and connects these modules to client devices 920-1, 920-2, 920-3, and 920-4 via computer network 102. In various embodiments, data exchange 918 covers a small area where all modules of INSP 902 are in close proximity, or a large geographic area when different modules are geographically dispersed. For example, data exchange 902 includes fast Gigabit Ethernet within a cabinet in a data center, or an intercontinental virtual LAN.

[0250] In one embodiment, one or more nodes described herein determine that a received input such as user input 2 ( Figure 3A ), and use a first threshold to trigger full rendering or generation of a frame (such as an image frame or an audio frame). The prediction error measure is an example of a prediction level and is greater than a first threshold. The first threshold is when it is determined based on the predicted user input that the current image frame or the current audio frame is incorrectly predicted or generated and another image frame or audio frame will be fully generated or rendered.

[0251] In one embodiment, there is a second threshold value that is lower than the first threshold value, and the second threshold value is used to trigger the next rendering or generation of a frame. For example, one or more of the nodes described herein detect that they are at the cusp of a misprediction and will not preemptively generate or render the next frame based on the next predicted user input, such as an image frame or an audio frame whose next predicted user input is after the predicted user input. The generation or rendering of the current image frame or the current audio frame is based on a predetermined prediction level of the predicted user input, for example, the prediction level is lower than the first threshold value, and one or more nodes predict that the generation or rendering of the next frame will not be based on the predetermined prediction level of the next predicted user input. Each of the first threshold value and the second threshold value is an example of a predetermined prediction level.

[0252] Additionally, in one embodiment, when one or more nodes described herein determine that a prediction of receipt of a predicted user input does not meet (e.g., does not exceed) a predetermined prediction level, the one or more nodes temporarily suspend or do not perform its operations of generating or rendering image frames based on the predicted user input. While the operations are suspended, the one or more nodes generate or render image frames based on, for example, the user input 1′( Figure 3A ) to perform the generation or rendering of image frames and audio frames. When the operation is suspended, one or more nodes learn prediction to reach a predetermined prediction level. As an example, within a fixed time period, within the duration of a game session, or until a known event occurs in the game, or until the prediction engine predicts a level greater than a predetermined level, the operation is suspended and / or learning is performed. The prediction engine is a computer program executed by one or more of the nodes. An example of a known event is the end of a game scene, which is a challenge scene predicted with a predetermined prediction level. The illustration of a challenge scene is an illustration of a movement or operation greater than a predetermined amount or a combination thereof with a virtual object or a virtual character. After a fixed time period, or the end of a game session, or a known event occurs, or the prediction engine predicts a level greater than a predetermined level, one or more of the nodes described herein revert to predicting user input and generate image frames and audio frames based on the predicted user input.

[0253] It should be noted that in various embodiments, one or more features of some embodiments described herein are combined with one or more features of one or more of the remaining embodiments described herein.

[0254] The embodiments described in this disclosure may be practiced with various computer system configurations including handheld devices, microprocessor systems, microprocessor-based or programmable consumer electronics, minicomputers, mainframe computers, etc. In one implementation, the embodiments described in this disclosure are practiced in a distributed computing environment where tasks are performed by remote processing devices linked over a wired or wireless network.

[0255] In view of the above embodiments, it should be understood that in one implementation, the embodiments described in this disclosure use 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 embodiments described in this disclosure is a useful machine operation. Some embodiments described in this disclosure also relate to devices or equipment for performing these operations. The device is specially constructed for the desired purpose, or the device is a general-purpose computer selectively activated or configured by a computer program stored in a computer. In particular, in one embodiment, various general-purpose machines are used together with computer programs written according to the teachings herein, or it may be more convenient to construct more specialized devices to perform the desired operations.

[0256] In one implementation, some embodiments described in the present disclosure are embodied as computer-readable code on a computer-readable medium. A computer-readable medium is any data storage device that stores data that is subsequently read by a computer system. Examples of computer-readable media include hard drives, network attached storage (NAS), ROM, RAM, compact disk ROM (CD-ROM), recordable CD (CD-R), rewritable CD (CD-RW), magnetic tape, optical data storage device, non-optical data storage device, etc. As an example, a computer-readable medium includes 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.

[0257] Furthermore, although some of the above-described embodiments are described with respect to a gaming environment, in some embodiments, other environments are used instead of gaming, such as a video conferencing environment or the like.

[0258] 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, so long as the processing of the superimposed operations is performed in the desired manner.

[0259] Although the foregoing embodiments described in this disclosure have been described in some detail for purposes of clarity of understanding, it will be apparent that certain changes and modifications may be practiced within the scope of the appended claims. Therefore, the present embodiments are to be considered as illustrative and not restrictive, and the embodiments are not to be limited to the details given herein, but may be modified within the scope and equivalents of the appended claims.

Claims

1. A method for reducing delay in the execution of a game, the method comprising: receiving, via a computer network, a first user input associated with the game; determining a current state of the game based on the first user input; while determining the current state of the game, predicting a next state of the game based on the first user input and one or more predicted user inputs; generating one or more predicted frames according to the next state; determining that a second user input different from the one or more predicted user inputs was received via the computer network, wherein the second user input was received during the frame in which the one or more predictions were generated based on the next state of the game; generating a game state based on the second user input; generating one or more frames based on the game state, wherein said generating the game state based on the second user input and said generating the one or more frames based on the game state are given a higher priority than said generating the one or more predicted frames; as well as The one or more frames generated according to the game state are sent.

2. The method of claim 1, wherein said predicting the next state of the game and said generating the one or more predicted frames are performed prior to receiving said one or more predicted user inputs to reduce said delay in said execution of the game.

3. The method of claim 1, wherein the predicting the next state of the game is based on an output of the current state of the game.

4. The method of claim 1, wherein the method further comprises: Identifying one or more elements of the game state of the game that are not included in the next state, wherein generating the game state includes generating the one or more elements of the game state based on a second user input that is different from the one or more predicted user inputs, wherein the one or more frames are generated based on the one or more elements of the game state, wherein the one or more frames are sent to allow display of one or more composite images, wherein the one or more composite images have the one or more elements of the game state superimposed on the one or more predicted frames.

5. The method of claim 1, further comprising: determining whether to determine a complex physics state when predicting the next state of the game; Providing the task of determining the complex physical state to a node; as well as The task of determining simple physical states remains in the prediction of the next state of the game. 6 . The method of claim 5 , wherein the complex physical state includes a contact point of a collision of two virtual objects in the game, and the simple physical state includes the occurrence of the collision.

7. The method of claim 1, wherein the one or more predicted frames have a simple graphics state, the method further comprising: determining whether to determine a complex graphics state when predicting the next state of the game; providing the task of determining the complex graph state to a node; receiving one or more image frames of the complex graphics state from the node; as well as The one or more frames of the complex graphics state are combined with the one or more predicted frames.

8. The method of claim 1, further comprising: determining whether to determine a complex artificial intelligence state when predicting the next state of the game; Providing the task of determining the complex artificial intelligence state to a node; as well as The task of determining a simple artificial intelligence state remains in the prediction of the next state of the game.

9. The method of claim 1, wherein the one or more predicted frames include image frames or audio frames or both image frames and audio frames.

10. A system for reducing delay in execution of a game, the system comprising: A first node, wherein the first node is configured as: receiving, via a computer network, a first user input associated with the game; determining a current state of the game based on the first user input; a second node, the second node being coupled to the first node, wherein the second node is configured to: receiving, from the first node, the first user input associated with the game; while determining the current state of the game, predicting a next state of the game based on the first user input and one or more predicted user inputs; generating one or more predicted frames according to the next state; determining that a second user input different from the one or more predicted user inputs is received via the computer network, wherein the second user input is received while generating the one or more predicted frames; Wherein one of the first node and the second node is configured as: generating a game state based on the second user input; generating one or more frames based on the game state, wherein said generating the game state based on the second user input and said generating the one or more frames based on the game state are given a higher priority than said generating the one or more predicted frames; as well as The one or more frames generated according to the game state are sent.

11. The system of claim 10, wherein the second node is configured to predict the next state of the game and generate the one or more predicted frames before receiving the one or more predicted user inputs to reduce the delay in the execution of the game.

12. The system of claim 10, wherein the second node is configured to predict the next state of the game based on an output of the current state of the game.

13. A system as described in claim 10, wherein one of the first node and the second node is configured to identify one or more elements of the game state of the game that are not included in the next state, wherein in order to generate the game state, one of the first node and the second node is configured to generate the one or more elements of the game state based on the second user input that is different from the one or more predicted user inputs, wherein the one or more frames are generated based on the one or more elements of the game state, wherein the one or more frames are sent to allow display of one or more composite images, wherein the one or more composite images have the one or more elements of the game state superimposed on the one or more predicted frames.

14. The system of claim 10, further comprising: a third node, the third node coupled to the second node, wherein the second node is configured to: determining whether to determine a complex physics state to predict the next state of the game; providing the task of determining the complex physical state to the third node; as well as The prediction of the next state of the game retains the task of determining simple physical states.

15. The system of claim 14, wherein the complex physical state includes a contact point of a collision of two virtual objects in the game, and the simple physical state includes an occurrence of the collision.

16. The system of claim 10, wherein the one or more predicted frames have a simple graphics state, the system further comprising: a third node, the third node coupled to the second node, wherein the second node is configured to: determining whether to determine a complex graphics state to predict the next state of the game; providing the task of determining the complex graph state to the third node; receiving one or more image frames of the complex graphics state from the third node; as well as The one or more frames of the complex graphics state are combined with the one or more predicted frames.

17. The system of claim 10, further comprising: a third node, the third node coupled to the second node, wherein the second node is configured to: determining whether to determine a complex artificial intelligence state to predict the next state of the game; providing the task of determining the complex artificial intelligence state to the third node; as well as The prediction of the next state of the game retains the task of determining a simple artificial intelligence state.

18. The system of claim 10, wherein the one or more predicted frames include image frames or audio frames or both image frames and audio frames.

19. A computer-readable medium comprising program instructions for reducing delays in the execution of a game, wherein execution of the program instructions by one or more processors of a computer system causes the one or more processors to perform the following operations: receiving, via a computer network, a first user input associated with the game; determining a current state of the game based on the first user input; while determining the current state of the game, predicting a next state of the game based on the first user input and one or more predicted user inputs; generating one or more predicted frames according to the next state; determining that a second user input different from the one or more predicted user inputs was received via the computer network, wherein the second user input was received during the frame in which the one or more predictions were generated based on the next state of the game; generating a game state based on the second user input; generating one or more frames based on the game state, wherein said generating the game state based on the second user input and said generating the one or more frames based on the game state are given a higher priority than said generating the one or more predicted frames; as well as The one or more frames generated according to the game state are sent.

20. The computer-readable medium of claim 19, wherein the operations of predicting the next state of the game and generating the one or more predicted frames are performed prior to receiving the one or more predicted user inputs to reduce the delay in the execution of the game.