VSYNC synchronization and offset between cloud game server and client

By synchronizing and offsetting VSYNC signals between cloud game servers and clients, the system addresses latency and synchronization issues, enhancing the gaming experience through stable frame delivery and reduced latency.

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

Patent Information

Application Number
JP2022520318
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2019-11-26
Filing Date
2020-09-29
Publication Date
2024-10-17
Estimated Expiration
2040-09-29

AI Technical Summary

Technical Problem

Existing cloud gaming systems face challenges in reducing latency and synchronization delays due to variations in clock frequencies between cloud game servers and clients, leading to unstable vertical synchronization (VSYNC) signals, which affect the quality of the gaming experience.

Method used

The system synchronizes and offsets VSYNC signals between cloud game servers and clients to align their frequencies and adjust timing offsets, using methods such as adjusting pixel clocks or raster scan lines to minimize drift and ensure stable frame delivery.

Benefits of technology

This approach reduces latency and stabilizes the gaming experience by ensuring that video frames are decoded and displayed in sync, improving the responsiveness and quality of cloud gaming services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

A method is disclosed that includes, at a server, setting a server VSYNC signal to a server VSYNC frequency, where the server VSYNC signal corresponds to generating video frames during multiple frame periods of the server VSYNC frequency. The method also includes, at a client, setting a client VSYNC signal to the client VSYNC frequency. The method also includes using the server VSYNC signal to transmit compressed video frames from the server to the client over a network, where the compressed video frames are based on the generated video frames. The method also includes, at the client, decoding and displaying the compressed video frames, and, as the client receives the multiple compressed video frames, analyzing the timing of one or more client operations to adjust the relative timing between the server VSYNC signal and the client VSYNC signal.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a streaming system configured to stream content over a network, and more specifically, to a method for streaming content between a cloud gaming server and a client. Latency This paper focuses on synchronizing vertical synchronization (VSYNC) signals between cloud gaming servers and clients to reduce latency. [Background technology]

[0002] In recent years, there has been a continuous push for online services that allow online or cloud gaming in a streaming format between cloud gaming servers and clients connected over a network. The streaming format has become even more popular due to the availability of on-demand game titles, networking capabilities between players for multiplayer games, sharing of assets between players, sharing of instant experiences between players and / or spectators, allowing friends to watch a friend play a video game, allowing friends to join a friend's ongoing gameplay, etc. Unfortunately, the demand has been driven by the lack of network connectivity capabilities and the ability of servers to be responsive enough to render high quality images delivered to clients and the processing performed on the clients. We are approaching our limit. For example, all game activity that is performed on the server is compressed and delivered in low milliseconds for the best user experience. delay It must be sent back to the client in a round trip. delaymay be defined as the overall time from a user's controller input to the display of a video frame at a client, which may include the processing and transmission of control information from the controller to the client, the processing and transmission of control information from the client to the server, the use of that input at the server to generate a video frame responsive to the input, the processing and forwarding of the video frame to an encoding unit (e.g., scanning out), encoding the video frame, sending the encoded video frame back to the client, receiving and decoding the video frame, and any processing or staging of the video frame prior to display. One-way delay is the round trip time that consists of the time from the start of the transfer of a video frame to the encoding unit (e.g., scanout) on the server to the start of the display of the video frame on the client. delay Round-trip and one-way delay Part of this is related to the time it takes for the data stream to travel over the communications network from the client to the server and back again. Another part is related to the processing at the client and server. These include the sophisticated strategies involved in decoding and displaying frames. operation Improvements to the round-trip and one-way traffic between the server and client delay This will significantly reduce the bandwidth usage and provide a better experience for users of cloud gaming services.

[0003] It is against this background that embodiments of the present disclosure have been made. Summary of the Invention

[0004] An embodiment of the present disclosure relates to a streaming system configured to stream content (e.g., games) over a network, and more specifically, to a network between a cloud gaming server and a client. delayThis patent application relates to the synchronization of VSYNC signals between cloud gaming servers and clients, with the aim of reducing latency. In the context of this patent application, "synchronization" should be interpreted as meaning adjusting the signals so that their frequencies match, but their phases may differ. "Offset" should be interpreted as the time delay between the signals, e.g., the time between when one signal reaches its maximum and when the other signal reaches its maximum.

[0005] An embodiment of the present disclosure discloses a method. The method includes, at a server, setting a server VSYNC signal to a server VSYNC frequency, the server VSYNC signal corresponding to generating a plurality of video frames at the server during a plurality of frame periods of the server VSYNC frequency. The method includes, at a client, setting a client VSYNC signal to the client VSYNC frequency. The method includes transmitting a plurality of compressed video frames based on the plurality of video frames from the server to the client over a network using the server VSYNC signal. The method includes, at the client, decoding and displaying the plurality of compressed video frames. The method includes, when the client receives the plurality of compressed video frames, transmitting a plurality of compressed video frames to one or more client devices. operation and adjusting the relative timing between the server VSYNC signal and the client VSYNC signal.

[0006] An embodiment of the present disclosure discloses a method. The method includes generating a plurality of video frames at a server over a plurality of frame periods, the frame periods being approximately equal in size. The method includes setting a client VSYNC signal at a client. The method includes transmitting a plurality of compressed video frames based on the plurality of video frames from the server to the client. The method includes decoding and displaying the plurality of compressed video frames at the client. The method includes transmitting a plurality of compressed video frames to one or more client VSYNC signals when the client receives the plurality of compressed video frames. operationand adjusting the relative timing of the client VSYNC signals to generate a plurality of compressed video frames at the server.

[0007] Another embodiment of the present disclosure discloses a non-transitory computer readable medium storing a computer program for performing a method. The computer readable medium includes program instructions for setting, at a server, a server VSYNC signal to a server VSYNC frequency, the server VSYNC signal corresponding to generating a plurality of video frames at the server during a plurality of frame periods of the server VSYNC frequency. The computer readable medium includes program instructions for setting, at a client, a client VSYNC signal to the client VSYNC frequency. The computer readable medium includes program instructions for transmitting a plurality of compressed video frames based on the plurality of video frames from the server to the client over a network using the server VSYNC signal. The computer readable medium includes program instructions for decoding and displaying the plurality of compressed video frames at the client. The computer readable medium includes program instructions for transmitting, at one or more client VSYNC frequencies, a plurality of compressed video frames based on the plurality of video frames when the client receives the plurality of compressed video frames. operation and adjusting the relative timing between the server VSYNC signal and the client VSYNC signal.

[0008] In another embodiment of the present disclosure, a computer system is disclosed that includes a processor and a memory coupled to the processor, the memory storing instructions that, when executed by the computer system, cause the computer system to perform a method. The method includes setting, at a server, a server VSYNC signal to a server VSYNC frequency, the server VSYNC signal corresponding to generating a plurality of video frames at the server during a plurality of frame periods of the server VSYNC frequency. The method includes setting, at a client, a client VSYNC signal to the client VSYNC frequency. The method includes transmitting a plurality of compressed video frames based on the plurality of video frames from the server to the client over a network using the server VSYNC signal. The method includes decoding and displaying, at the client, the plurality of compressed video frames. The method includes transmitting, at one or more client VSYNC frequencies, a plurality of compressed video frames when the client receives the plurality of compressed video frames. operation and adjusting the relative timing between the server VSYNC signal and the client VSYNC signal.

[0009] Another embodiment of the present disclosure discloses another method. The method includes, at a server, setting a server VSYNC signal to a server VSYNC frequency that defines a plurality of frame periods, the server VSYNC signal corresponding to generation of a plurality of video frames at the server during the plurality of frame periods. The method includes, at a client, setting a client VSYNC signal to the client VSYNC frequency. The method includes transmitting a plurality of compressed video frames based on the plurality of video frames from the server to the client over a network using the server VSYNC signal. The method includes, at the client, decoding and displaying the plurality of compressed video frames. The method includes, when the client receives the plurality of compressed video frames, transmitting a plurality of compressed video frames to one or more of the client VSYNC frequencies. operation This includes analyzing the timing of the frame buffering to set the amount of frame buffering to be used by the client.

[0010] Another embodiment of the present disclosure discloses a non-transitory computer-readable medium storing a computer program for performing a method. The computer-readable medium includes program instructions for setting, at a server, a server VSYNC signal to a server VSYNC frequency that defines a plurality of frame periods, the server VSYNC signal corresponding to generation of a plurality of video frames at the server during the plurality of frame periods. The computer-readable medium includes program instructions for setting, at a client, a client VSYNC signal to the client VSYNC frequency. The computer-readable medium includes program instructions for transmitting, over a network, a plurality of compressed video frames based on the plurality of video frames from the server to the client using the server VSYNC signal. The computer-readable medium includes program instructions for decoding and displaying the plurality of compressed video frames at the client ... to one or more client devices when the client receives the plurality of compressed video frames. operation and setting the amount of frame buffering to be used by the client.

[0011] In another embodiment of the present disclosure, a computer system is disclosed that includes a processor and a memory coupled to the processor, the memory storing instructions that, when executed by the computer system, cause the computer system to perform a method. The method includes setting, at a server, a server VSYNC signal to a server VSYNC frequency that defines a plurality of frame periods, the server VSYNC signal corresponding to generation of a plurality of video frames at the server during the plurality of frame periods. The method includes setting, at a client, a client VSYNC signal to the client VSYNC frequency. The method includes transmitting, over a network, a plurality of compressed video frames based on the plurality of video frames from the server to the client using the server VSYNC signal. The method includes, at the client, decoding and displaying the plurality of compressed video frames. The method includes transmitting, at the client, a plurality of compressed video frames to one or more client VSYNC frequencies when the client receives the plurality of compressed video frames. operation This includes analyzing the timing of the frame buffering to set the amount of frame buffering to be used by the client.

[0012] Another embodiment of the present disclosure discloses another method, the method including setting a plurality of VSYNC signals at a plurality of devices to a plurality of VSYNC frequencies, where corresponding device VSYNC signals of corresponding devices are set to the corresponding device VSYNC frequencies, the method including transmitting a plurality of signals between the plurality of devices, which are analyzed and used to adjust relative timing between corresponding device VSYNC signals of at least two devices.

[0013] Another embodiment of the present disclosure discloses a non-transitory computer readable medium storing a computer program for performing a method. The computer readable medium includes program instructions for setting a plurality of VSYNC signals at a plurality of devices to a plurality of VSYNC frequencies, where corresponding device VSYNC signals of corresponding devices are set to corresponding device VSYNC frequencies. The computer readable medium includes program instructions for transmitting a plurality of signals between a plurality of devices, where the program instructions are analyzed and used to adjust relative timing between corresponding device VSYNC signals of at least two devices.

[0014] In another embodiment of the present disclosure, a computer system is disclosed that includes a processor and a memory coupled to the processor, the memory storing instructions that, when executed by the computer system, cause the computer system to perform a method, the method including setting a plurality of VSYNC signals to a plurality of VSYNC frequencies at a plurality of devices, where corresponding device VSYNC signals of corresponding devices are set to the corresponding device VSYNC frequencies, the method including transmitting a plurality of signals between the plurality of devices, which are analyzed and used to adjust relative timing between corresponding device VSYNC signals of at least two devices.

[0015] Another embodiment of the present disclosure discloses another method. The method includes receiving an encoded video frame at a client, and a server executing an application to generate a rendered video frame that is then encoded at an encoder at the server as an encoded video frame, the encoded video frame including one or more compressed encoded slices. The method includes decoding the one or more encoded slices at a decoder at the client to generate one or more decoded slices. The method includes rendering the one or more decoded slices for display at the client. The method includes commencing display of the one or more decoded slices that are rendered prior to complete reception of the one or more encoded slices at the client.

[0016] Another embodiment of the present disclosure discloses a non-transitory computer-readable medium storing a computer program for performing a method. The computer-readable medium includes program instructions for receiving encoded video frames at a client, where a server executes an application to generate rendered video frames that are then encoded at an encoder at the server as encoded video frames, the encoded video frames having one or more compressed encoded slices. The computer-readable medium includes program instructions for decoding the one or more encoded slices at a decoder at the client to generate one or more decoded slices. The computer-readable medium includes program instructions for rendering the one or more decoded slices for display at the client. The computer-readable medium includes program instructions for commencing display of the one or more rendered decoded slices prior to complete reception of the one or more encoded slices at the client.

[0017] In another embodiment of the present disclosure, a computer system is disclosed that includes a processor and a memory coupled to the processor, the memory storing instructions that, when executed by the computer system, cause the computer system to perform a method. The method includes receiving encoded video frames at a client, and a server executing an application to generate rendered video frames that are then encoded at an encoder at the server as encoded video frames, the encoded video frames including one or more compressed encoded slices. The method includes decoding the one or more encoded slices at a decoder at the client to generate one or more decoded slices. The method includes rendering the one or more decoded slices for display at the client. The method includes commencing display of the rendered one or more decoded slices prior to complete reception of the one or more encoded slices at the client.

[0018] Other aspects of the present disclosure will become apparent from the following detailed description, taken in conjunction with the accompanying drawings, illustrating by way of example the principles of the present disclosure.

[0019] The present disclosure is best understood by reference to the following detailed description taken in conjunction with the accompanying drawing figures. [Brief description of the drawings]

