Method, system and equipment for reducing time delay of mobile cloud game graphic pipeline and medium
Game frames are directly extracted, encoded and sent through the cloud, bypassing vertical synchronization events and adjusting the timing of vertical synchronization events across terminals. This solves the problem of high interaction latency in mobile cloud games and achieves significant latency reduction and user experience improvement.
Patent Information
- Application Number
- CN202410672167.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-09-10
AI Technical Summary
The interaction latency in mobile cloud games is high, which affects user experience. Existing optimization solutions are limited to specific scenarios and have limited application scope.
Identify game rendering instructions through the cloud, directly extract original game frames and encode them to the client without copying, bypassing vertical synchronization events in the cloud graphics pipeline, and adjusting the timing of vertical synchronization events across terminals to reduce interaction delays. .
It significantly reduces the interaction latency of mobile cloud games, achieving ultra-low interaction latency of 82-96 milliseconds, improving user experience, and performing best in actual deployments.
Smart Images

Figure CN118615693A
Abstract
Description
Technical Field
[0001] The present application relates to the field of cloud gaming technology, and in particular to methods, systems, devices and media for reducing latency in a mobile cloud gaming graphics pipeline. Background Art
[0002] Mobile cloud gaming technology allows users to enjoy high-quality gaming experience on low-end and mid-range mobile devices, running games through cloud server virtualization and transmitting rendered graphics frames to lightweight client applications on user devices in real time.
[0003] Although mobile cloud gaming platforms have made progress in providing efficient media streaming and reducing interaction latency, the actual interaction latency is still high, which has a negative impact on user experience. Interaction latency refers to the time difference between user input operation and game response and display on the client.
[0004] Currently, the interaction delay of mobile cloud games is mainly optimized from other aspects such as network delay, video encoding delay, etc. Although there are technical solutions to reduce interaction delay by predicting video content, these solutions are usually limited to specific scenarios and have a limited scope of application.
[0005] Based on this, there is an urgent need for a method that can be widely used in cloud gaming and significantly reduce latency. Summary of the invention
[0006] The present application provides a method, system, device and medium for reducing latency of a mobile cloud gaming graphics pipeline to solve the problem of interaction latency in existing mobile cloud gaming.
[0007] In a first aspect of an embodiment of the present application, a method for reducing latency of a mobile cloud game graphics pipeline is proposed, the method comprising:
[0008] When the mobile game is running, the cloud recognizes the game rendering instructions issued by the cloud virtual machine and directly extracts the original game frames rendered by the game;
[0009] Without copying the original game frame, the original game frame is encoded and sent directly to the client to bypass the second cloud vertical synchronization event and the third cloud vertical synchronization event in the cloud graphics pipeline, wherein the second cloud vertical synchronization event is used to trigger the cloud to perform cloud layer synthesis, and the third cloud vertical synchronization event is used to trigger the cloud to perform cloud virtual display.
[0010] In an optional embodiment of the present application, the method further includes:
[0011] The cloud side aims to minimize the waiting delay of the fifth client's vertical synchronization event, and cross-endly adjusts the timing of the cloud side and the client's vertical synchronization event;
[0012] The cloud vertical synchronization event includes: a first cloud vertical synchronization event and a fourth cloud vertical synchronization event, wherein the first cloud vertical synchronization event is used to trigger the cloud to perform cloud game rendering; the fourth cloud vertical synchronization event is used to trigger the cloud to perform video encoding;
[0013] The vertical synchronization event of the client is the fifth client vertical synchronization event, which is used to trigger the client to perform video decoding.
[0014] In an optional embodiment of the present application, the method further includes:
[0015] The cloud predicts the latency of the cloud graphics pipeline at multiple stages to obtain prediction results, wherein the multiple stages include: a cloud game rendering stage, a cloud video encoding stage, a video transmission stage, and a client video decoding stage;
[0016] The cloud aims to minimize the waiting delay of the fifth client's vertical synchronization event, and cross-end adjusts the timing of the cloud and client's vertical synchronization events, including:
[0017] The cloud dynamically adjusts the timing of the first cloud vertical synchronization event and the fourth cloud vertical synchronization event according to the prediction result, so that the timing of the first cloud vertical synchronization event and the fifth client vertical synchronization event of the client are aligned.
[0018] In an optional embodiment of the present application, without copying the original game frame, the original game frame is encoded and sent directly to the client, including:
[0019] Without copying the original game frame, the original game frame is encoded and directly sent to the client at the timing of the fourth cloud vertical synchronization event.
[0020] In a second aspect of an embodiment of the present application, a system for reducing latency of a mobile cloud game graphics pipeline is provided, the system comprising:
[0021] The recognition and extraction module is used to identify the game rendering instructions issued by the cloud virtual machine when the mobile game is running in the cloud, and directly extract the original game frames rendered by the game;
[0022] The encoding transmission module is used to encode the original game frame and send it directly to the client without copying the original game frame, so as to bypass the second cloud vertical synchronization event and the third cloud vertical synchronization event in the cloud graphics pipeline, wherein the second cloud vertical synchronization event is used to trigger the cloud to perform cloud layer synthesis, and the third cloud vertical synchronization event is used to trigger the cloud to perform cloud virtual display.
[0023] In an optional embodiment of the present application, the system further includes:
[0024] A cross-end adjustment module, used in the cloud to minimize the waiting delay of the vertical synchronization event of the fifth client, and to cross-end adjust the timing of the vertical synchronization event of the cloud and the client;
[0025] The vertical synchronization event on the cloud of the cross-end adjustment module includes: a first cloud vertical synchronization event and a fourth cloud vertical synchronization event, wherein the first cloud vertical synchronization event is used to trigger the cloud to perform cloud game rendering; the fourth cloud vertical synchronization event is used to trigger the cloud to perform video encoding;
[0026] The vertical synchronization event of the client is the fifth client vertical synchronization event, which is used to trigger the client to perform video decoding.
[0027] In an optional embodiment of the present application, the system further includes:
[0028] A latency prediction module is used to predict the latency of the cloud graphics pipeline in multiple stages on the cloud side to obtain prediction results, wherein the multiple stages include: a cloud game rendering stage, a cloud video encoding stage, a video transmission stage, and a client video decoding stage;
[0029] The cross-end adjustment module includes:
[0030] The dynamic adjustment submodule is used for dynamically adjusting the timing of the first cloud vertical synchronization event and the fourth cloud vertical synchronization event according to the prediction result in the cloud, so that the timing of the first cloud vertical synchronization event and the fifth client vertical synchronization event of the client are aligned.
[0031] In an optional embodiment of the present application, the encoding transmission module includes:
[0032] The encoding submodule is used to encode the original game frame and directly send it to the client at the timing of the fourth cloud vertical synchronization event without copying the original game frame.
[0033] In a third aspect of an embodiment of the present application, an electronic device is proposed, comprising a memory, a processor, and a computer program stored on the memory, wherein the processor executes the computer program to implement the method for reducing latency of a mobile cloud gaming graphics pipeline as described in any one of the first aspects above.
[0034] In a fourth aspect of an embodiment of the present application, a computer-readable storage medium is proposed, on which a computer program / instruction is stored. When the computer program / instruction is executed by a processor, the method for reducing latency of a mobile cloud gaming graphics pipeline described in any one of the first aspects above is implemented.
[0035] The present application includes the following advantages: The present application provides a method, system, device and medium for reducing latency in a mobile cloud game graphics pipeline, which identifies game rendering instructions issued by a cloud virtual machine when a mobile game is running, and directly extracts the original game frames rendered by the game; without copying the original game frames, the original game frames are encoded and sent directly to the client, so as to bypass the second cloud vertical synchronization event and the third cloud vertical synchronization event in the cloud graphics pipeline, wherein the second cloud vertical synchronization event is used to trigger the cloud to perform cloud layer synthesis, and the third cloud vertical synchronization event is used to trigger the cloud to perform cloud virtual display. By reducing the vertical synchronization events in the graphics game pipeline, the interaction latency caused by the vertical synchronization events is reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0037] Figure 1 This is a schematic diagram of the architecture from the client to the cloud of a traditional cloud game in the prior art;
[0038] Figure 2 This is a flowchart of the steps of a method for reducing latency of a mobile cloud gaming graphics pipeline provided by an embodiment of the present application;
[0039] Figure 3 This is a schematic diagram of the architecture from a client to the cloud of a cloud game provided in an embodiment of the present application;
[0040] Figure 4 This is an architecture diagram of a system for reducing latency in a mobile cloud gaming graphics pipeline provided by an embodiment of the present application;
[0041] Figure 5 It is a schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0043] Mobile cloud gaming technology allows users to enjoy high-quality gaming experience on low-end and mid-range mobile devices, running games through cloud server virtualization and transmitting rendered graphics frames to lightweight client applications on user devices in real time. Cloud gaming refers to a form of gaming based on cloud computing and streaming technology, which can run games in the cloud and transmit rendered image streams to user devices.
[0044] Although mobile cloud gaming platforms have made progress in providing efficient media streaming and reducing interaction latency, the actual interaction latency is still high, which has a negative impact on user experience. Interaction latency refers to the time difference between user input and game response and display on the client. Mobile cloud gaming platform refers to a gaming platform based on cloud computing and streaming technology that can run mobile games on the server and stream rendered images to the user's device.
[0045] The applicant measured the latency of the current mainstream gaming platforms and found that the minimum interactive latency of mobile cloud games reached 112 milliseconds, which is 42% higher than that of console cloud games. Even if network latency is excluded, the minimum interactive latency of mobile cloud games exceeds 100 milliseconds, which is 46% higher than that of console cloud games, indicating that the processing logic of mobile cloud games is more complex. After in-depth analysis, the applicant found that the vertical synchronization (VSync) mechanism is the main cause of the high interactive latency of mobile cloud games. VSync is a graphics frame access control mechanism that is used to synchronize frame access at different stages in the graphics pipeline to prevent screen tearing. In mobile cloud games, VSync ensures the synchronous display of cloud and client graphics pipelines, but also introduces an uncertain delay of 0-16 milliseconds. The VSync mechanism is ubiquitous in various mobile cloud gaming platforms because it is a standard graphics pipeline control mechanism in mobile systems and is not affected by cloud virtualization or real-time streaming solutions.
[0046] See also Figure 1 , Figure 1 This is a schematic diagram of the architecture of a traditional cloud game client to the cloud in the prior art. The graphics processing process of mobile cloud games is complex and involves multiple stages, including multiple vertical synchronization events. Each vertical synchronization event will accumulate delays, thus significantly increasing the interaction delay. A frame of game screen may encounter up to five vertical synchronization events, specifically: the first cloud vertical synchronization event (corresponding to Figure 1 VSync1), the second cloud vertical synchronization event (corresponding to Figure 1 VSync2), the third cloud vertical synchronization event (corresponding to Figure 1 VSync3), the fourth cloud vertical synchronization event (corresponding to Figure 1 VSync4) and the fifth client vertical synchronization event (corresponding to Figure 1VSync5), resulting in up to 83 milliseconds of latency.
[0047] Currently, the interaction delay of mobile cloud games is mainly optimized from other aspects such as network delay and video encoding delay. Although there are technical solutions to reduce interaction delay by predicting video content, these solutions are usually limited to specific scenarios and have limited application scope. Among them, vertical synchronization events (VSync events) are used to control the frame rate and frame synchronization in the graphics processing pipeline. Frame synchronization refers to the mechanism for controlling the synchronization between frame rate and frames in the graphics processing pipeline. Frame rate refers to the number of image frames displayed within a certain period of time, usually expressed in frames per second (FPS). The graphics pipeline contains a series of graphics processing stages, including rendering, encoding, transmission and decoding.
[0048] Therefore, although the VSync mechanism plays an important role in frame synchronization in graphics processing, in mobile cloud games, due to the complexity of graphics processing logic and the uncertain delay introduced by vertical synchronization events, VSync has become one of the main reasons for high interaction latency. Based on this, an embodiment of the present application provides a method for reducing latency in a mobile cloud gaming graphics pipeline, which reduces and adjusts vertical synchronization events to reduce the interaction latency caused by vertical synchronization events. The core is to separate game rendering from lengthy cloud processing processes, but this method has the following problems that need to be solved:
[0049] (1) Complex graphics processing logic: Game rendering involves complex collaboration of multiple core modules in the cloud processing flow, so extracting game frames in advance may introduce very large overhead.
[0050] (2) Accurate prediction of full-loop latency: In order to adjust the VSync timing between the cloud and the client, the latency of each processing stage on the cloud and the client needs to be accurately predicted. Otherwise, the client may lose frames, affecting the user experience.
[0051] (3) Accurate adjustment of VSync across networks: When VSync is adjusted through predicted data, it is very likely to affect the cloud game rendering frame rate or video encoding frame rate, causing the frame rate to drop or become unstable, affecting the user experience.
[0052] In order to address the above problems, the method for reducing latency of the mobile cloud game graphics pipeline proposed in this application is as follows: Figure 2 , Figure 2 This is a flowchart of a method for reducing latency of a mobile cloud gaming graphics pipeline provided by an embodiment of the present application, the method comprising the following steps:
[0053] Step 201: When the mobile game is running, the cloud identifies the game rendering instructions issued by the cloud virtual machine and directly extracts the original game frames rendered by the game.
[0054] Step 202: Encode the original game frame and send it directly to the client without copying the original game frame, so as to bypass the second cloud vertical synchronization event and the third cloud vertical synchronization event in the cloud graphics pipeline, wherein the second cloud vertical synchronization event is used to trigger the cloud to perform cloud layer synthesis, and the third cloud vertical synchronization event is used to trigger the cloud to perform cloud virtual display.
[0055] In order to clearly explain in detail the method for reducing latency of the mobile cloud game graphics pipeline proposed in the embodiment of the present application, Figure 3 For example, Figure 3 This is a schematic diagram of the architecture from client to cloud of a cloud game provided in an embodiment of the present application.
[0056] When the step 201 is specifically implemented, during the operation of the cloud game, when the cloud receives the user input command from the client and recognizes the game rendering command issued by the cloud virtual machine, it is not necessary to follow the traditional method: firstly perform layer synthesis on the image to be rendered, that is, combine the game screen and the system UI screen frame together, display them on the display screen, and then virtually display them, that is, drive the display screen through the third cloud vertical event (see Figure 1 ), directly extract the original game frames rendered by the game. That is, through cross-layer collaboration between the cloud client operating system and the host machine GPU device, the rendering instructions issued by the game in the cloud virtual machine are identified, and the original game frames rendered by the game are directly extracted inside the host machine GPU. The cloud client operating system refers to a computer or device that sends requests to the server and receives responses in a client-server model, usually used to access services or resources. The host machine refers to a physical computer or server that hosts virtual machine instances in a virtualized environment, responsible for providing computing, storage, and network resources to support virtualized workloads.
[0057] When step 202 is specifically implemented, the original game frame is encoded and sent directly to the client without copying the original game frame. This operation is Figure 3 The original game frame is captured, and the original game frame is extracted with zero copy, and the original game frame is encoded and transmitted. The above operation can bypass the second cloud vertical synchronization event and the third cloud vertical synchronization event in the cloud graphics pipeline. The second cloud vertical synchronization event is used to trigger the cloud to perform cloud layer synthesis, and the third cloud vertical synchronization event is used to trigger the cloud to perform cloud virtual display. The game frame is directly extracted and encoded inside the host machine GPU to avoid frame copying between the CPU and GPU, reduce vertical synchronization events in the graphics game pipeline, and reduce the interaction delay caused by vertical synchronization events.
[0058] In an optional embodiment of the present application, in addition to reducing vertical synchronization events in the cloud gaming graphics pipeline to reduce latency, the present application also adjusts VSync events by predicting the latency of each stage of the cloud gaming graphics pipeline to achieve the purpose of reducing latency. Specifically, the cloud adjusts the timing of vertical synchronization events of the cloud and client across the ends with the goal of minimizing the waiting latency of the fifth client vertical synchronization event; the above-mentioned adjustment of the vertical synchronization events with the cloud includes: a first cloud vertical synchronization event and a fourth cloud vertical synchronization event, wherein the first cloud vertical synchronization event is used to trigger the cloud to perform cloud game rendering; the fourth cloud vertical synchronization event is used to trigger the cloud to perform video encoding. The adjusted client's vertical synchronization event is the fifth client vertical synchronization event, and the fifth client vertical synchronization event is used to trigger the client to perform video decoding.
[0059] In an optional embodiment of the present application, the method for adjusting the VSync event by predicting the delay of each stage of the cloud game graphics pipeline is specifically as follows: first, the cloud predicts the delay of the above-mentioned cloud graphics pipeline in multiple stages to obtain a prediction result, wherein the predicted multiple stages include at least: cloud game rendering stage, cloud video encoding stage, video transmission stage and client video decoding stage. In the present application, a hierarchical time series prediction method is used to predict the delay of multiple stages in the cloud graphics pipeline. The method is used to predict time series data with a hierarchical structure, and can make accurate predictions at different levels, such as predicting overall trends and local changes. Then, the cloud adjusts the timing of the vertical synchronization events of the cloud and the client across the end with the goal of minimizing the waiting delay of the fifth client vertical synchronization event, including: the cloud dynamically adjusts the timing of the first cloud vertical synchronization event and the fourth cloud vertical synchronization event according to the above prediction results, so that the timing of the first cloud vertical synchronization event and the fifth client vertical synchronization event of the client is aligned. In the present application, the dynamic adjustment of the timing of the first cloud vertical synchronization event and the fourth cloud vertical synchronization event is completed by the VSync remote coordination algorithm (see Figure 3 VSync Remote Coordination in ).
[0060] For example, assuming that the cloud has a latency of 10 milliseconds in the cloud game rendering phase, a latency of 2 milliseconds in the cloud video encoding phase, a latency of 2 milliseconds in the video decoding phase, and a fixed video transmission latency of 20 milliseconds, then the total latency in the above phases is 34 milliseconds, and the latency of the fifth vertical synchronization event is 34 milliseconds. Assume that the triggering time points of the first cloud vertical synchronization event are 0 milliseconds, 16 milliseconds, 32 milliseconds, and 48 milliseconds, that is, it is triggered every 16 milliseconds. When the moment is at 0 milliseconds, the first cloud vertical synchronization event is triggered, and it reaches the client for decoding after 34 milliseconds, and the decoding is completed, then the fifth vertical synchronization event should be performed at this time. Since the fifth vertical synchronization event has been triggered at the 33rd millisecond, if the first cloud vertical synchronization event is triggered, it reaches the client for decoding after 34 milliseconds, then the game frame decoded at the 33rd millisecond will need to wait for (33+16) milliseconds before image synthesis can be performed. However, in the present application, after knowing the delay of each stage, the time after the first cloud vertical synchronization event is triggered is adjusted from 34 milliseconds to 33 milliseconds, so that the game frame can be directly synthesized after decoding without waiting, thereby minimizing the waiting delay of the fifth client vertical synchronization event.
[0061] The above method accurately predicts the latency of each stage of the cloud game graphics pipeline, and enables the cloud and client to work together to synchronize the rendering of the game and the client, minimizing the waiting latency of the fifth client vertical synchronization event. Through the VSync remote control algorithm that collaborates between the cloud and the client, the timing of game rendering and video encoding is dynamically adjusted using the time series prediction results, so that the cloud video encoding and the client video display can basically avoid waiting for the fifth vertical synchronization event, while ensuring that the frame rate of game rendering and video is stable without affecting the user experience.
[0062] In an optional embodiment of the present application, the original game frame is encoded and sent directly to the client without copying the original game frame, including: without copying the original game frame, at the timing of the fourth cloud vertical synchronization event, the original game frame is encoded and sent directly to the client.
[0063] In order to comprehensively evaluate the effectiveness and adaptability of the method for reducing latency of a mobile cloud gaming graphics pipeline provided by the present application, the relevant technologies of the above method were deployed on the cloud infrastructure of a mainstream mobile cloud gaming platform A, and compared with the remaining four mainstream mobile cloud gaming platforms (B, C, D, E). The experimental results show that the method of the present application reduces the interaction latency of the mainstream mobile cloud gaming platform A by an average of 35%, achieving an ultra-low interaction latency of 82-96 milliseconds (91 milliseconds on average), and is 40% lower than the best performing platform among the remaining four mobile cloud gaming platforms (B, C, D, E). It can be seen from the above experimental results that the method for reducing latency proposed in the present application has achieved remarkable results in actual deployment, stably controlling the interaction latency of mobile cloud games within 100 milliseconds, effectively improving the mobile cloud gaming user experience, and providing important reference and technical support for the development and optimization of mobile cloud gaming platforms.
[0064] The present application provides a method for reducing latency in a mobile cloud game graphics pipeline, which directly extracts the original game frames rendered by the game by identifying the game rendering instructions issued by the cloud virtual machine when the mobile game is running; without copying the original game frames, the original game frames are encoded and sent directly to the client, so as to bypass the second cloud vertical synchronization event and the third cloud vertical synchronization event in the cloud graphics pipeline, wherein the second cloud vertical synchronization event is used to trigger the cloud to perform cloud layer synthesis, and the third cloud vertical synchronization event is used to trigger the cloud to perform cloud virtual display. By reducing the vertical synchronization events in the graphics game pipeline, the interaction latency caused by the vertical synchronization events is reduced.
[0065] In a second aspect of the present application, a system for reducing latency of a mobile cloud gaming graphics pipeline is provided. Figure 4 , Figure 4 : is an architecture diagram of a system for reducing latency of a mobile cloud gaming graphics pipeline provided by an embodiment of the present application, the system comprising:
[0066] The identification and extraction module 401 is used to identify the game rendering instructions issued by the cloud virtual machine when the mobile game is running in the cloud, and directly extract the original game frames rendered by the game;
[0067] The encoding and transmission module 402 is used to encode the original game frame and send it directly to the client without copying the original game frame, so as to bypass the second cloud vertical synchronization event and the third cloud vertical synchronization event in the cloud graphics pipeline. The second cloud vertical synchronization event is used to trigger the cloud to perform cloud layer synthesis, and the third cloud vertical synchronization event is used to trigger the cloud to perform cloud virtual display.
[0068] Wherein, the system further comprises:
[0069] A cross-end adjustment module, used in the cloud to minimize the waiting delay of the vertical synchronization event of the fifth client, and to cross-end adjust the timing of the vertical synchronization event of the cloud and the client;
[0070] The vertical synchronization event on the cloud of the cross-end adjustment module includes: a first cloud vertical synchronization event and a fourth cloud vertical synchronization event, wherein the first cloud vertical synchronization event is used to trigger the cloud to perform cloud game rendering; the fourth cloud vertical synchronization event is used to trigger the cloud to perform video encoding;
[0071] The vertical synchronization event of the client is the fifth client vertical synchronization event, which is used to trigger the client to perform video decoding.
[0072] Wherein, the system further comprises:
[0073] A latency prediction module is used to predict the latency of the cloud graphics pipeline in multiple stages on the cloud side to obtain prediction results, wherein the multiple stages include: a cloud game rendering stage, a cloud video encoding stage, a video transmission stage, and a client video decoding stage;
[0074] The cross-end adjustment module includes:
[0075] The dynamic adjustment submodule is used for dynamically adjusting the timing of the first cloud vertical synchronization event and the fourth cloud vertical synchronization event according to the prediction result in the cloud, so that the timing of the first cloud vertical synchronization event and the fifth client vertical synchronization event of the client are aligned.
[0076] Wherein, the encoding transmission module includes:
[0077] The encoding submodule is used to encode the original game frame and directly send it to the client at the timing of the fourth cloud vertical synchronization event without copying the original game frame.
[0078] Based on the same application concept, the embodiment of the present application discloses an electronic device in a third aspect. Figure 5 A schematic diagram of an electronic device disclosed in an embodiment of the present application is shown. Figure 5 As shown, the electronic device 100 includes: a memory 110 and a processor 120, the memory of the electronic device is not less than 12G, the main frequency of the processor is not less than 2.4GHz, the memory 110 and the processor 120 are connected through a bus communication, and a computer program is stored in the memory 110. The computer program can be run on the processor 120 to implement a method for reducing latency of a mobile cloud gaming graphics pipeline disclosed in an embodiment of the present application.
[0079] Based on the same application concept, the fourth aspect of the embodiment of the present application discloses a computer-readable storage medium, on which a computer program / instruction is stored. When the computer program / instruction is executed by a processor, a method for reducing latency of a mobile cloud gaming graphics pipeline disclosed in the embodiment of the present application is implemented.
[0080] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0081] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, apparatuses, electronic devices, and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0082] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0083] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0084] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0085] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0086] The above is a detailed introduction to the method, system, device and medium for reducing latency of a mobile cloud gaming graphics pipeline provided by the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for reducing latency in a mobile cloud gaming graphics pipeline, characterized in that: The method comprises: When the mobile game is running, the cloud recognizes the game rendering instructions issued by the cloud virtual machine and directly extracts the original game frames rendered by the game; Without copying the original game frame, the original game frame is encoded and sent directly to the client to bypass the second cloud vertical synchronization event and the third cloud vertical synchronization event in the cloud graphics pipeline, wherein the second cloud vertical synchronization event is used to trigger the cloud to perform cloud layer synthesis, and the third cloud vertical synchronization event is used to trigger the cloud to perform cloud virtual display.
2. The method for reducing latency of a mobile cloud gaming graphics pipeline according to claim 1, characterized in that: The method further comprises: The cloud side adjusts the timing of the vertical synchronization events of the cloud side and the client side across the terminals with the goal of minimizing the waiting delay of the vertical synchronization events of the fifth client side; The cloud vertical synchronization event includes: a first cloud vertical synchronization event and a fourth cloud vertical synchronization event, wherein the first cloud vertical synchronization event is used to trigger the cloud to perform cloud game rendering; the fourth cloud vertical synchronization event is used to trigger the cloud to perform video encoding; The vertical synchronization event of the client is the fifth client vertical synchronization event, which is used to trigger the client to perform video decoding.
3. The method for reducing latency of a mobile cloud gaming graphics pipeline according to claim 2, characterized in that: The method further comprises: The cloud predicts the latency of the cloud graphics pipeline at multiple stages to obtain prediction results, wherein the multiple stages include: a cloud game rendering stage, a cloud video encoding stage, a video transmission stage, and a client video decoding stage; The cloud aims to minimize the waiting delay of the fifth client's vertical synchronization event, and cross-end adjusts the timing of the cloud and client's vertical synchronization events, including: The cloud dynamically adjusts the timing of the first cloud vertical synchronization event and the fourth cloud vertical synchronization event according to the prediction result, so that the timing of the first cloud vertical synchronization event and the fifth client vertical synchronization event of the client are aligned.
4. The method for reducing latency of a mobile cloud gaming graphics pipeline according to claim 2 or 3, characterized in that: Without copying the original game frame, encoding the original game frame and directly sending it to the client, including: Without copying the original game frame, the original game frame is encoded and directly sent to the client at the timing of the fourth cloud vertical synchronization event.
5. A system for reducing latency in a mobile cloud gaming graphics pipeline, characterized in that: The system comprises: The recognition and extraction module is used to identify the game rendering instructions issued by the cloud virtual machine when the mobile game is running in the cloud, and directly extract the original game frames rendered by the game; The encoding transmission module is used to encode the original game frame and send it directly to the client without copying the original game frame, so as to bypass the second cloud vertical synchronization event and the third cloud vertical synchronization event in the cloud graphics pipeline, wherein the second cloud vertical synchronization event is used to trigger the cloud to perform cloud layer synthesis, and the third cloud vertical synchronization event is used to trigger the cloud to perform cloud virtual display.
6. The system for reducing latency of mobile cloud gaming graphics pipeline according to claim 5, characterized in that: The system further comprises: A cross-end adjustment module, used in the cloud to minimize the waiting delay of the vertical synchronization event of the fifth client, and to cross-end adjust the timing of the vertical synchronization event of the cloud and the client; The vertical synchronization event on the cloud of the cross-end adjustment module includes: a first cloud vertical synchronization event and a fourth cloud vertical synchronization event, wherein the first cloud vertical synchronization event is used to trigger the cloud to perform cloud game rendering; the fourth cloud vertical synchronization event is used to trigger the cloud to perform video encoding; The vertical synchronization event of the client is the fifth client vertical synchronization event, which is used to trigger the client to perform video decoding.
7. The system for reducing latency of mobile cloud gaming graphics pipeline according to claim 6, characterized in that: The system further comprises: A latency prediction module is used to predict the latency of the cloud graphics pipeline in multiple stages on the cloud side to obtain prediction results, wherein the multiple stages include: a cloud game rendering stage, a cloud video encoding stage, a video transmission stage, and a client video decoding stage; The cross-end adjustment module includes: The dynamic adjustment submodule is used for dynamically adjusting the timing of the first cloud vertical synchronization event and the fourth cloud vertical synchronization event according to the prediction result in the cloud, so that the timing of the first cloud vertical synchronization event and the fifth client vertical synchronization event of the client are aligned.
8. The system for reducing latency of mobile cloud gaming graphics pipeline according to claim 6 or 7, characterized in that: The encoding transmission module comprises: The encoding submodule is used to encode the original game frame and directly send it to the client at the timing of the fourth cloud vertical synchronization event without copying the original game frame.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the method for reducing latency of the mobile cloud gaming graphics pipeline according to any one of claims 1-4.
10. A computer-readable storage medium, characterized in that: A computer program / instruction is stored thereon, which, when executed by a processor, implements the method for reducing latency of a mobile cloud gaming graphics pipeline as described in any one of claims 1-4.