[0020] [Figure 1] 1A and 1B are diagrams of a VSYNC signal at the start of a frame period and a frequency of the VSYNC signal, respectively, according to one embodiment of the present disclosure. [Figure 2A] FIG. 1 is a diagram of a system for providing games over a network between one or more cloud gaming servers and one or more client devices in various configurations according to one embodiment of the disclosure, where VSYNC signals can be synchronized and offset to reduce one-way latency. [Figure 2B]FIG. 1 is a diagram for providing gaming between two or more peer devices according to one embodiment of the present disclosure, where the VSYNC signals can be synchronized and offset to achieve optimal timing of reception of controller and other information between the devices. [Figure 2C] 1 illustrates various network configurations that benefit from proper synchronization and offset of VSYNC signals between source and target devices, according to one embodiment of the present disclosure. [Figure 2D] 1 illustrates a multi-tenancy configuration between a cloud gaming server and multiple clients that benefits from proper synchronization and offset of VSYNC signals between source and target devices, according to one embodiment of the present disclosure. [Diagram 3] 1 illustrates the variation in one-way delay between a cloud gaming server and a client due to clock drift when streaming video frames generated from a video game running on the server, according to one embodiment of the present disclosure. [Figure 4] 1 illustrates a network configuration including a cloud gaming server and clients when streaming video frames generated from a video game running on the server according to one embodiment of the present disclosure, where the VSYNC signals between the server and clients are synchronized and offset to allow overlap of operations at the server and clients and to reduce one-way latency between the server and clients. [Figure 5A] FIG. 1 illustrates possible variations in the timing of completion of decoding by a client relative to the desired display time specified by the server, and variations in the time and network delays taken by client and server operations, due to drift between the clocks at the cloud gaming server and client, according to one embodiment of the present disclosure. [Figure 5B] Included is a histogram showing the timing of completion of decoding by a client relative to a desired display time specified by the server, according to one embodiment of the present disclosure, showing an increase in measured decoding time in subsequent histograms due to drift between the clocks at the cloud gaming server and the client, respectively. [Figure 5C] According to one embodiment of the present disclosure, a histogram showing the timing of completion of decoding by a client relative to a desired display time specified by the server is included, showing consistent measurements of decoding time in subsequent histograms after compensation for measured drift between the clocks at the cloud gaming server and the client. [Figure 6A] 1 is a flow diagram illustrating a method for coordinating VSYNC signals between a cloud gaming server and a client for the purpose of reducing one-way delay, according to one embodiment of the present disclosure. [Figure 6B] FIG. 1 is a flow diagram illustrating a method for aligning VSYNC signals when performing VSYNC signal adjustment between a cloud gaming server and a client for the purpose of reducing one-way latency, including constructing a histogram that provides a distribution of timing of completion of decoding by a client relative to a desired display time specified by the server, in accordance with one embodiment of the present disclosure, where the histogram is configured to determine an adjustment of the offset between the VSYNC signals at the server and the client, and the histogram is also configured to determine drift between the server VSYNC signal and the client VSYNC signal. [Figure 6C] A flow diagram illustrating another method for synchronizing VSYNC signals when performing VSYNC signal coordination between a cloud gaming server and a client for the purpose of reducing one-way delay, according to one embodiment of the present disclosure. [Figure 7] 1 is a flow diagram illustrating a method for coordinating a client VSYNC signal in relation to generation of compressed video frames at a server, where the video frames are generated during similarly sized frame periods, according to one embodiment of the disclosure. [Figure 8A] FIG. 1 illustrates the construction of a histogram that provides a distribution of timing of completion of decoding by a client relative to a desired display time specified by a server, in accordance with one embodiment of the present disclosure, where the histogram is constructed for determining an adjustment of the offset between the VSYNC signals at the server and the client. [Figure 8B]FIG. 1 is a diagram of a histogram providing a distribution of timing of completion of decoding by a client relative to a desired display time specified by a server, according to one embodiment of the present disclosure, the histogram being constructed for determining an adjustment of the offset between the VSYNC signals at the server and the client. [Figure 9] 1 is a flow diagram illustrating a method for constructing a histogram that provides a distribution of timing of completion of decoding by a client relative to a desired display time specified by a server, the histogram being constructed for determining the amount of required buffering of decoded video frames at a client. [Figure 10] 1 is a flow diagram illustrating a method for adjusting the relative timing between VSYNC signals between two or more devices, according to one embodiment of the present disclosure. [Figure 11A] 1 illustrates overlapping receipt, decoding, and rendering of decompressed video frames for display at a client, according to one embodiment of the present disclosure. [Figure 11B] 1 is a flow diagram illustrating a method of cloud gaming according to one embodiment of the present disclosure, in which encoded frames are received at a client from a server, decoded and rendered for display, and in which the decoding and display of video frames may be overlapped to reduce one-way latency. [Figure 12] 1 illustrates components of an exemplary device that can be used to implement aspects of various embodiments of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0021] Although the following detailed description contains many specific details for purposes of illustration, those skilled in the art will appreciate that many variations and modifications to the following details are within the scope of the disclosure. Accordingly, the aspects of the disclosure described below are presented without loss of generality to, and without imposing limitations on, the claims that follow this description.

[0022] Generally, various embodiments of the present disclosure address the need for a method and apparatus for streaming media content (e.g., streaming audio and video from a video game) between a source device and a target device. delay and / or delay In particular, in some embodiments of the present disclosure, the VSYNC signals between the cloud gaming server and the client are synchronized and offset. Due to clock differences at the cloud gaming server and the client, the VSYNC signals of the cloud gaming server and the client drift relative to each other. This drift can be reduced by up to 100% of the maximum frame period. delay For example, if a game is running at 60Hz for video frame generation, it will take an additional 0-16.7ms which will vary over time. delay By analyzing the worst-case or near-worst-case arrival times of compressed video frames at the client, the ideal VSYNC relationship between the cloud gaming server and the client can be determined. This ideal relationship can be established by adjusting the VSYNC frequency on either the cloud gaming server or the client, so that delay This can eliminate the instability. In another embodiment of the present disclosure, the VSYNC signals between game devices (e.g., game consoles) are synchronized and offset to provide an ideal VSYNC relationship between peer devices and minimal unidirectional interference. delay In particular, due to clock differences between peer devices (such as game consoles) in face-to-face games, their VSYNC signals drift relative to each other, resulting in up to a frame period of delay For example, if a game is running at 60Hz for video frame generation, it will take an additional 0-16.7ms which varies over time. delay By exchanging timestamp information, the ideal VSYNC relationship between the peer devices can be determined. This ideal relationship can be established by adjusting the VSYNC frequency on one of the peer devices, so delay This can eliminate the instability. In yet another embodiment of the present disclosure, the dynamic client buffering and selected use of video frames received at the client from the cloud gaming server includes: delay . Knowledge of the server-side timing of the generation of video frames allows the client to determine the ideal display time for each frame. . Frame buffering (single buffering, double buffering, triple buffering, etc.) can be dynamically adjusted based on the variability of arrival times of compressed video frames to the client. delay such as choosing to skip displaying arrival frames. delay In other embodiments of the present disclosure, one-way coordination between the cloud gaming server and the client may also occur. delay may be reduced by overlapping the decoding of compressed video frames and their display. A cloud gaming client receives compressed video frames from a cloud gaming server and decodes the compressed video frames. By starting to display a video frame before the frame is fully received or decoded at the client, one-way delay The timing of transmission for display must predict the remaining time required to receive and decode a compressed video frame.

[0023] In particular, there may be overhead between the server and the client due to the additional time required to generate a complex frame (e.g., a scene change) at the server, the increased time to encode / compress a complex frame at the server, the variable communication paths through the network, and the increased time to decode a complex frame at the client. delay This can cause instability in the server and client clocks. delay This can cause the VSYNC signals on the server and client to drift. delayThe instability can be removed by adjusting either the server VSYNC signal or the client VSYNC signal to bring the server VSYNC signal and the client VSYNC signal back into synchronized alignment (eg, operating at the same frequency). In another embodiment, adjusting the timing offset between the server VSYNC signal and the client VSYNC signal is to achieve a near worst case scenario of receiving and displaying a video frame at the client. delay By considering the condition of delay In yet another embodiment, the client-side dynamic buffering reduces delay Provide the client with more display buffers when delay By using less of the display buffer when delay In another embodiment, a unidirectional delay can be further reduced by overlapping the decoding and display of video frames at the client.

[0024] With the above general understanding of the various embodiments, example embodiments will now be described in detail with reference to the various drawing figures.

[0025] Throughout this specification, references to a "game," "video game," or a "game application" or "application" are meant to represent any type of interactive application that is directed through the execution of input commands. By way of example only, interactive applications include applications for gaming, word processing, video processing, video game processing, and the like. Additionally, the terms introduced above are interchangeable.

[0026] Cloud gaming involves running a video game on a server to generate game-rendered video frames, which are then sent to clients for display. operationThe timing of each may be associated with a vertical synchronization (VSYNC) parameter. If the VSYNC signal is properly synchronized and / or offset between the server and / or client, the operation (e.g., generation and transmission of video frames over one or more frame periods) is performed on the client operation (e.g., displaying video frames on a display at a display frame or refresh rate corresponding to the frame period). In particular, a server VSYNC signal generated at the server and a client VSYNC signal generated at the client may be used to synchronize operations at the server and client. That is, when the server and client VSYNC signals are synchronized and / or offset, the server generates and sends video frames in sync with how the client will display those video frames.

[0027] VSYNC signaling and vertical blanking intervals (VBIs) are incorporated to generate and display video frames when streaming media content between the server and the client. For example, the server attempts to generate game-rendered video frames at one or more frame periods defined by the corresponding server VSYNC signal (e.g., if the frame period is 16.7 ms, generating a video frame every frame period results in 60 Hz operation, while generating one video frame every two frame periods results in 30 Hz operation), and then encodes and transmits the video frames to the client. At the client, the received encoded video frames are decoded and displayed, and the client displays each video frame rendered for display beginning with the corresponding client VSYNC.

[0028] For purposes of illustration, FIG. 1A shows how a VSYNC signal 111 may indicate the start of a frame period, where various operations may be performed during the corresponding frame period at the server and / or client. When streaming media content, the server may use a server VSYNC signal for generating and encoding video frames, and the client may use a client VSYNC signal for displaying the video frames. The VSYNC signal 111 is generated at a defined frequency corresponding to a defined frame period 110, as shown in FIG. 1B. Additionally, the VBI 105 defines the period from when the last raster line was drawn to the display in the previous frame period until the first raster line (e.g., top) is drawn to the display. As shown, after the VBI 105, the video frame rendered for display is displayed via raster scan line 106 (e.g., raster line by raster line from left to right).

[0029] Additionally, various embodiments of the present disclosure may provide one-way streaming between a source device and a target device, such as when streaming media content (e.g., video game content). delay and / or delay For illustrative purposes only, a one-way delay and / or delay Various embodiments for reducing the instability of the server and client network configurations have been described. delay and / or delay It will be appreciated that the various techniques disclosed for reducing instability may be implemented in other network configurations and / or on peer-to-peer networks, such as those illustrated in FIGS. 2A-2D. For example, one-way delay and / or delayThe various embodiments disclosed to reduce instability may be implemented between one or more server and client devices in a variety of configurations (e.g., a server and a client, a server and a server, a server and multiple clients, a server and multiple servers, a client and a client, a client and multiple clients, etc.).

[0030] FIG. 2A is a diagram of a system 200A for providing games over a network 250 between one or more cloud gaming networks 290 and / or a server 260 and one or more client devices 210 in various configurations, in accordance with embodiments of the disclosure, where the server and client VSYNC signals can be synchronized and offset, and / or where dynamic buffering is performed on the client, and / or where decoding and display at the client is performed. operation to duplicate the one-way communication between the server 260 and the client 210. delay In particular, the system 200A provides games over a cloud gaming network 290, and according to one embodiment of the present disclosure, the games are executed remotely from the client devices 210 (e.g., thin clients) of the corresponding users who are playing the games. The system 200A can provide control of the games to one or more users who play one or more games over the cloud gaming network 290 over the network 250, either in single player mode or multiplayer mode. In some embodiments, the cloud gaming network 290 can include multiple virtual machines (VMs) executing on a hypervisor of a host machine, where one or more virtual machines are configured to execute a game processor module that utilizes hardware resources available to the hypervisor of the host. The network 250 can include one or more communication technologies. In some embodiments, the network 250 can include a fifth generation (5G) network technology having an advanced wireless communication system.

[0031] In some embodiments, communication may be facilitated using wireless technology. Such technologies may include, for example, 5G wireless communication technology. 5G is the fifth generation of cellular network technology. 5G networks are digital cellular networks, with service areas covered by providers divided into small geographic areas called cells. Analog signals representing sound and images are digitized by the telephone, converted by an analog-to-digital converter, and transmitted as a stream of bits. All 5G wireless devices within a cell communicate over the air with a local antenna array and a low-power automated transceiver (transmitter-receiver) within the cell via a frequency channel assigned by the transceiver from a pool of frequencies reused by other cells. The local antennas are connected to the telephone network and the Internet by high-bandwidth optical fiber or wireless backhaul connections. As with other cellular networks, mobile devices moving from one cell to another are automatically transferred to the new cell. It should be understood that 5G networks are just one example type of communication network, and embodiments of the present disclosure may utilize previous generations of wireless or wired communications, as well as later generations of wired or wireless technologies following 5G.

[0032] As shown, the game network 290 includes a game server 260 that provides access to multiple video games. The game server 260 may be any type of server computing device available in the cloud and may be configured as one or more virtual machines running on one or more hosts. For example, the game server 260 may manage virtual machines supporting game processors that instantiate instances of users' games. Thus, the game server 260's multiple game processors associated with the multiple virtual machines are configured to run multiple instances of one or more games associated with the gameplay of the multiple users. In that way, the back-end server support provides streaming of gameplay media (e.g., video, audio, etc.) of multiple game applications to a corresponding multiple users. That is, the game servers 260 are configured to stream data (e.g., rendered images and / or frames of corresponding game play) back to the corresponding client devices 210 over the network 250. In that way, computationally complex game applications can continue to run on the backend servers in response to controller inputs received and forwarded by the client devices 210. Each server can render the images and / or frames and then encode (e.g., compress) them and stream them to the corresponding client devices for display.

[0033] For example, multiple users may access the cloud gaming network 290 via the communication network 250 using corresponding client devices 210 configured to receive streaming media. In one embodiment, the client devices 210 may be configured as thin clients that interface with a backend server (e.g., a game server 260 of the cloud gaming network 290) configured to provide computing functionality (e.g., including a game title processing engine 211). In another embodiment, the client devices 210 may be configured with a game title processing engine and game logic for at least some local processing of a video game, and may be further utilized to receive streaming content generated by the video game executed on the backend server, or for other content provided by the backend server support. In the case of local processing, the game title processing engine includes basic processor-based functionality for executing the video game and services related to the video game. The game logic is stored on the local client device 210 and is used to execute the video game.

[0034] In particular, a client device 210 of a corresponding user (not shown) is configured to request access to a game via a communications network 250, such as the Internet, and to render display images generated by the video game executed by a game server 260, where encoded images are delivered to the client device 210 for display in association with the corresponding user. For example, a user may interact through the client device 210 with an instance of a video game executing on a game processor of the game server 260. More specifically, the instance of the video game is executed by a game production processing engine 211. Corresponding game logic (e.g., executable code) 215 implementing the video game is stored and accessible via a data store (not shown) and is used to execute the video game. The game title processing engine 211 may support multiple video games using multiple game logics, each selectable by a user.

[0035] For example, client device 210 is configured to interact with a game title processing engine 211 associated with a corresponding user's game play, such as via input commands used to drive the game play. In particular, client device 210 may receive input from various types of input devices, such as game controllers, tablet computers, keyboards, gestures captured by video cameras, mice, touch pads, etc. Client device 210 may be any type of computing device having at least a memory and a processor module, and may be connected to game server 260 via network 250. The backend game title processing engine 211 is configured to generate rendered images, which are delivered over the network 250 for display on a corresponding display associated with the client device 210. For example, via a cloud-based service, the game rendered images may be delivered by an instance of the corresponding game executing on the game execution engine 211 of the game server 260. That is, the client device 210 is configured to receive encoded images (e.g., encoded from game rendered images generated through execution of a video game) and display the rendered images for the display 11. In one embodiment, the display 11 includes an HMD (e.g., displaying VR content). In some embodiments, the rendered images may be streamed wirelessly or wired to a smartphone or tablet directly from the cloud-based service or via the client device 210 (e.g., PlayStation® Remote Play).

[0036] In one embodiment, the game server 260 and / or the game title processing engine 211 include basic processor-based functionality for executing services related to games and game applications. For example, the processor-based functionality may include 2D or 3D rendering, physics, physics simulation, scripting, audio, animation, graphics processing, lighting, shading, rasterization, ray tracing, shadowing, culling, transformation, artificial intelligence, etc. Additionally, the game application services may include memory management, multi-thread management, quality of service (QoS), bandwidth testing, social networking, managing social friends, communicating with social network friends, communication channels, texting, instant messaging, chat support, etc.

[0037] In one embodiment, the cloud gaming network 290 is a distributed game server system and / or architecture. Specifically, a distributed game engine that executes game logic is configured as a corresponding instance of a corresponding game. In general, a distributed game engine takes each function of the game engine and distributes them to be executed by multiple processing entities. Individual functions may be further distributed across one or more processing entities. The processing entities may be configured in various configurations, such as physical hardware and / or virtual components or virtual machines and / or virtual containers. A container is different from a virtual machine because it virtualizes an instance of a game application running on a virtualized operating system. The processing entities may utilize and / or rely on servers and their underlying hardware on one or more servers (computing nodes) of the cloud gaming network 290, which may be located on one or more racks. Coordination, allocation, and management of the execution of their functions for the various processing entities is performed by a distributed synchronization layer. In such a way, the execution of their functions can be controlled by the distributed synchronization layer to generate media (e.g., video frames, audio, etc.) for the game application in response to controller inputs by the player. The distributed synchronization layer can efficiently execute their functions across the distributed processing entities (e.g., via load balancing) such that critical game engine components / functions are distributed and restructured for more efficient processing.

[0038] The game title processing engine 211 includes a group of central processing units (CPUs) and graphics processing units (GPUs) configured to perform multi-tenancy GPU functions. In another embodiment, multiple GPU devices are combined to perform graphics processing for a single application running on a corresponding CPU.

[0039] 2B is a diagram for providing gaming between two or more peer devices, where, according to one embodiment of the present disclosure, the VSYNC signals can be synchronized and offset to achieve optimal timing of receipt of controller and other information between the devices. For example, a face-to-face game can be performed using two or more peer devices connected directly via a network 250 or via peer-to-peer communications (e.g., Bluetooth, local area networking, etc.).

[0040] As shown, a game is running locally on each of the client devices 210 (e.g., game consoles) of corresponding users playing the video game, and the client devices 210 communicate via peer-to-peer networking. For example, an instance of the video game is executed by a game title processing engine 211 of a corresponding client device 210. Game logic 215 (e.g., executable code) that implements the video game is stored on the corresponding client device 210 and used to run the game. By way of illustration, the game logic 215 may be distributed to the corresponding client device 210 via portable media (e.g., optical media) or over a network (e.g., downloaded from a game provider via the Internet).

[0041] In one embodiment, the game title processing engine 211 of the corresponding client device 210 includes basic processor-based functionality for executing services related to games and game applications. For example, the processor-based functionality may include 2D or 3D rendering, physics, physics simulation, scripting, audio, animation, graphics processing, lighting, shading, rasterization, ray tracing, shadowing, culling, transformation, artificial intelligence, etc. Additionally, the game application services may include memory management, multi-thread management, quality of service (QoS), bandwidth testing, social networking, managing social friends, communicating with social network friends, communication channels, texting, instant messaging, chat support, etc.

[0042] The client device 210 can receive input from various types of input devices, such as a game controller, a tablet computer, a keyboard, gestures captured by a video camera, a mouse, a touchpad, etc. The client device 210 can be any type of computing device having at least a memory and a processor module, configured to generate rendered images executed by a game title processing engine 211 and display the rendered images on a display (e.g., display 11, or display 11 including a head mounted display - HMD, etc.). For example, the rendered images can be associated with an instance of a game running locally on the client device 210 to implement a corresponding user's gameplay, such as through input commands used to drive the gameplay. Some examples of the client device 210 include a personal computer (PC), a game console, a home theater device, a general purpose computer, a mobile computing device, a tablet, a phone, or any other type of computing device capable of running an instance of a game.

[0043] FIG. 2C illustrates various network configurations that benefit from proper synchronization and offsetting of VSYNC signals between source and target devices, in accordance with an embodiment of the present disclosure, including the configurations illustrated in FIGS. 2A-2B. In particular, the various network configurations include those that provide one-way synchronization between the server and the client. delay and / or delay To reduce the fluctuation of the frequency of the VSYNC signals, benefits can be obtained from proper alignment of the frequency of the server and the client VSYNC signals and timing offset of the server and the client VSYNC signals. For example, one network device configuration includes a cloud gaming server (e.g., source) to client (target) configuration. In one embodiment, the client may include a web RTC client configured to provide audio and video communication within a web browser. Another network configuration includes a client (e.g., source) to server (target) configuration. Yet another network configuration includes a server (e.g., source) to server (e.g., target) configuration. Another network device configuration includes a client (e.g., source) to client (target) configuration, where each client may be, for example, a game console for providing face-to-face gaming.

[0044] In particular, alignment of the VSYNC signals includes synchronizing the frequencies of the server VSYNC signal and the client VSYNC signal in one direction for the purpose of eliminating drift and / or maintaining an ideal relationship between the client VSYNC signal and the server VSYNC signal. delay and / or delay To achieve proper alignment, in one embodiment, the server VSYNC signal may be adjusted to enforce proper alignment between the server 260 and client 210 pair. In another embodiment, the client VSYNC signal can be adjusted to achieve proper alignment between a server 260 and client 210 pair. When the client and server VSYNC signals are aligned, the server VSYNC signal and the client VSYNC signal occur at substantially the same frequency and are offset from each other by a timing offset. The timing offset can be adjusted at any time. In another embodiment, alignment of the VSYNC signals may also include synchronizing the frequency of the VSYNC of two clients, adjusting the timing offset between their VSYNC signals to eliminate drift, and / or achieve optimally timed receipt of controller and other information, and both VSYNC signals may be adjusted to achieve this alignment. In yet another embodiment, alignment may also synchronize the frequency of VSYNC of multiple servers and may include synchronizing the frequency of the server and client VSYNC signals and adjusting the timing offset between the client and server VSYNC signals, for example in the case of face-to-face cloud gaming. In server-to-client and client-to-client configurations, alignment may include both synchronizing the frequency between the server and client VSYNC signals and providing an appropriate timing offset between the server and client VSYNC signals. In server-to-server configurations, alignment may include synchronizing the frequency between the server and client VSYNC signals without setting a timing offset.

[0045] 2D illustrates a multi-tenancy configuration between a cloud gaming server 260 and one or more clients 210 that benefits from proper synchronization and offset of VSYNC signals between source and target devices, according to one embodiment of the disclosure. In a server-to-client configuration, coordination may include both synchronizing the frequency between the server VSYNC signal and the client VSYNC signal, and providing a proper timing offset between the server VSYNC signal and the client VSYNC signal. In a multi-tenancy configuration, in one embodiment, the client VSYNC signal is coordinated at each client 210 to implement proper alignment between the server 260 and client 210 pair.

[0046] For example, the graphics subsystem may be configured to perform multi-tenancy GPU functionality, where in one embodiment, one graphics subsystem may implement the graphics and / or rendering pipeline for multiple games, i.e., the graphics subsystem is shared between multiple games being executed. In particular, the game title processing engine may include a CPU and GPU group configured to perform multi-tenancy GPU functionality, where in one embodiment, one CPU and GPU group may implement the graphics and / or rendering pipeline for multiple games, i.e., the CPU and GPU group is shared between multiple games being executed. The CPU and GPU group may be configured as one or more processing devices. In another embodiment, multiple GPU devices are combined to perform graphics processing for a single application running on a corresponding CPU.

[0047] 3 shows a typical process of running a video game on a server to generate game-rendered video frames and sending those video frames to a client for display. operationEach VSYNC signal is executed within a frame period defined by the respective VSYNC signal. For example, the server 260 attempts to generate a game-rendered video frame at 301 in one or more frame periods as defined by a corresponding server VSYNC signal 311. A video frame may be operation It is generated by the game in response to either control information delivered from the input device at 350 (e.g., a user's input command) or game logic that is not driven by control information. Transmission jitter 351 can be present when transmitting control information to the server 260, and jitter 351 may be present due to network congestion from the client to the server. delay Measure the variation of (e.g., when sending an input command). As shown, the thick arrow indicates the current delay in sending the control information to server 260, but due to jitter there may be a range of arrival times for the control information at server 260 (e.g., the range enclosed by the dotted arrow). At flip time 309, the GPU arrives at a flip command indicating that the corresponding video frame has been fully generated and placed in the frame buffer of server 260. Server 260 then performs scan-out / scan-in (SCAN) for that video frame over the subsequent frame period defined by server VSYNC signal 311. operation 302, where the scanout may be aligned with the VSYNC signal 311) (VBI is omitted for clarity). Then the video frame is encoded ( operation 303) (e.g., encoding may start after the occurrence of the VSYNC signal 311 and the end of encoding may not be aligned with the VSYNC signal) to the client 210 ( operation 304, the transmission may not be aligned with the VSYNC signal 311). At the client 210, the encoded video frames are received ( operation 305, which may not be aligned with the client VSYNC signal 312) and decoded ( operation306, the decode may not be aligned with the client VSYNC signal 312), buffered, and displayed. operation 307, the start of display may be aligned with the client's VSYNC signal 312. In particular, the client 210 displays each video frame that is rendered for display beginning with the corresponding occurrence of the client's VSYNC signal 312.

[0048] One-way delay 315 indicates the time from the start of the transfer of the video frame to the encoding unit at the server (e.g., scanout 302) to the start of the display of the video frame at the client 307. delay That is, one-way delay is the time from the server scanout to the client display, taking into account client buffering. For each frame, delay 303 and transmission 304, network transmission between the server 260 and the client 210 with attendant jitter 352, and reception 305 at the client. operation As shown, the straight thick arrows indicate the current delay 3, however, due to jitter 352 there may be a range of arrival times for the video frames at the client 210 (eg, the range bounded by the dashed arrows). For a good playing experience, one-way delay Conventionally, buffering 320 is performed because delay The display of individual frames with fewer frames (e.g., from the start of scanout 302 to the completion of decode 306) is delayed by a small frame period. This means that in the event of network instability or unpredictable encoding / decoding times, one-way delay Additional buffering is required to keep

[0049] According to one embodiment of the present disclosure, one-way communication between a cloud gaming server and a client delay may vary due to clock drift when streaming video frames generated from a video game running on the server. That is, due to differences in the frequencies of the server VSYNC signal 311 and the client VSYNC signal 312, the client VSYNC signal may drift with respect to the frames arriving from the server 260. The drift may be due to slight differences in the crystal oscillators used in the server and client clocks. Furthermore, embodiments of the present disclosure provide one-way synchronization by performing one or more synchronizations and offsets of the VSYNC signal for alignment between the server and the client, by providing dynamic buffering at the client, and by overlapping the decoding and display of video frames at the client. delay Shorten.

[0050] FIG. 4 illustrates the flow of data through a network configuration including a highly optimized cloud gaming server 260 and a highly optimized client 210 when streaming video frames generated from a video game running on the server, in accordance with an embodiment of the present disclosure. operation and the client operation By overlapping delay Reduces the amount of unidirectional delay Not only does it reduce the one-way delay The variation in is also reduced. In particular, Figure 4 shows the desired alignment between the server and client VSYNC signals. In one embodiment, the adjustment of the server VSYNC signal 311 is performed to obtain proper alignment between the server and client VSYNC signals, such as in a server and client network configuration. In another embodiment, the adjustment of the client VSYNC signal 312 is performed to obtain proper alignment between the server and client VSYNC signals, such as in a multi-tenant server to multi-client network configuration. For purposes of illustration, the adjustment of the server VSYNC signal 311 is depicted in FIG. 4 for the purpose of synchronizing the frequency of the server and client VSYNC signals and / or adjusting the timing offset between corresponding client and server VSYNC signals, although it will be understood that the client VSYNC signal 312 can also be used for adjustment.

[0051] As shown, FIG. 4 illustrates an improved process for running a video game on a server to generate rendered video frames and sending those video frames to a client for display in an embodiment of the present disclosure. The process is illustrated with respect to the generation and display of a single video frame on the server and the client. In particular, the server generates 401 a game-rendered video frame. For example, the server 260 includes a CPU (e.g., game title processing engine 211) configured to run the game. The CPU generates one or more draw calls for the video frame, where the draw calls include commands that are placed in a command buffer for execution by a corresponding GPU of the server 260 in a graphics pipeline. The graphics pipeline can include one or more shader programs for vertices of objects in a scene to generate texture values ​​that are rendered into the video frame for display. In this case, operation are executed in parallel across the GPU for efficiency. At flip time 409, the GPU reaches a flip command in the command buffer indicating that the corresponding video frame has been completely generated and / or rendered and placed in the frame buffer of server 260.

[0052] At 402, the server performs a scanout of the game-rendered video frame to the encoder. In particular, the scanout is performed scanline by scanline or in groups of consecutive scanlines, where a scanline refers to, for example, a single horizontal line of the display from edge of the screen to edge of the screen. These scanlines or groups of consecutive scanlines may also be referred to as slices, and are referred to herein as screen slices. In particular, scanout 402 may include several processes that modify the game-rendered frame, including overlaying it with another frame buffer or shrinking it to surround it with information from another frame buffer. During scanout 402, the modified video frame is then scanned to the encoder for compression. In one embodiment, scanout 402 is performed at the occurrence 311a of the VSYNC signal 311. In other embodiments, scanout 402 may be performed before the occurrence of the VSYNC signal 311, such as at flip time 409.

[0053] At 403, the game rendered video frame (possibly modified) is encoded in an encoder slice by encoder slice to generate one or more encoded slices, where the encoded slices are independent of scanline or screen slices, such that the encoder generates one or more encoded (e.g., compressed) slices. In one embodiment, the encoding process begins before the process of scanout 402 of the corresponding video frame is completely finished. Furthermore, the start and / or end of encoding 403 may or may not be aligned with the server VSYNC signal 311. The boundaries of the encoded slices are not limited to a single scanline, but may consist of a single scanline or multiple scanlines. Furthermore, the end of an encoded slice and / or the start of the next encoder slice do not necessarily occur at the edge of the display screen (e.g., they may occur anywhere in the middle of the screen or the middle of a scanline), and the encoded slices do not have to traverse completely from one end of the display screen to the other. As shown, one or more encoded slices may be compressed and / or encoded, including a compressed "encoded slice A" with hash marks.

[0054] At 404, the encoded video frame is transmitted from the server to the client, where the transmission may be on a per-encoded slice basis, with each encoded slice being a compressed encoder slice. In one embodiment, the transmission process 404 begins before the encoding process 403 of the corresponding video frame is fully finished. Furthermore, the start and / or end of the transmission 404 may or may not be aligned with the server VSYNC signal 311. As shown, compressed encoded slice A is transmitted to the client independently of the other compressed encoder slices of the rendered video frame. The encoder slices may be transmitted one at a time or in parallel.

[0055] At 405, the client receives the compressed video frames for each again encoded slice. Additionally, the start and / or end of reception 405 may or may not be aligned with the client VSYNC signal 312. As shown, compressed encoded slice A is received by the client. Transmission jitter 452 may exist between the server 260 and the client 210, and the jitter 452 may be due to the network delay The jitter value measures the variation in the amount of jitter that occurs when sending a corresponding video frame to the client 210. The lower the jitter value, the more stable the connection. As shown, the thick straight arrows indicate the current delay , however, due to jitter there may be a range of arrival times for video frames at client 210 (eg, the range bounded by the dashed arrows). delay The variation in this is due to one or more server related issues, such as 403 encoding or 404 sending. operation , and when sending video frames to the client 210 delay This may also be due to network issues that result in

[0056] At 406, the client decodes the compressed video frame, again for each encoded slice, to generate decoded slice A (shown without hash marks), which is now ready for display. In one embodiment, the decoding process 406 begins before the receiving process 405 is fully completed for the corresponding video frame. Furthermore, the start and / or end of the decoding 406 may or may not be aligned with the client VSYNC signal 312. At 407, the client displays the decoded rendered video frame on the client's display. That is, the decoded video frame is placed in a display buffer, for example, to be streamed scanline by scanline to a display device. In one embodiment, the display process 407 (i.e., streaming out to the display device) starts after the decode process 406 is completely finished for the corresponding video frame, i.e., after the decoded video frame is completely resident in the display buffer. In another embodiment, the display process 407 starts before the decode process 406 is completely finished for the corresponding video frame. That is, the stream out to the display device starts from an address in the display buffer at a point where only a portion of the decoded frame buffer is resident in the display buffer. The display buffer is then updated or filled with the remaining portions of the corresponding video frame in time for display, so that the display buffer updates are performed before those portions are streamed out to the display. Additionally, the start and / or end of the display 407 is aligned with the client VSYNC signal 312.

[0057] In one embodiment, a one-way connection between the server 260 and the client 210 delay 416 may be defined as the elapsed time from when scanout 402 begins to when display 407 begins. Embodiments of the present disclosure align (e.g., synchronize frequency and adjust offset) the VSYNC signals between the server and client, and synchronize one-way VSYNC signals between the server and client. delay Reduces the bandwidth between the server and the client. delay For example, embodiments of the present disclosure can calculate an optimal adjustment to the offset 430 between the server VSYNC signal 311 and the client VSYNC signal 312, so that the near-worst-case network latency between the server 260 and the client 210 is reduced during the near-worst-case time required for server processing such as encoding 403 and transmitting 404. delayEven during near worst case client processing such as receive 405 and decode 406, the decoded rendered video frame is available in time for the display process 407. That is, there is no need to determine an absolute offset between the server VSYNC and the client VSYNC. It is sufficient to adjust the offset so that the decoded rendered video frame is available in time for the display process.

[0058] In particular, the frequencies of the server VSYNC signal 311 and the client VSYNC signal 312 may be aligned by synchronization. The synchronization may be achieved by adjusting the server VSYNC signal 311 or the client VSYNC signal 312. For purposes of illustration, the adjustment is described with respect to the server VSYNC signal 311, but it will be understood that the adjustment may be performed on the client VSYNC signal 312 instead. For example, as shown in FIG. 4, the server frame period 410 (e.g., the time between two occurrences 311c and 311d of the server VSYNC signal 311) is substantially equal to the client frame period 415 (e.g., the time between two occurrences 312a and 312b of the client VSYNC signal 312). This indicates that the frequencies of the server VSYNC signal 311 and the client VSYNC signal 312 are also substantially equal.

[0059] To maintain frequency synchronization of the server and client VSYNC signals, the timing of the server VSYNC signal 311 can be manipulated. For example, the vertical blanking interval (VBI) of the server VSYNC signal 311 can be increased or decreased over a period of time to account for drift between the server VSYNC signal 311 and the client VSYNC signal 312, for example. Manipulation of the vertical blanking interval (VBLANK) lines in the VBI achieves adjusting the number of scan lines used for VBLANK for one or more frame periods of the server VSYNC signal 311. Reducing the number of scan lines of VBLANK shortens the corresponding frame period (e.g., time interval) between two occurrences of the server VSYNC signal 311. Conversely, increasing the number of scan lines of VBLANK increases the corresponding frame period (e.g., time interval) between two occurrences of the VSYNC signal 311. In this manner, the frequency of the server VSYNC signal 311 is adjusted to align the frequencies between the client and server VSYNC signals 311 and 312 to be substantially the same frequency. Also, the offset between the server and client VSYNC signals can be adjusted by briefly increasing or decreasing the VBI before returning it to its original value. In one embodiment, the server VBI is adjusted. In another embodiment, the client VBI is reconciled. In yet another embodiment, instead of two devices (server and client), there may be multiple connected devices, each of which may have a corresponding VBI that is reconciled. In one embodiment, each of the multiple connected devices may be an independent peer device (e.g., without a server device). In another embodiment, the multiple devices may include one or more server devices and / or one or more client devices arranged in one or more server / client architectures, a multi-tenant server / client(s) architecture, or some combination thereof.

[0060] Alternatively, in one embodiment, the server pixel clock (e.g., located in the south bridge of the server north bridge / south bridge core logic chipset) may be manipulated to perform coarse and / or fine adjustments to the frequency of the server VSYNC signal 311 over a period of time to bring the frequency between the server and client VSYNC signals 311 and 312 back into alignment. Specifically, the server south bridge pixel clock may be overclocked or underclocked to adjust the overall frequency of the server VSYNC signal 311. In this manner, the frequency of the server VSYNC signal 311 is adjusted to align the frequencies between the client and server VSYNC signals 311 and 312 to be substantially the same frequency. The offset between the server and client VSYNC may be adjusted by briefly increasing or decreasing the client server pixel clock before restoring the pixel clock to its original value. In one embodiment, the server pixel clock is adjusted. In another embodiment, the client pixel clock is adjusted. In another embodiment, the client pixel clock is adjusted. In yet another embodiment, instead of two devices (server and client), there may be multiple connected devices, each of which may have a corresponding pixel clock that is adjusted. In one embodiment, each of the multiple connected devices may be an independent peer device (e.g., without a server device). In another embodiment, the multiple connected devices may include one or more server devices and one or more client devices arranged in one or more server / client architectures, a multi-tenant server / client(s) architecture, or some combination thereof.

[0061] FIG. 5A illustrates drift 390 between the clocks of each of the cloud gaming servers 260 and the client 210, as well as server-side clocks such as encoding 403 and transmitting 404, according to one embodiment of the disclosure. operation Variation in time spent by the network delay, and the client's operation 2 illustrates possible variations in timing of completion of decoding 406 by a client 210 when streaming video frames generated from a video game executed on a server 260 due to.

[0062] The y-axis 501 shows time in milliseconds. The x-axis 502 shows time in minutes. In an embodiment of the present disclosure, the server 260 can send the timestamp information to the client 210 along with the compressed video frames, or the server can send the timestamp information separately from the compressed video frames. In one embodiment, this timestamp information may represent the time of occurrence of the server VSYNC signal immediately preceding the scanout 402 of the corresponding video frame, derived from the pixel clock of the server 260. That is, the timestamp indicates the desired display timing of the corresponding video frame, including whether the video frame will be displayed immediately. In another embodiment, the timestamp information may represent a flip time, e.g., a time of completion of rendering of a corresponding video frame, derived from a pixel clock of the server 260. In yet another embodiment, a normal frame period is used instead of a server VSYNC signal, and the timestamp information may represent a time of start or end of the corresponding frame period, derived from a pixel clock of the server 260.

[0063] Upon completion of the decoding 406, the client 206 records a time derived from the client's pixel clock and subtracts this time from the timestamp (delivered from the server) to create a "decoding timestamp" (i.e., the time that the decoding was completed, not the time it took to decode the corresponding video frame). Thus, the decoding timestamp indicates the availability of the corresponding video frame for display at the client, compared to the desired display time specified by the server (e.g., as indicated by the timestamp). As shown in FIG. 5A, in one embodiment, the decoding timestamp of the first compressed video frame received by the client is assigned a value of zero (i.e., normalized). Also, all other decryption timestamps are calculated with reference to the normalization (i.e., subtracted, taking the normalization into account). operation Variation in network delay For , the decoding timestamps measured for a series of compressed video frames may be plotted as a distribution 510, with the first compressed video frame 511 assigned a decoding timestamp of zero, as described above. These decoding timestamps may be binned to create a histogram 515, as shown in FIG. 5B, described more fully below. Measurements 520, 530, and 540 show the distribution of decoding timestamps calculated for subsequent video frames received at the client. The decoding timestamps of measurements 520, 530, and 540 are calculated with reference to the normalization defined by the first compressed video frame 511.

[0064] FIG. 5B includes a histogram illustrating the timing of completion of decoding by a client relative to a desired display time specified by a server (e.g., corresponding timestamps), according to one embodiment of the present disclosure, and illustrates an increase in the decoding timestamps in subsequent histograms due to drift between the respective clocks at the cloud gaming server and the client. In particular, the decoding timestamps of each of measurements 520, 530, and 540 subsequently determined for subsequent video frames may be binned to create a corresponding histogram. For example, the decoding timestamps plotted in measurement 520 may be binned to create histogram 525. Similarly, the decoding timestamps plotted in measurement 530 may be binned to create histogram 535, and the decoding timestamps plotted in measurement 540 may be binned to create histogram 545. Each of histograms 515, 525, 535, and 545 may have unique characteristics. As shown, the width of the distribution of the decoded timestamps in each of measurements 515, 525, 535, and 545 is roughly similar, but the later determined histogram shows an increase in the decoded timestamps as they are each shifted to the right, such as due to drift between the server and client clocks used to generate the VSYNC frequency.

[0065] In particular, measurements 520, 530, and 540 of the decoded timestamps determined later for subsequent video frames (and their corresponding histograms 525, 535, and 545 shown in FIG. 5B) show the effect of the difference between the server VSYNC signal 311 and the client VSYNC signal 312 (i.e., drift 390 in FIG. 3). The drift 390 between the server clock and the client clock, as reflected in the corresponding VSYNC signals, may be shown as 590 in FIG. 5B. For example, a 10 ppm (parts per million) difference in the server and client clocks due to inaccuracies in the crystal oscillators used to generate the VSYNC frequency at the server and client, results in a drift of one frame period (16.7 ms) between the server and client approximately every 30 minutes. The drift may take the form of a decrease or increase in the decoded timestamp, depending on whether the server's VSYNC 311 is slightly higher or lower frequency than the client VSYNC signal 312.

[0066] FIG. 5C includes a histogram showing timing of completion of decoding by a client relative to a desired display time specified by a server, in accordance with one embodiment of the disclosure, showing consistent measurements of decoding times in subsequent histograms after compensation for measured drift between the respective clocks at the cloud gaming server and client. In one embodiment, the histograms may be dynamically regenerated to calculate the amount of drift. Knowing the amount of drift allows for corresponding adjustment of the VSYNC frequency and removal of the drift, resulting in histograms 516, 526, 536, 546, etc. over time. As such, plotted measurements 520, 530, and 540 do not show an increase in decoding timestamps (e.g., a vertical shift upward along x-axis 501 in FIG. 5A), but are plotted in more horizontal alignment with measurement 510 in FIG. 5A (i.e., a shift in one direction). delay(There is no increase in VSYNC in the histograms 526, 536, and 546). This is reflected in FIG. 5C, where line 590' shows zero drift between the server clock and the client clock, which is reflected in the corresponding VSYNC signal (i.e., the unidirectional increase in VSYNC in the histograms 526, 536, and 546). delay does not show an increase in

[0067] In another embodiment, the server transmits compressed video frames every frame period (frame periods being approximately equal in length), and instead of a corresponding server timestamp (e.g., used in calculating the decoding timestamp) being sent from the server to the client, the corresponding server timestamp (for the corresponding video frame being received) is calculated by the client by adding the frame period to a previously calculated server timestamp (e.g., for the previous video frame received). An initial server timestamp and / or timing signal for an initial video frame may be delivered from the server to the client to start the timing process.

[0068] In yet another embodiment, the drift is calculated using timestamp information sent from the server to the client separately or together with the compressed video frames, for example by analyzing the variance between the timestamp information and the timing of receipt of the timestamp information at the client. In yet another embodiment, instead of using the server VSYNC signal, the server can use a frame period of approximately equal size and calculate the drift of the server frame period relative to the client VSYNC (or some multiple thereof). The server frame period can then be adjusted accordingly based on the drift calculation.

[0069] In other embodiments, instead of two devices (server and client), there are multiple connected devices, each of which can measure their drift relative to one or more other devices. In one embodiment, each of the multiple connected devices can be an independent peer device (e.g., without a server device). In another embodiment, the multiple devices can include one or more server devices and one or more client devices arranged in one or more server / client architectures, a multi-tenant server / client(s) architecture, or some combination thereof.

[0070] Thus, the measured drift between the frequencies of the VSYNC signals between two devices (e.g., a server and a client, or any two devices in a multiple network device with a server, a client, and independent peers) can be used to adjust the VSYNC signal to one or more devices. The adjustment may include removing or adding raster scan lines in the vertical blanking interval of the corresponding frame period. The adjustment may also include overclocking or underclocking the corresponding clock. The adjustment may be performed dynamically, with the adjustment of the corresponding VSYNC signal changing over time. In some embodiments, instead of using a VSYNC signal, the server may use a frame period that is approximately equal in size, and the server frame period may be adjusted in response to the calculation of the drift.

[0071] 4 may include adjusting the server VSYNC signal 311 to provide an appropriate timing offset 430 between the corresponding client and server VSYNC signals. In one embodiment, histogram data (e.g., as shown in at least FIGS. 5A-5C) may be used to determine a timing offset such that a predetermined number or threshold (e.g., 99.99 percent) of received video frames arrive at the client in time to be displayed at the next appropriate occurrence of the client VSYNC signal 312. That is, the timing offset 430 (e.g., as shown in FIG. 4) is adjusted to accommodate a near worst case scenario of a video frame being ready for display (e.g., received, decoded, and placed in a display buffer for streaming out at the client) in time for the minimum amount of time until the next occurrence of the client VSYNC signal 312. As an example, a 99.99 percent threshold provides for one missing video frame in 10,000 video frames generated at the server 260 and displayed at the client 210.

[0072] In particular, to establish the appropriate offset 430, the frequency of the server VSYNC signal 311 may be manipulated over a period of time (e.g., one or more frame periods) to move the timing of one or more occurrences of the corresponding server VSYNC signal 311, thereby shifting or adjusting the relative timing offset between the client and server VSYNC signals once both VSYNC signals synchronize their respective frequencies. The frequency of the client VSYNC signal 312 may be similarly manipulated to alternatively adjust the relative timing offset between the client and server VSYNC signals. Determination of the appropriate offset may be performed dynamically, e.g., repeatedly over time, using corresponding dynamic manipulation of the VSYNC signals. In other embodiments, rather than first removing the drift between the server and client VSYNC signals and then establishing an appropriate offset between the VSYNC signals, the offset is instead maintained by more frequently manipulating the frequency of the server or client VSYNC signals to adjust the relative timing offset. In yet other embodiments, instead of using the server VSYNC signal, the server can use frame periods that are approximately equal in size and manipulate the server frame period or the client VSYNC signal to adjust the relative timing offset of the server frame period for the client VSYNC (or multiples thereof). In yet other embodiments, instead of two devices (a server and a client), there are multiple connected devices, each of which can manipulate its own VSYNC signal to adjust the relative timing offset of the VSYNC with respect to the VSYNC of one or more other devices. In one embodiment, each of the multiple connected devices can be an independent peer device (e.g., without a server device). In another embodiment, the multiple devices can include one or more server devices and one or more client devices arranged in one or more server / client architectures, a multi-tenant server / client(s) architecture, or some combination thereof.

[0073] 2A-2D, together with detailed descriptions of the various client devices 210 and / or cloud gaming network 290 (e.g., within the game server 260), flow charts 600A, 600B, and 600C of FIGS. 6A-6C illustrate a one-way delay In order to shorten the time required for the transmission of the VSYNC signal, a method for adjusting the VSYNC signal between a cloud gaming server and a client is described.

[0074] In particular, FIG. 6A illustrates a unidirectional delay6 illustrates a method for adjusting the relative timing between the VSYNC signals of a cloud gaming server and a client in order to reduce the timing between the VSYNC signals of the corresponding client and server shown in FIG.

[0075] At 601, the method includes setting, at a server, a server VSYNC signal to a server VSYNC frequency. As discussed above, the server VSYNC signal corresponds to generating a plurality of video frames at the server during a plurality of frame periods of the server VSYNC frequency. For example, the server may execute a video game in a streaming mode, and a CPU of the server may execute the video game in response to input commands from a user to generate game-rendered video frames using a graphics pipeline enabled for streaming.

[0076] At 603, the method includes setting a client VSYNC signal at a client to a client VSYNC frequency. The client VSYNC signal is used for rendering to a display associated with the client. That is, timing of rendering and displaying video frames at the client can be based on the client VSYNC signal. For example, video frames can be displayed beginning with the occurrence of a corresponding client VSYNC signal.

[0077] In one embodiment, the client VSYNC frequency is set approximately to the server VSYNC frequency. For example, the server may send a control signal to the client, which is used by the client to set the client's VSYNC signal to the apparent frequency of the server's VSYNC signal. That is, the control signal may include the apparent frequency to which the client VSYNC signal is set. That is, the client VSYNC frequency is set to the same apparent frequency as the server VSYNC frequency, but due to differences in the crystals used for the server and client clocks, the actual server and client VSYNC frequencies may not match.

[0078] At 605, the method includes transmitting a plurality of compressed video frames based on the plurality of video frames from the server to the client over a network using a server VSYNC signal. In particular, game-rendered video frames generated in response to processing of the video game by the server in streaming mode are delivered (e.g., during scanout 402) to an encoder configured to perform compression and generate a plurality of compressed video frames. As described above, the start of encoding of the corresponding video frames may be aligned with the corresponding occurrence of the server VSYNC signal or may occur before the corresponding occurrence, such as a flip time. The compressed video frames are transmitted and / or delivered to the client for display during the game session. The transmission of the video frames does not have to start aligned with the server VSYNC signal and can start as soon as a portion or a complete video frame of the corresponding video frame is encoded, as shown in FIG. 4.

[0079] At 607, the method includes decoding and displaying, at the client, the plurality of compressed video frames. As previously described, the client receives the plurality of compressed video frames, which are then decoded by a decoder at the client. For example, the client receives one or more encoded slices of the corresponding compressed video frames. The compressed video frames are then decoded and placed in a display buffer. For example, the encoded slices of the corresponding compressed video frames are then decoded and the decoded video frames are placed in a display buffer. During decoding, the decoded slices may be rendered for display, which may include generating screen slices (e.g., scanlines) from the decoded slices of the corresponding video frames, which are then streamed to a display at the client. In particular, pixel data of the decoded slices of the corresponding video frames may be placed at appropriate addresses in a display buffer for streaming (e.g., scanline by scanline) to a display at the client.

[0080] At 610, the method includes transmitting a compressed video frame to one or more clients when the clients receive the compressed video frames. operation This includes analyzing the timing of the VSYNC signals and adjusting the relative timing between the server and client VSYNC signals. delay Reduce and one-way delay In order to reduce variations in the timing, the relative timing is adjusted to achieve proper alignment (e.g., frequency synchronization and offset adjustment) between the server and client VSYNC signals. In one embodiment, the proper timing between the server and client VSYNC signals is achieved by adjusting at least one of the server VSYNC signal and the client VSYNC signal. A more detailed discussion of adjusting the relative timing between the server and client VSYNC signals is provided in Figures 6B-6C below.

[0081] FIG. 6B is a flow diagram 600B illustrating a method for aligning VSYNC signals when performing VSYNC signal coordination between a cloud gaming server and a client, according to one embodiment of the disclosure. For example, the alignment may include unidirectional delay This includes synchronizing the frequency and / or adjusting the offset between the server VSYNC signal and the client VSYNC signal, such as to reduce operation 610 provides additional details regarding the relative timing adjustments between the server and client VSYNC signals.

[0082] At 611, the method includes transmitting timestamp information associated with the plurality of video frames (e.g., generated by the server as rendered video frames in a game) from the server to the client. In one embodiment, the timestamp information is transmitted to the client along with the plurality of compressed video frames. In another embodiment, the timestamp information is transmitted to the client separately from the plurality of compressed video frames.

[0083] In particular, the timestamp information includes a corresponding timestamp of a corresponding video frame generated at the server, derived by the server's pixel clock. In one implementation, the timestamp of the corresponding video frame may occur at a corresponding occurrence of a server VSYNC signal used to scan the corresponding video frame into the encoder, such as during scan-out (e.g., the occurrence of the server VSYNC signal immediately prior to scan-out of the corresponding video frame). In another implementation, the timestamp of the corresponding video frame may occur at a corresponding flip time at the server. The timestamp indicates a desired display timing of the corresponding video frame as determined by the video game, such as scanning or streaming to a local display without transmission over a network.

[0084] When a client receives and decodes a compressed video frame, the timestamp information is processed and compared to a desired display time (timestamp) specified by the server to create a decode timestamp that indicates the availability of the corresponding video frame for display at the client. As previously described, the client records the time, derived from the client's pixel clock, upon completion of decoding of the corresponding video frame. This completion time of decoding is subtracted from the corresponding timestamp delivered by the server to create the decode timestamp. Additionally, the first compressed video frame that is decoded may be normalized such that its decode timestamp is adjusted to zero using a normalization factor that may be applied (e.g., added or subtracted) to all subsequently measured and / or calculated decode times to allow subsequent reception of compressed video frames at the client.

[0085] At 613, the method includes constructing one or more histograms based on the measured and / or calculated decoding timestamps. In particular, the corresponding histograms are created by binning the measured decoding timestamp information for compressed video frames received at the client over a period of time. As described above, the measured and normalized decoding timestamps for the corresponding video frames indicate when the decoded video frames are displayable at the client relative to the desired display time indicated by the server timestamp. In this manner, the corresponding histograms provide a distribution of timing of completion of decoding by the client relative to the desired display time specified by the server for a number of video frames. Thus, one-way distribution between the server and the client is provided. delay and / or one-way delay One or more of the generated histograms may be used to adjust the relative timing between the server and client VSYNC signals in order to reduce variation.

[0086] At 615, the relative timing between the server and client VSYNC signals is adjusted to synchronize the server VSYNC frequency of the server VSYNC signal with the client VSYNC frequency of the client VSYNC signal. In one embodiment, drift is determined between the server VSYNC signal and the client VSYNC signal using corresponding histograms. For example, one or more histograms generated from the video frames received by the client are continuously and dynamically updated. The histograms are analyzed to determine drift between the server VSYNC signal and the client VSYNC signal. For example, FIG. 5B illustrates how drift (e.g., as reflected by line 590) can be determined when plotting multiple histograms, as discussed above.

[0087] Alternative methods for determining drift between server and client VSYNC signals can be used for synchronization. For example, an analysis of decoded timestamps over a period of time can be performed to determine trends in increasing or decreasing decoded timing, which can be used to determine drift. In another example, drift can be calculated by analyzing the variance between server-generated timestamp information and client-based timing of receipt of server-based timestamp information. Drift can also be measured between multiple connected devices, which can be independent peer devices, servers and client devices, arranged in a peer-to-peer architecture, server / client architecture, or a combination thereof.

[0088] Furthermore, based on the timestamp information sent from the server to the client, at least one of the server VSYNC frequency and the client VSYNC frequency can be adjusted to compensate for the measured drift. For example, the frequency of the server VSYNC signal or the client VSYNC signal can be adjusted over a period of time such that the actual frequencies of the server and client VSYNC signals are approximately the same over that period of time. In this manner, the frequencies of the server and client VSYNC signals are synchronized.

[0089] As previously mentioned, the frequency of the VSYNC signal of the corresponding server or client may be adjusted by removing or adding raster scan lines in the vertical blanking interval of the corresponding frame period, and the VSYNC signal may be adjusted for a period of time. The adjustment may include overclocking or underclocking the corresponding pixel clock of the server or client for a period of time. Additionally, the adjustment may be performed continuously by appropriately and dynamically adjusting the corresponding VSYNC signal over time.

[0090] At 617, the relative timing between the server and client VSYNC signals is adjusted by adjusting the relative offset between the server and client VSYNC signals based on the timestamp information. Similarly, the relative phase between the server and client VSYNC signals can be adjusted based on the timestamp. Once the server and client VSYNC signals are synchronized in frequency, adjustments to the relative phase or offset of the server and client VSYNC signals can be applied to either the server or client VSYNC signals.

[0091] In particular, the adjustment of the offset between the server VSYNC signal and the client VSYNC signal is determined based on the worst case decode timestamps shown in the corresponding histograms. For example, the timing offset can be determined such that a predetermined number or threshold (e.g., 99.99 percent) of received video frames arrive at the client in time to be decoded and displayed upon the next suitable occurrence of the client VSYNC signal. In this manner, when adjusting the timing offset between the server and client VSYNC signals, the unidirectional timing of video frames can be adjusted to accommodate the timing of the received video frames. delay A near-worst case scenario is also considered, and a near-worst case scenario video frame is received, decoded, and paced in a display buffer for stream-out to a client display. Determining an appropriate timing offset is further described in conjunction with FIGS. 8A-8B.

[0092] As previously mentioned, adjusting the timing offset between the server and client VSYNC signals can be accomplished by adjusting the server VSYNC signal or the client VSYNC signal by one or more frame periods. For example, adjusting the timing offset can be performed by adjusting the frequency of the corresponding server or client VSYNC by one or more frame periods. In particular, the frequency of the corresponding server or client VSYNC signal can be adjusted by removing or adding raster scan lines in the vertical blanking interval of the corresponding frame period, or by overclocking or underclocking the corresponding pixel clock of the server or client.

[0093] In some embodiments, rather than first removing drift between the server and client VSYNC signals and then establishing an appropriate offset between the VSYNC signals, the timing offset is instead maintained by more frequently manipulating the frequency of the server or client VSYNC signals to adjust the relative timing offset, i.e., adjustments to the offset between the server and client VSYNC signals are continually determined based on the worst-case decoded timestamps as indicated by corresponding histograms, which may be generated over short periods of time with frequent determination and manipulation of the timing offset.

[0094] FIG. 6C illustrates a unidirectional delay 6 is a flow diagram 600C illustrating another method for aligning VSYNC signals when performing VSYNC signal adjustment between a cloud gaming server and a client to reduce the time required for the alignment. As previously described, alignment includes unidirectional delay This includes synchronizing the frequency and / or adjusting the offset between the server VSYNC signal and the client VSYNC signal, such as to reduce operation610 provides additional details regarding the relative timing adjustments between the server and client VSYNC signals.

[0095] in particular, operation Including 621 and 623, operation An alternative method for determining drift between the server and client VSYNC signals is used for synchronization, as outlined at 620. In particular, the method includes periodically transmitting timing information from the server to the client at 621. For example, the timing information determined from the server pixel clock may include the start of the corresponding frame period, the length of time of the corresponding frame period, the scan-out timing of the video frames into the encoder, the flip time of the corresponding video frame, etc.

[0096] The timing information is also analyzed at 623 to determine drift between the server VSYNC signal and the client VSYNC signal. For example, drift may be calculated by analyzing the variance between the server generated timing information and the client based timing of receipt of the server based timing information. In other embodiments, drift may be measured with respect to a server frame period used to generate the video frames, where the drift of the server frame period is measured with reference to the client VSYNC signal, or a multiple thereof. Drift may also be measured between multiple connected devices, which may be independent peer devices, servers and client devices, arranged in a peer-to-peer architecture, server / client architecture, or a combination thereof.

[0097] Once the drift is determined, the frequency of the server VSYNC signal or the client VSYNC signal can be adjusted to compensate for the drift, and the adjustment can be applied over a period of time. As previously described, the measured drift between the frequencies of the server and client VSYNC signals can be used to adjust the VSYNC signal at the server or client for a period of time. The adjustment of the VSYNC signal may include removing or adding raster scan lines in the vertical blanking interval of the corresponding frame period, or may include overclocking or underclocking the corresponding pixel clock of the server or client.

[0098] After compensating for the drift between the frequencies of the server and client VSYNC signals, the relative phase or offset between the server and client VSYNC signals can be adjusted based on the timestamp information, and the adjustment can be applied to the server VSYNC signal or the client VSYNC signal. In particular, the relative phase or offset adjustment is performed based on the timestamp information associated with the video frames generated at the server.

[0099] In particular, at 611, time stamp information is transmitted from the server to the client. In an embodiment, the time stamp information is transmitted together with the plurality of video frames or separately from the plurality of video frames. operation 611 was previously described in connection with flow diagram 600B of FIG. 6B. For example, the timestamp information determined by the server pixel clock may indicate the timing of a corresponding occurrence of a server VSYNC signal used to scan a corresponding video frame into the encoder (e.g., during scan out). In another implementation, the timestamp information may indicate the timing of a corresponding flip time of a corresponding video frame.

[0100] As mentioned above, the timestamp information is used by the client to create decode timestamps, each indicating availability for display at the client of the corresponding video frame compared to a desired display time (timestamp) specified by the server. The decode timestamps can be derived by subtracting the time at the client indicating completion of decoding of the corresponding video frame from the corresponding server-based timestamp information. Normalization can also be applied when generating the decode timestamps.

[0101] Drifting can be performed without using timestamp information, so for example, to generate multiple histograms, one histogram is generated at a particular time and used to adjust for the timing offset between the server and client VSYNC signals. That is, the histograms can be updated by extending the decoded timestamps contained in the histogram, but it is not necessary to generate multiple histograms spanning different time periods. In particular, in 613-A, the histograms are created based on the decoded timestamps. In flow chart 600C, operation 613-A is as described above in connection with the flowchart 600B of FIG. operation Similar to 613. For example, the decode timestamp information is binned for video frames received and decoded by the client over time to provide a distribution of the timing of completion of decoding by the client relative to the desired display time specified by the server (e.g., the server timestamp information).

[0102] At 617, the relative phase or offset between the server and client VSYNC signals may be adjusted based on the timestamp information, and the adjustment may be applied to either the server VSYNC signal or the client VSYNC signal. operation617 was previously described in connection with flow diagram 600B of FIG. 6B. In particular, the offset adjustment is determined based on a near worst case decode timestamp as indicated by a continuously updated histogram. For example, the timing offset can be determined such that a predetermined threshold number (e.g., 99.99 percent) of the received video frames arrive at the client within time to be decoded and displayed upon the next suitable occurrence of a client VSYNC signal. Determining the appropriate timing offset is further described in connection with FIGS. 8A-8B.

[0103] Adjusting the timing offset between the server and client VSYNC signals is performed by adjusting the server or client VSYNC signal by one or more frame periods. For example, the adjustment may be performed by adjusting the frequency of the server or client VSYNC signal by one or more frame periods, by removing or adding raster scan lines in the vertical blanking interval of the corresponding frame period, or by overclocking or underclocking the corresponding pixel clock of the server or client.

[0104] In some embodiments, the drift of FIG. operation 620 is not performed when establishing a proper offset between the VSYNC signals. Instead, the timing offset is maintained by manipulating the frequency of the server VSYNC signal or the client VSYNC signal more frequently to adjust the relative timing offset. That is, adjustments to the offset between the server VSYNC signal and the client VSYNC signal are continually determined based on the worst case decoded timestamps as indicated by the corresponding histograms, and adjustments to the offset may be performed at reduced interval periods.

[0105] 2A-2D, together with a detailed description of the various client devices 210 and / or cloud gaming network 290 (e.g., within the game server 260), a flow diagram 700 of FIG. 7 illustrates one-way communication between a cloud gaming server and a client, in accordance with one embodiment of the disclosure. delay In particular, flow diagram 700 illustrates a method for adjusting a client VSYNC signal in relation to generation of compressed video frames at a server, where the video frames are generated during similar sized frame periods, in accordance with one embodiment of the present disclosure.

[0106] At 710, the method includes generating a plurality of video frames at the server during a plurality of frame periods, the frame periods being approximately equal in size. In one embodiment, the cloud gaming server may turn off or not implement a server VSYNC signal since the video frames do not need to be displayed on the server when streaming to the client. Instead, the server may utilize a regular (e.g., periodic) or approximately regular signal used for timing during generation of game-rendered video frames when processing the video game. For example, the server may use frame periods that are approximately equal in size instead of using a server VSYNC signal. The generation of the plurality of video frames occurs within the plurality of frame periods such that the game-rendered video frames are generated within corresponding frame periods. The server may execute the video game in a streaming mode, and the server's CPU may execute the video game in response to input commands from a user to generate the game-rendered video frames using a graphics pipeline.

[0107] At 720, the method includes setting a client VSYNC signal at the client to a client VSYNC frequency. The client VSYNC signal is used for rendering to a display associated with the client. Timing of rendering and displaying video frames at the client can be referenced to the client VSYNC signal, and corresponding video frames can be displayed beginning with the occurrence of the corresponding client VSYNC signal.

[0108] At 730, the method includes transmitting a plurality of compressed video frames based on the plurality of video frames from the server to the client. In particular, the game-rendered video frames are delivered to an encoder of the server (e.g., during scanout 402), which is configured to perform compression on the game-rendered video frames. The plurality of compressed video frames are transmitted (e.g., streamed) to the client for display during a game session, etc. Transmission of the compressed video frames need not coincide with a frame period, such that transmission may occur as soon as a portion of a corresponding video frame or when a complete video frame has been encoded.

[0109] At 740, the method includes decoding and displaying, at the client, the multiple compressed video frames. As discussed above, the client receives and decodes the multiple compressed video frames. For example, the client can receive and decode one or more encoded slices of the corresponding compressed video frames. The decoded video frames are placed in a display buffer. During decoding, the decoded slices can be rendered for display, which includes generating screen slices (e.g., scanlines) from the decoded slices of the corresponding video, which are then streamed to a display of the client. For example, pixel data for the decoded slices of the corresponding video frames can be placed at appropriate addresses in the display buffer for streaming (e.g., scanline by scanline) to the display.

[0110] At 750, the method includes transmitting timing information associated with a plurality of frame periods from the server to the client. The timing information may indicate when each frame period begins at the server. Because the frame periods are approximately equal, the timing of one frame period (e.g., a server timestamp) delivered to the client allows the client to track the timing of each frame period (e.g., by periodically adding the frame period to the last calculated timestamp). In this manner, the client can correlate timing information received from the server or calculated at the client with corresponding video frames received at the client. The timing information determined at the client can provide an indication of the desired display timing of corresponding video frames as determined by a video game running at the client, such as when the video frames were generated and ideally scanned or streamed to a local display, without transmission over a network.

[0111] At 760, the method includes: operation and adjusting the relative timing of the client VSYNC signal to generate multiple compressed video frames at the server when the client receives the multiple compressed video frames. In particular, the server frame period (e.g., duration) or the client VSYNC signal may be manipulated to adjust the relative timing offset of the server frame period with respect to the client VSYNC signal (or some multiple thereof).

[0112] For example, a drift between the server frame period and the client VSYNC signal calculated by the client can be determined. Drift compensation can be applied to the server frame period or the client VSYNC signal for synchronization. For example, at the client, the frequency of the client VSYNC signal can be adjusted by removing or adding raster scan lines of the vertical balance interval of the corresponding frame period, and the VSYNC signal can be adjusted for a certain period. The adjustment may also include overclocking or underclocking the pixel clock of the client. Furthermore, to adjust the relative offset, one or more histograms can be created at the client, o indicating when the decoded video frame is available at the client compared to when the video frame was generated at the server (e.g., required display time). The histograms can be created using the same techniques as described above, with slight modifications, such as using the client-determined frame period to indicate when the video frame is generated and displayed.

[0113] 8A is a diagram 800A illustrating the construction and use of a histogram 850 providing a distribution of decode timestamps for video frames, which, as previously described, indicates availability for display at a client of the video frames relative to a desired display time specified by a server, the histogram being constructed to determine an adjustment of the offset between the VSYNC signals at the server and the client, in accordance with one embodiment of the present disclosure. As shown, the video frames are generated at the server ( operation 401), Scanout is compressed ( operation 403) for the encoder ( operation 402) is executed on the game rendered video frame and sent to the client ( operation 404). The client receives the encoded video frame ( operation 405), and decompresses the encoded video frames ( operation 406), rendering the video frames for display (e.g., operationAt 407, the decoded video frames are converted into scanlines).

[0114] As mentioned above, server-based timestamp information is delivered to the client in association with the compressed / encoded video frames for the purpose of creating one or more histograms used to determine the offset. The timestamp information provides a desired display time specified by the server. The server may not transmit compressed video frames every frame period. In particular, the histogram may include a decode timestamp that indicates the availability of the video frame for display at the client compared to the desired display time specified by the server (e.g., the server-based timestamp information). Because the server timestamp and the client timestamp may be defined by individual clocks that are not synchronized, it may be useful to normalize the decode timestamps. For example, normalization may include subtracting the value of the first decode timestamp from all decode timestamps. This causes the first decode timestamp to be zero and all subsequent timestamps to be relative to it.

[0115] As shown in FIG. 8A, the constructed histogram 850 may be used to determine an appropriate offset between the server VSYNC signal and the client VSYNC signal. As previously described, the histogram provides a distribution of decode timestamps, which indicates availability for display relative to the desired display time. The VSYNC offset 430 between the server and client exists such that a predetermined number or threshold (e.g., 99.99 percent) of the received video frames arrive at the client and are decoded in time to be displayed at the next appropriate occurrence of the client VSYNC signal. In one embodiment, the remaining number (e.g., 0.01 percent) may be too late to be displayed and may leak out. In other words, the VSYNC offset 430 represents a near worst case scenario when receiving, decoding, and displaying the rendered video frames. delay Corresponds to. Encode 403, Transmit 404, Receive 405, and Decode 406 in FIG. 8A show a near worst case frame (e.g., 99.99th percentile). If a proper VSYNC offset 430 is established, there is no margin between the decoding of this frame and its display. One or more client buffers 820 are configured to filter out frames with low decode timestamps (e.g., one-way delays) so that Encode 403, Transmit 404, Receive 405, and Decode 406 are binned early in the histogram (e.g., below the 25th percentile). delay 820 represents the shortest video frame. In this particular example, four buffers are required, three for the frame being decoded (three buffers 820) and one for the currently displayed frame (not shown).

[0116] A series of theoretical timing diagrams 850A-850D are provided for the client VSYNC signal 312, with timing diagram 850C (and accompanying display 407) showing an ideal client VSYNC 312C. Because there is no direct synchronization of clocks or timestamps (e.g., via a third-party timing mechanism such as a universal clock), the offset 430 is not set directly; instead, the current client VSYNC 312 is adjusted using the near worst case timing information of the histogram to arrive at the ideal client VSYNC timing 312C, as described above. Alternatively, the server VSYNC can be adjusted to create the appropriate offset, as described above.

[0117] The server's timestamp information is collected and / or received by the client. As mentioned above, the timestamp information may include the time that the corresponding video frame was generated (e.g., flip time, when scanout occurred, occurrence of the server VSYNC signal when scanout occurred, etc.). Additional information may be collected at the server and / or client and used to create or interpret the histogram, and is referred to as "histogram information," as described in more detail below.

[0118] On the server side, the additional histogram information may include encoding time statistics such as the number of scene changes, the mean and / or standard deviation of the encoding time for I-frames, and the mean and / or standard deviation of the encoding time for P-frames. The encoding time statistics may be delivered as periodic messages from the server to the client. Additionally, the histogram information may include the time to prepare the encoder slices by the encoder, which may be delivered as periodic messages from the server to the client. Additionally, the histogram information may include the actual server-side VSYNC timing and the target VSYNC timing, which may be added to the packet header. Additionally, the histogram information may include the average number of slices per I-frame versus P-frame.

[0119] The server uses a one-way network to transmit the encoded slices (e.g., compressed encoder slices) along with the histogram information. delay A round trip time (RTT) measurement may be included to derive the RTT. The RTT measurement may be used to determine the transmission time required to send a packet to the client (e.g., without further processing performed by the client, such as decoding and rendering). For example, the RTT can be determined by sending a heartbeat packet from the server to the client. This packet contains a unique identifier. The client sends a heartbeat response back to the server with the unique identifier so that the server can calculate the RTT. One-way network delay is approximately half the RTT. When used to create a histogram, the RTT can be measured periodically to analyze and / or determine network or transmission jitter (e.g., spikes in RTT). For example, a one-way network measured over RTT delay The measurement of can be used as the transmission time for all video frames received until the next RTT measurement.

[0120] At the client, the additional histogram information may include a decode time for each received encoded video frame. Additionally, the histogram information can include a render preparation time for each decoded video frame, where render preparation can include converting the decoded video frame slices into scanlines or screen slices.

[0121] Additionally, at the server, the additional histogram information may include a maximum transmission rate that defines the total network throughput (e.g., bandwidth) that the server considers available to the client. This can be used to determine the maximum rate at which encoder slices of encoded video frames can be sent. The maximum rate can vary based on the stability of the network connection to the client, and the offset can be dynamically adjusted to accommodate the variations. Additionally, the maximum transmission rate can be adjusted independently of the encoder parameters, so that slices can be sent more quickly if the encoder is configured not to generate slices at the maximum transmission rate.

[0122] For example, the maximum bandwidth or maximum transmission rate may be determined by a feedback mechanism from the client. One way to do this is to have the client return the number of packets it received in a range of incremental sequence IDs (identifiers) or a range of frames. For example, the client may report that it received 145 out of 150 frames for sequence IDs 100-250. The server can calculate the packet loss, know the amount of bandwidth sent during that series of packets, and determine the maximum bandwidth for the client. The client cannot make this determination because the amount of bandwidth sent is constantly fluctuating due to variable bitrates, scene complexity, etc. That is, the client does not know whether at any given moment the server is sending the maximum bandwidth the client can handle. For example, the maximum bandwidth may be 15 Mbps (megabits per second), but the scene complexity may be low because the user is viewing a menu (static video frames have low complexity and no inter-frame variation). As a result, only 2 Mbps is sent. Thus, if the client reports 0% packet loss, the server is not informed if the client can still handle 15 Mbps. Thus, the true maximum bandwidth can only be determined if the server is sending the maximum bandwidth.

[0123] 8B illustrates a histogram 850 showing the distribution of decode timestamps, which in one embodiment are normalized such that the numerically smallest decode timestamp is assigned a value of zero (e.g., the smallest decode timestamp is subtracted from all decode timestamps). In particular, the x-axis indicates the time of the corresponding decode timestamp in milliseconds, such as from 0 to over 60 milliseconds (ms). The y-axis indicates the number of video frames received by the client for the corresponding decode timestamp.

[0124] Purely for illustrative purposes, the decode timestamps may vary in a range of approximately 60 milliseconds (ms), indicating that there is a 60 ms variance in the availability for display at the client of a video frame compared to the desired display time specified by the server. That is, some frames may be available for display approximately 60 ms earlier or later than other frames. The variance in the availability of a particular frame for display may be due to variations in server and client processing, scene complexity, network path variations, packet delay variations, and other factors. By analyzing the worst or near worst decode timestamps, an ideal relationship between the server VSYNC signal and the client VSYNC signal can be determined. That is, as described above, an ideal relative offset between the timing of the client VSYNC signal and the server VSYNC signal can be determined to maximize the number of received and decompressed video frames that can be displayed at the proper client VSYNC signal. Thus, diagram 800B shows the width of the distribution of decode timestamps 755 (e.g., approximately 57 milliseconds), within which 99.99 percent of the video frames received by the client will arrive and be decoded in time to be displayed at the next proper occurrence of the client VSYNC signal.

[0125] This width of the distribution of decode timestamps 755 (including all decode timestamps up to but not including the worst case) can be used to determine the overall buffering requirements required for the decoded video frames. If the width 755 is less than a frame period, then two buffers are required: one for the frame as it is decoded, and one for display. For example, if the width is greater than one frame period but less than two frame periods, then three buffers are required. In the specific example of a 57 ms width, five frame buffers are required for a frame period of 16.67 ms. The decode timestamp indicates the availability of decoded frames relative to the desired display time, and thus video frames with lower decode timestamps are held in the buffer for a longer period before display, and video frames with higher decode timestamps are held in the buffer for a shorter period before display.

[0126] In one embodiment, the histogram is dynamically regenerated. In another embodiment, the amount of frame buffering is dynamically set by the client over time. In yet another embodiment, frames that arrive and are decoded too late to be displayed at the desired display time are skipped (i.e., not displayed).

[0127] 2A-2D, together with a detailed description of the various client devices 210 and / or cloud gaming network 290 (e.g., within game server 260), flow chart 900 of FIG. 9 illustrates a method for constructing a histogram that provides a distribution of elapsed timing of video frames from when they are generated at a cloud gaming server to when they arrive and / or are ready for display at a client, according to one embodiment of the disclosure, where the histogram is configured for buffer size determination at the client. As previously discussed, the histogram is also configured for determining an appropriate offset between VSYNC signals at the server and the client.

[0128] operation601, 603, 605, 611, and 613 were previously described in connection with flow diagram 600A of FIG. 6A and flow diagram 600B of FIG. 6B and disclose adjusting the relative timing between the server and client VSYNC signals (e.g., synchronizing frequency and adjusting timing offset or phase). In summary, at 601, the method includes setting, at the server, a server VSYNC signal to a frequency corresponding to generation of video frames at the server during a frame period of the server VSYNC signal. At 603, the method includes setting, at the client, a client VSYNC signal corresponding to a frequency used for rendering to a display associated with the client. At 605, the method includes transmitting compressed video frames based on the generated video frames from the server to the client over a network using the server VSYNC signal.

[0129] At 611, the method includes transmitting timestamp information associated with the compressed video frames to the client. For example, the timestamp information may be transmitted together with or separately from the compressed video frames, where the timestamp information provides an indication of the desired display timing of the corresponding video frames, ideally when determined by the video game, such as when scanned or streamed to a local display, without transmission over a network. When the client receives and decodes the compressed video frames, the timestamp information is processed and compared to the desired display time specified by the server (e.g., a server timestamp) to create a decode timestamp indicating availability of the corresponding video frame for display at the client. In one embodiment, the decode timestamp may be normalized, since the server and client timing may be defined by corresponding individual clocks that are not synchronized. A full discussion regarding the timestamp information is provided in connection with FIGS. 6B-6C, and 8A-8B, and is equally applicable in connection with FIG. 9.

[0130] At 613, the method includes constructing a histogram based on the decode timestamps measured and / or calculated at the client. For example, a corresponding histogram may be created by binning decode timestamp information associated with compressed video frames received and decoded at the client over a period of time. Since the decode timestamps indicate an indication of availability for display at the client of the video frames relative to a desired display time specified by the server (e.g., a server timestamp), the histogram also provides a distribution of timing of decode completion of video frames received by the client relative to a desired display time specified by the server (e.g., the server timestamp information). A full discussion regarding timestamp information is provided in connection with FIGS. 6B-6C, and 8A-8B, and is equally applicable in connection with FIG. 9.

[0131] At 910, the method includes measuring a width of the histogram at a particular point in time. For example, the width of the distribution of decoded timestamps in the histogram may be measured such that a predetermined number or threshold (e.g., 99.99 percent) of the received video frames arrive at the client within the time indicated at the next suitable occurrence of the client VSYNC signal 312 (for clarity, the remaining 0.01% of the received video frames are not included when measuring the width). In particular, the width of the histogram can be used to set the amount of frame buffering required by the client at a particular point in time. Thus, at 920, the method dynamically sets a number of display buffers at the client based on the width of the histogram and the frame period of the synchronized server and client VSYNC signals, and the histogram 750 is generated at a particular point in time. As previously mentioned, if the width is less than the frame period, then two frame buffers, for example, are required. In this manner, video frames with lower decode timestamps are held in the buffer for a longer period, while video frames with higher decode timestamps are held in the buffer for a shorter period.

[0132] 2A-2D, flowchart 1000 illustrates a method for adjusting the relative timing between VSYNC signals between two or more devices, according to one embodiment of the present disclosure. In particular, flowchart 1000 may be used to compensate for drift and / or adjust the offset or phase between two or more VSYNC signals of corresponding devices.

[0133] At 1010, the method includes setting a plurality of VSYNC signals to a plurality of VSYNC frequencies at a plurality of devices, where a corresponding device VSYNC signal of a corresponding device is set to the corresponding device's VSYNC frequency. That is, each device sets a corresponding VSYNC signal using a corresponding pixel clock. Further, the frequencies may be similar, e.g., set to the same apparent frequency, but the actual frequencies may differ due to differences between the various pixel clocks. These VSYNC signals may be used to generate video frames (e.g., a server in a server / client architecture) and / or display video frames (e.g., a client in a server / client architecture). Also, these VSYNC signals may be used to both generate video frames and display video frames. For example, in a peer-to-peer architecture where each device is running a video game locally, the timing may coordinate the execution and display of video frames.

[0134] At 1020, the method includes transmitting a plurality of signals between the plurality of devices, which are analyzed and used to adjust relative timing between VSYNC signals of corresponding devices of the at least two devices. The relative timing can be adjusted between devices configured in a server / client architecture or between devices configured in a peer-to-peer architecture. For example, the signals can include server timestamp information or server timing information, as described above, that provides an indication of when a corresponding video frame is intended to be displayed by the server. In that manner, the VSYNC signals of the plurality of devices can be synchronized by determining a drift between the at least two VSYNC signals (e.g., synchronizing the frequency of the VSYNC signals). Also, a timing offset and / or a timing phase can be adjusted between the at least two VSYNC signals.

[0135] In particular, in one embodiment, at least two of the devices may be configured in a server / client architecture. In another embodiment, the devices are arranged in a multi-tenant configuration (e.g., one server for multiple client devices). For example, the first device may be a server device with a server VSYNC signal set to a server VSYNC frequency. The server VSYNC signal corresponds to the generation of multiple video frames during the execution of an application at the server device during multiple frame periods of the server VSYNC frequency. Multiple compressed video frames are transmitted from the server device to each of the remaining devices (e.g., client devices) in the multiple devices over a network based on the server VSYNC signal. For example, the server VSYNC signal provides timing for the generation and encoding of the video frames at the server. The compressed video frames are based on the video frames being generated by the server device. Each receiving device (e.g., remaining device) decodes and displays the received compressed video frames. The display of the decoded video frames may be synchronized between each receiving device.

[0136] In particular, the relative timing may be adjusted between the devices to compensate for drift and / or to adjust the timing offset or phase between the VSYNC signals of the devices. The drift and timing offset or phase adjustments may be determined using the techniques described above in connection with Figures 6A-6C, 7, and 8A-8B. The relative timing adjustments between the VSYNC signals of the two devices may occur at either device and may include adjusting the frequency by removing or adding raster scan lines in the vertical blanking interval of the corresponding frame period of the corresponding device's VSYNC signal, or overclocking or underclocking the corresponding clocks of the corresponding devices.

[0137] In particular, in one embodiment, at least two of the devices may be configured in a peer-to-peer architecture. For example, each device may be an independent peer device. That is, none of the devices is a server device. As such, the devices may be configured for peer-to-peer gaming. Each device is generating multiple video frames by processing the same video game. The independent peer devices may be operating in a multiplayer mode of a particular video game with back-end server support controlling the multiplayer game session. The backend server can enable state sharing between devices by managing state data for each user of a multiplayer game session. The state data can include game state data that defines the state of gameplay (of a game application) for that user at a particular point. For example, the game state data can include game characters, game objects, game object attributes, game attributes, game object states, graphic overlays, etc. In this manner, objects and characters can be inserted into each game environment of users participating in a multiplayer game session such that each user's gameplay is customized to each user through state sharing. Also, each user's gameplay may be synchronized based on state sharing; that is, the video frames displayed on each device may be synchronized to reflect synchronized gameplay. In this manner, one user may not gain an advantage by continually receiving and displaying video frames on a corresponding device earlier than the video frames of the other user's gameplay. Alternatively, no back-end server is involved, in which case the VSYNC relationship between the peers is a time-series relationship between receiving control or state information from the other peer and displaying video frames using the information received from the other peer. delay is optimized to minimize

[0138] FIG. 11A illustrates the overlap of receiving, decoding, and rendering decompressed video frames for display at a client 210, in accordance with one embodiment of the present disclosure. In particular, the overlap of one-way streaming between a server (not shown) and a client 210 in a cloud gaming application. delay overlapping reception, decoding, and display of a particular video frame. operation can be reduced by

[0139] For example, a client of a cloud gaming application receives and decodes video frames. operation The client receiving the encoded video frame 1105 at 405 is the server running the video game to generate game-rendered video frames, which are then encoded by the server's encoder and delivered to the client as encoded video frames 1105. The encoded video frames 1105 include one or more encoded slices that are compressed by the server's encoder. The client decodes the encoded video frames 1105. operationAt 406, the client includes a decoder configured to decode one or more encoded slices in the encoded video frame. In one embodiment, the decoding process begins before the corresponding video frame is completely received at the client. The decoder performs decoding for each encoded slice, so that the decoded video frame 1106 includes one or more encoder slices. The decoded video frame 1106 is then prepared for display, such as by rendering the information in the decoded video frame 1106 into scanlines or screen slices. The client-rendered video frame 1107 is then ready for display.

[0140] One-way between the server and the client delay is the video frame operation Before it is fully decrypted in 406, the client 210 operation In particular, one or more decoded slices of a video frame may be prepared for rendering to a display before the video frame is completely decoded. operation Decryption on 406 operation In particular, the first encoded slice (e.g., slice A) must arrive and be decoded before the client's scanout can begin displaying it. Furthermore, all subsequent encoded slices must arrive and be decoded before their respective decompressed data can be rendered and scanned out for display.

[0141] Additionally, reception and decryption on the client operation In addition to the overlap, the display of one or more decoded slices that are then rendered in preparation for display may occur even before the encoded video frame transmitted by the server has been completely received at the client. operationOne or more of the following may overlap for the corresponding video frame. operation If you have duplicated the scanout on the server, operation Even before scanout is fully completed, the client may display one or more decoded slices of the rendered video frames which are then rendered in preparation for display, in which case in one embodiment scanout delivers the game-rendered video frames to the server's encoder.

[0142] operation Display in 407 and operation The overlapping of the decoding at 406 may be performed on an encoder slice-by-slices basis. In this way, an encoded slice may be displayed before one or more subsequent encoded slices are received. To do this, forward error correction (FEC) data needs to be interleaved between the encoded slices of the corresponding video frame. In particular, an encoded slice may be divided into one or more network packets. An FEC packet may be used to correct one or more packets associated with a slice. Thus, an FEC packet may be interleaved between packets of multiple slices. In this way, forward error correction may be used early to correct missing and / or corrupted packets of a slice without waiting for the entire set of packets (e.g., data and FEC) of a frame to be received by the client. This allows for faster decoding at the client. operation Displayed as operation can be duplicated.

[0143] In one embodiment, a decode timestamp may be created for each slice, which indicates the availability of the slice for display at the client compared to the desired display time specified by the server. The decode timestamp may be calculated by taking the completion time of the slice's decoding 406 at the client, subtracting the timestamp received from the server indicating the ideal display time of the frame, and adding the time that the decompressed slice is used in the display process 407 (i.e., for example, add 0 ms if the decompressed slice data is needed immediately, or add 8.33 ms if the slice data is needed partway through a 16.67 ms frame period). It may be useful to normalize the decode timestamps in some way, such as by subtracting the first decode timestamp from all other timestamps.

[0144] The decode timestamps can be arranged in a histogram similar to those shown in Figures 5A-5B and 8A-8B. The worst-case or near-worst-case (e.g., 99.999%) decode timestamps as determined by the histograms can be used to adjust the relative server and client VSYNC timing, thereby reducing one-way delay Because a slice arriving late and decoded would cause the existing contents of the display buffer to be used for display, resulting in visible corruption or "tearing," a very high threshold, such as 99.999%, is desirable, stipulating that for every 100,000 video frames generated by server 260 and displayed by client 210, 1 frame will be dropped.

[0145] In conjunction with the detailed description of the various client devices 210 and / or cloud gaming network 290 (e.g., within game server 260) of FIGS. 2A-2D, in accordance with an embodiment of the present disclosure, flow diagram 1100B of FIG. 11B illustrates a method of cloud gaming in which encoded frames are received at a client from a server, decoded, and rendered for display, where the decoding and display of the video frames is unidirectional. delayOne or more operation As previously mentioned in Figures 4 to 10, the ability to duplicate delay For example, the relative timing between the server and client VSYNC signals is achieved by managing the unidirectional delay The method is adjusted to reduce and / or minimize the variation in

[0146] At 1110, the method includes receiving an encoded video frame at a client, where a server executes an application to generate a rendered video frame, which is then encoded at an encoder at the server as an encoded video frame, where the encoded video frame includes one or more encoded slices that are compressed. For example, the server generates a plurality of video frames using a server VSYNC signal. Each video frame can be sent to an encoder for compression, where each video frame can be encoded into one or more encoded slices. As previously described, the start of encoding of the corresponding video frame can be aligned to the server VSYNC signal. The compressed video frame is then sent to the client, where the transmission does not have to coincide with the server VSYNC signal and can begin as soon as an encoder slice or a complete video frame has been encoded. The compressed video frame is received by the client.

[0147] At 1120, the method includes decoding the one or more encoded slices at a decoder at the client to generate one or more decoded slices. In one embodiment, the decoding of the one or more encoded slices may begin prior to complete reception of the encoded video frame at the client. For example, the client receives one or more encoded slices of a corresponding video frame. Each of the encoded slices is then decoded and placed in a display buffer, and the decoded video frame is placed in the display buffer.

[0148] At 1130, the method includes rendering one or more decoded slices for display at a client. In particular, during the decoding process, the decoded slices can be rendered for display, where rendering includes generating screen slices (e.g., scanlines) from the decoded slices of a corresponding video frame, which are then streamed to a display at the client.

[0149] At 1140, the method includes initiating display of one or more decoded slices that, in one embodiment, are rendered prior to complete reception of the one or more encoded slices at the client. In particular, decoded slices that are placed in a display buffer may be immediately streamed to a display at the client. Thus, the reception and display of the one or more encoded slices may be performed by the client. operation may overlap.

[0150] In another embodiment, the method includes initiating display of one or more decoded slices rendered on a display prior to fully decoding one or more encoded slices. In particular, decoded slices placed in a display buffer may be immediately streamed to a client's display. Thus, the decoding and displaying client operation may overlap.

[0151] 12 illustrates components of an example device 1200 that can be used to implement aspects of various embodiments of the present disclosure. For example, FIG. 12 illustrates an example hardware system suitable for streaming media content and / or receiving streaming media content, providing dynamic buffering at a client, and redundant decoding and display of video frames at a client, including adjusting a server or client VSYNC signal to synchronize and / or adjust the offset of the VSYNC signals between the server and client, in accordance with embodiments of the present disclosure. The block diagram illustrates a device 1200 that may incorporate or be a personal computer, a server computer, a gaming console, a mobile device, or other digital device, each suitable for implementing embodiments of the present invention. The device 1200 includes a central processing unit (CPU) 1202 that runs software applications and optionally an operating system. The CPU 1202 may be comprised of one or more homogeneous or heterogeneous processing cores.

[0152] According to various embodiments, CPU 1202 is one or more general-purpose microprocessors having one or more processing cores. Further embodiments can be implemented using one or more CPUs having a microprocessor architecture specifically adapted for highly parallel and computationally intensive applications, such as applications configured for graphics processing during game execution, media and interactive entertainment applications.

[0153] Memory 1204 stores applications and data used by CPU 1202 and GPU 1216. Storage 1206 provides non-volatile storage and other computer-readable media for applications and data and may include fixed disk drives, removable disk drives, flash memory devices, and CD-ROM, DVD-ROM, Blu-ray, HD-DVD, or other optical storage devices, as well as signal transmission and storage media. User input devices 1208 communicate user input from one or more users to device 1200 and may include, for example, a keyboard, a mouse, a joystick, a touchpad, a touchscreen, a still or video recorder / camera, and / or a microphone. The network interface 1209 enables the device 1200 to communicate with other computer systems over electronic communication networks, and may include wired or wireless communications over local area networks and wide area networks such as the Internet. The audio processor 1212 is adapted to generate analog or digital audio output from instructions and / or data provided by the CPU 1202, the memory 1204, and / or the storage 1206. The components of the device 1200, including the CPU 1202, the graphics subsystem 1214, e.g., GPU 1216 and GPU cache 1218, the memory 1204, the data storage 1206, the user input devices 1208, the network interface 1209, and the audio processor 1212, are connected via one or more data buses 1222.

[0154] The graphics subsystem 1214 is further coupled to the data bus 1222 and the components of the device 1200. The graphics subsystem 1214 includes a graphics processing unit (GPU) 1216 and a graphics memory 1218. The graphics memory 1218 includes a display memory (e.g., a frame buffer) used to store pixel data for each pixel of an output image. The graphics memory 1218 may be integrated into the same device as the GPU 1216, may be coupled as a separate device from the GPU 1216, and / or may be implemented within the memory 1204. The pixel data may be provided directly from the CPU 1202 to the graphics memory 1218. Alternatively, the CPU 1202 provides data and / or instructions defining a desired output image to the GPU 1216, which in turn generates pixel data for one or more output images. The data and / or instructions defining the desired output image may be stored in the memory 1204 and / or the graphics memory 1218. In an embodiment, GPU 1216 includes 3D rendering functionality that generates pixel data for output images from instructions and data that define the scene's geometry, lighting, shadowing, texture, motion, and / or camera parameters. GPU 1216 may further include one or more programmable execution units capable of executing shader programs.

[0155] Graphics subsystem 1214 periodically outputs image pixel data from graphics memory 1218 to be displayed on display device 1210 or projected by a projection system (not shown). Display device 1210 may be any device capable of displaying visual information in response to a signal from device 1200, including CRT, LCD, plasma, and OLED displays. Device 1200 may provide analog or digital signals, for example, to display device 1210.

[0156] Another embodiment for optimizing the graphics subsystem 1214 is a multi-tenancy GPU in which a GPU instance is shared among multiple applications. operation , and a distributed GPU supporting a single game. The graphics subsystem 1214 can be configured as one or more processing devices.

[0157] For example, graphics subsystem 1214 may be configured to perform multi-tenancy GPU functions, and in one embodiment, one graphics subsystem may implement the graphics and / or rendering pipeline for multiple games, i.e., graphics subsystem 1214 is shared between multiple running games.

[0158] In other embodiments, the graphics subsystem 1214 includes multiple GPU devices that are combined to perform graphics processing for a single application running on a corresponding CPU. For example, multiple GPUs can perform alternative forms of frame rendering, where, for example, GPU1 renders the first frame, GPU2 renders the second frame in successive frame periods, and when the last GPU is reached, the first GPU renders the next video frame (e.g., if there are only two GPUs, GPU1 renders the third frame). In other words, the GPUs rotate when rendering frames. Rendering operation may overlap, where GPU2 can start rendering the second frame before GPU1 has finished rendering the first frame. In another embodiment, multiple GPU devices may be configured to use different shaders in the rendering and / or graphics pipeline. operation The master GPU performs the main rendering and compositing. For example, in a group with three GPUs, master GPU1 performs the main rendering (e.g. the first shader operation) and perform compositing of the outputs from slave GPU2 and slave GPU3, where slave GPU2 can run a second shader (e.g. a fluid effect such as a river). operation and slave GPU3 can run a third shader (e.g. particle smoke) operation and the master GPU1 composites the results from each of GPU1, GPU2, and GPU3. In this way, the various GPUs can be assigned to perform various shaders. operation (waving flags, wind, smoke, fire, etc.) to render a video frame. In yet another embodiment, each of the three GPUs can be assigned to a different object and / or portion of the scene corresponding to the video frame. In the above embodiments and implementations, operation can be performed in the same frame period (concurrently) or in different frame periods (sequentially in parallel).

[0159] Accordingly, this disclosure describes methods and systems configured for streaming media content and / or receiving streaming media content, providing dynamic buffering at a client, and overlapping decoding and display of video frames at a client, including adjusting a server or client VSYNC signal to synchronize and / or adjust the offset of the VSYNC signal between the server and client.

[0160] It should be understood that the various embodiments defined herein can be combined or incorporated into specific embodiments using various features disclosed herein. Thus, the examples provided are merely some possible examples and are not limited to the various embodiments in which more embodiments can be defined by combining various elements. In some instances, an embodiment may include fewer elements without departing from the spirit of the disclosed or equivalent embodiments.

[0161] Embodiments of the present disclosure may be practiced in a variety of computer system configurations, including handheld devices, microprocessor systems, microprocessor-based or programmable consumer electronics, minicomputers, mainframe computers, etc. Embodiments of the present disclosure may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a wire-based or wireless network.

[0162] With the above embodiments in mind, it should be understood that embodiments of the present disclosure may employ various computer-implemented operations involving data stored in computer systems. These operations may involve the physical manipulation of physical quantities. operation Any of the operations described herein that form part of the embodiments of the present disclosure are useful machine operations. The disclosed embodiments also relate to devices or apparatus for performing these operations. The apparatus may be specially constructed for the required purposes, or the apparatus may be a general-purpose computer selectively activated or configured by a computer program stored in the computer. In particular, various general-purpose machines may be used with computer programs written in accordance with the teachings herein, or it may be more convenient to construct a more specialized apparatus to perform the required operations.

[0163] The present disclosure can also be embodied as computer readable code on a computer readable medium. A computer readable medium is any data storage device that can store data that can be subsequently read by a computer system. Examples of computer readable media include hard drives, network attached storage (NAS), read only memory, random access memory, CD-ROM, CD-R, CD-RW, magnetic tape, and other optical and non-optical data storage devices. A computer readable medium can include computer readable tangible media distributed across networked computer systems such that the computer readable code is stored and executed in a distributed fashion.

[0164] Although the operations of the method have been described in a particular order, it should be understood that other housekeeping operations may be performed between operations, or operations may be coordinated to occur at slightly different times, or operations may be distributed within the system to allow processing operations to occur at various intervals related to processing, so long as the processing of the overlay operations is performed in the desired manner.

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

Claims

1. at the server, setting a server VSYNC signal to a server VSYNC frequency, said server VSYNC signal corresponding to generating a plurality of video frames at said server during a plurality of frame periods of said server VSYNC frequency; At the client, set the client VSYNC signal to the client VSYNC frequency; transmitting a plurality of compressed video frames based on the plurality of video frames from the server to the client over a network using the server VSYNC signal; Decoding and displaying the plurality of compressed video frames at the client; and analyzing timing of one or more client actions as the client receives the plurality of compressed video frames to adjust relative timing between the server VSYNC signal and the client VSYNC signal.

2. 2. The method of claim 1, further comprising transmitting timestamp information associated with the generated plurality of video frames from the server to the client.

3. The method of claim 2 , wherein the time stamp information is transmitted together with the plurality of compressed video frames or the time stamp information is transmitted separately from the plurality of compressed video frames.

4. the time stamp information includes a time stamp corresponding to a corresponding video frame that was generated; 3. The method of claim 2, wherein the corresponding timestamp occurs at a corresponding flip time at the server or at a corresponding occurrence of the server VSYNC signal used to scan the corresponding video frame into an encoder.

5. The method of claim 2 , further comprising adjusting at least one of the server VSYNC frequency and the client VSYNC frequency to be similar based on the timestamp information sent from the server to the client.

6. 3. The method of claim 2, further comprising adjusting a relative phase or a relative offset between the server VSYNC frequency and the client VSYNC signal based on the timestamp information sent from the server to the client.

7. The method of claim 1 , further comprising adjusting at least one of the server VSYNC signal and the client VSYNC signal to adjust the relative timing.

8. Continuously analyzing the timing of the one or more client actions; and The method of claim 1 , further comprising dynamically adjusting the relative timing by adjusting at least one of the server VSYNC signal and the client VSYNC signal based on the analysis.

9. Further, determining, at the server or at the client, a drift between the server VSYNC frequency and the client VSYNC frequency; and The method of claim 7 , further comprising adjusting the server VSYNC frequency or the client VSYNC frequency by one or more frame periods at the server or the client to compensate for the drift.

10. The adjustment of at least one of the server VSYNC signal or the client VSYNC signal comprises:

8. The method of claim 7, further comprising removing or adding raster scan lines in a vertical blanking interval in a frame period of the server VSYNC signal or the client VSYNC signal.

11. The adjustment of at least one of the server VSYNC signal or the client VSYNC signal comprises: The method of claim 7, further comprising overclocking or underclocking the corresponding clock of the server or the client.

12. 2. The method of claim 1, wherein the server includes an encoder for generating the plurality of compressed video frames, the plurality of compressed video frames being generated in response to processing of an application by the server in a streaming mode and delivered to the client during a session.

13. The method of claim 12 , wherein the client is configured to receive and decompress the plurality of compressed video frames for rendering on a display associated with the client.

14. 2. The method of claim 1, wherein timing of the decoding by the client of the plurality of compressed video frames is analyzed and used to adjust the relative timing between the server VSYNC signal and the client VSYNC signal.

15. 15. The method of claim 14, further comprising: analyzing timing of the decoding by the client of encoded slices in the compressed video frames; and adjusting the relative timing between the server VSYNC signal and the client VSYNC signal.

16. 15. The method of claim 14, wherein worst case decode times of the plurality of compressed video frames are analyzed to adjust the relative timing between the server VSYNC signal and the client VSYNC signal.

17. 17. The method of claim 16, wherein the near-worst case decode time is determined by measuring a distribution of decode times for the plurality of compressed video frames received at the client.

18. providing a plurality of corresponding timestamps at the server for each of the plurality of video frames generated at an encoder at a corresponding scanout of the corresponding video frame; delivering the corresponding timestamps of the plurality of video frames to the client; constructing a histogram providing timing for each of the plurality of video frames as they are generated and delivered to the client for a corresponding decode time at the client relative to the corresponding timestamp provided at the server; 2. The method of claim 1, further comprising offsetting the client VSYNC signal from the server VSYNC signal such that a threshold percentage of the plurality of compressed video frames arrive at the client and are decoded in time for display at a corresponding occurrence of the client VSYNC signal as indicated by the corresponding timestamp.

19. A server generates a plurality of video frames during a plurality of frame periods, the frame periods being of approximately equal size; At the client, set the client VSYNC signal to the client VSYNC frequency; transmitting a plurality of compressed video frames based on the plurality of video frames from the server to the client; Decoding and displaying the plurality of compressed video frames at the client; and analyzing timing of one or more client actions as the client receives the plurality of compressed video frames to coordinate generation of each of the plurality of compressed video frames at the server and the relative timing of the client VSYNC signal.

20. 20. The method of claim 19, further comprising periodically transmitting timestamp information associated with said plurality of frame periods from said server to said client.

21. Further, determining, at the server or at the client, a drift between a server VSYNC frequency and the client VSYNC frequency; and 20. The method of claim 19, further comprising adjusting, at the server or the client, a corresponding server VSYNC frequency or the client VSYNC frequency by one or more frame periods to compensate for the drift.

22. In adjusting the corresponding server VSYNC frequency or the client VSYNC frequency, 22. The method of claim 21, further comprising removing or adding raster scan lines in a vertical blanking interval in a frame period of a server VSYNC signal or the client VSYNC signal.

23. The adjustment of the corresponding server VSYNC frequency or the client VSYNC frequency, 22. The method of claim 21, further comprising overclocking or underclocking a corresponding clock of the server or the client.

24. A non-transitory computer readable medium storing a computer program for performing a method, comprising: program instructions for setting, at a server, a server VSYNC signal to a server VSYNC frequency, said server VSYNC signal corresponding to the generation of a plurality of video frames at said server during a plurality of frame periods of said server VSYNC frequency; having program instructions for setting a client VSYNC signal, at the client, to a client VSYNC frequency; program instructions for transmitting a plurality of compressed video frames based on the plurality of video frames from the server to the client over a network using the server VSYNC signal; the client having program instructions for decoding and displaying the plurality of compressed video frames; and A computer-readable medium having program instructions for analyzing the timing of one or more client operations when the client receives the plurality of compressed video frames and adjusting the relative timing between the server VSYNC signal and the client VSYNC signal.

25. and further comprising program instructions for transmitting timestamp information associated with the generated plurality of video frames from the server to the client; the time stamp information includes a time stamp corresponding to a corresponding video frame that was generated; 25. The computer-readable medium of claim 24, wherein the corresponding timestamp occurs at a corresponding flip time at the server or at a corresponding occurrence of the server VSYNC signal used to scan the corresponding video frame into an encoder.

26. 26. The computer readable medium of claim 25, further comprising adjusting at least one of the server VSYNC frequency and the client VSYNC frequency to be similar based on the timestamp information sent from the server to the client.

27. 25. The computer-readable medium of claim 24, further comprising program instructions for adjusting a relative phase or offset between the server VSYNC frequency and the client VSYNC signal based on the timestamp information sent from the server to the client.

28. 25. The computer readable medium of claim 24, further comprising program instructions for adjusting at least one of the server VSYNC signal and the client VSYNC signal to adjust the relative timing.

29. program instructions for determining, at the server or at the client, a drift between the server VSYNC frequency and the client VSYNC frequency; and 30. The computer readable medium of claim 28, further comprising program instructions for adjusting, at the server or the client, the server VSYNC frequency or the client VSYNC frequency by one or more frame periods to compensate for the drift.

30. The program instructions for adjusting at least one of the server VSYNC signal or the client VSYNC signal include:

30. The computer readable medium of claim 28 having program instructions for removing or adding raster scan lines in the vertical blanking interval of a frame period of a corresponding server VSYNC signal or client VSYNC signal.

31. The program instructions for adjusting at least one of the server VSYNC signal or the client VSYNC signal include:

30. The computer readable medium of claim 28 having program instructions for overclocking or underclocking a clock of the server or the client.