Method, device, equipment, medium and product for improving cloud game experience

By detecting the network environment in cloud games and switching to local game mode, the cloud game package is split into basic packets and scene packets. The client downloads and runs them as plug-ins, which solves the problem of poor cloud gaming experience in weak network environments. problem, achieving game fluency and reducing bandwidth requirements.

CN118526786APending Publication Date: 2024-08-23MIGU INTERACTIVE ENTERTAINMENT CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410589031.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-13
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing cloud gaming technology cannot run smoothly in weak network environments and relies on high network bandwidth, resulting in poor gaming experience.

Method used

By detecting the network environment, switching to local game mode, and splitting the cloud game package into basic packets and scene packets, the client downloads and runs them as plug-ins, reducing network transmission volume and improving game fluency.

Benefits of technology

It realizes the smooth operation of cloud games in weak network environments, reduces the demand for network bandwidth, and improves the gaming experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118526786A
    Figure CN118526786A
Patent Text Reader

Abstract

The invention discloses a method, a device, equipment, a medium and a product for improving cloud game experience, and relates to the technical field of cloud games, the method comprises the following steps: detecting a current network environment, and switching a cloud game mode into a local game mode when the current network environment is in a weak network environment; in the cloud game mode, loading a complete game package of the cloud to play a game; and in the local game mode, the cloud divides the complete game packet into a plurality of cloud game packets according to the scene of the game, and uploads the plurality of cloud game packets to the server for the client to download and run the game. The cloud game can be normally carried out under the condition that the network state is good, the cloud game can be converted into a local game for operating a plurality of cloud game packages under the weak network environment, the requirement for the network bandwidth is reduced through plug-in operation, and the game operation fluency under the weak network environment is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cloud gaming technology, and in particular to a method, device, equipment, medium and product for improving cloud gaming experience. Background Art

[0002] Cloud games run on cloud instances. By recording the screen, the video stream is encoded and transmitted to the player client through the network. The client decodes and renders it on the player's mobile phone screen. The cloud game experience is heavily dependent on the network environment. In a weak network environment, to improve the cloud game experience, existing technical solutions all act on the links of "cloud screen rendering--video recording--video encoding--data packaging--data sending--data receiving--data unpacking--video decoding--rendering display", and optimize a single link or multiple links to improve the cloud game experience.

[0003] The existing technology usually takes the following measures to optimize these links: the optimization of video recording is specifically: according to different network environments, different recording qualities are selected; the recording is optimized, memory copies are reduced, etc.; the optimization of encoding algorithms is specifically: more efficient encoding algorithms are adopted, and encoding algorithms are optimized to achieve the same video quality, higher compression ratio, and smaller amount of video data to be transmitted; the optimization of the transmission process is specifically: using optimized algorithms to more intelligently control network transmission congestion strategies, optimize packet loss and retransmission strategies during network transmission, and optimize network jitter processing; the optimization of the client decoding process is specifically: according to different client terminal devices, hard decoding / soft decoding is selected to make the client decoding faster and more efficient, etc.; the above is the existing technology for optimizing cloud gaming experience, which focuses on algorithm optimization of each link in the cloud gaming process to improve the experience.

[0004] However, the existing solutions still rely heavily on network conditions. Cloud games have a threshold for network bandwidth to ensure basic gaming effects, because it is audio and video data transmission. No matter how favorable the algorithm is and how high the audio and video compression ratio is, the data volume is still large. In the case of low bandwidth, cloud games cannot be played smoothly. Summary of the invention

[0005] The present invention provides a method, device, equipment, medium and product for improving the cloud gaming experience, which can effectively realize normal cloud gaming when the network status is good, and convert it into a local game running several cloud game packages in a weak network environment. It runs through plug-ins, reduces the demand for network bandwidth, and ensures the smoothness of game operation in a weak network environment.

[0006] The present invention provides a method for improving cloud gaming experience, comprising:

[0007] Detect the current network environment and switch the cloud game mode to local game mode when the network is weak;

[0008] In cloud gaming mode, load the complete game package from the cloud to play the game;

[0009] In local game mode, the cloud splits the complete game package into several cloud game packages according to the game scenario, and uploads several cloud game packages to the server for the client to download and run the game.

[0010] Preferably, the plurality of cloud game packages include a basic small package for running cloud games and a plurality of scene small packages for running different scenes.

[0011] Preferably, the client downloads the plurality of cloud game packages in the following manner:

[0012] The client downloads the basic package when the user starts running the game, then detects the user's current game scene in a weak network environment, and caches subsequent scene packages of the user's current game scene.

[0013] Preferably, the number of scene packets subsequent to the cached user's current game scene is counted by the following method:

[0014] Count the user's recent play time to get several time periods of the user's play. After removing the short online time periods, get the average play time of each time period. Weight the average play time of each time period to get the total play time.

[0015] Based on other user data, record the play time of different scenes to determine whether the play time is fixed. If it is fixed, determine whether to provide different speeds based on the play time; if it is not fixed, calculate the average play time;

[0016] According to the user's total play time, the play time in different scenarios and the current time, the number of scenario packets to be sent is calculated.

[0017] Preferably, the process of running the game is specifically as follows:

[0018] When the basic package in the cloud game package is downloaded, the shadow API is called to install the plug-in, and the scene package is decompressed to the predetermined location. After that, the basic package runs as a plug-in in the client. When the client reads the scene package of the relevant level from the predetermined location, the game starts.

[0019] Preferably, data synchronization between the cloud game mode and the local game mode is also included, specifically:

[0020] In the cloud gaming mode, the client's user information is transmitted to the cloud gaming via the communication SDK;

[0021] When the cloud game mode is switched to the local game mode, the client's user information is passed to the plug-in.

[0022] Preferably, the data synchronization is implemented in the following manner:

[0023] The plug-in reads local storage and parses the user information cached by the client. The cloud game integrates the game SDK. In the game SDK, the client user information is read and parsed.

[0024] A device for improving cloud gaming experience, comprising:

[0025] The mode switching module is used to detect the current network environment and switch the cloud game mode to the local game mode when the network is weak;

[0026] The cloud game module is used to load the complete game package from the cloud to play the game in the cloud game mode;

[0027] The local game module is used in the local game mode. The cloud splits the complete game package into several cloud game packages according to the game scene, and uploads several cloud game packages to the server for the client to download and run the game.

[0028] A device comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements a method for improving cloud gaming experience when executing the computer program.

[0029] A computer-readable storage medium, the computer-readable storage medium including a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the method for improving cloud gaming experience.

[0030] A computer program product includes a computer program / instruction, which, when executed by a processor, implements the steps of a method for improving cloud gaming experience.

[0031] Compared with the prior art, the present invention has the following beneficial effects:

[0032] The present invention discloses a method, device, equipment, medium and product for improving cloud gaming experience, which can effectively realize normal cloud gaming when the network status is good, and convert it into a local game running several cloud game packages in a weak network environment. It runs through plug-ins, reduces the demand for network bandwidth, and ensures the smoothness of game operation in a weak network environment. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 This is a flow chart of a method for improving cloud gaming experience provided by an embodiment of the present invention;

[0034] Figure 2 This is a schematic diagram of splitting a complete game package provided by an embodiment of the present invention;

[0035] Figure 3 It is a schematic diagram of the operation of the plug-in provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0036] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0037] See also Figure 1 , a method for improving cloud gaming experience, comprising:

[0038] Detect the current network environment and switch the cloud game mode to local game mode when the network is weak;

[0039] In cloud gaming mode, load the complete game package from the cloud to play the game;

[0040] In local game mode, the cloud splits the complete game package into several cloud game packages according to the game scenario, and uploads several cloud game packages to the server for the client to download and run the game.

[0041] In the above solution, the game is switched to local game mode in a weak network environment; the complete game package is transformed into several cloud game packages, namely the basic package + independent level package, and each basic package + random level package can be run; the server dynamically sends the number of levels for download based on the estimated playing time of the user, and runs in a plug-in manner, and the user experience is disguised as a "game loading mode" similar to video cache loading.

[0042] Specifically, the standards for detecting whether the current network environment is in a weak network environment are:

[0043] When the client detects high latency, freezes, or even a black screen in cloud gaming, it determines that the network environment is weak.

[0044] Preferably, the plurality of cloud game packages include a basic small package for running cloud games and a plurality of scene small packages for running different scenes.

[0045] In the above solution, cloud games provide two types of packages. One is the complete game package in the cloud; the second is the cloud game package corresponding to the current scene, which is in the form of a basic small package + a scene small package.

[0046] The complete game package is stored in the cloud, and the cloud game corresponds to the complete game package;

[0047] The game's integrated package and n scene packages are deployed to the server for clients to download and use.

[0048] When the user opens the client to play the game, the game is played in the cloud game mode. When the network environment is poor, the cloud game latency is high, the game is stuck or even black screen is detected, the user is prompted to download the scene package of the current level in the background. After the download is completed, the game level is run in a plug-in mode, switching from cloud game to local game current level. When the level is finished, it switches to cloud game mode again.

[0049] See also Figure 2 , the cloud game package contains many levels, and the package size is getting bigger and bigger. A complete game package is split into a basic package + level 1 package + level 2 package + level n package. The main adjustments are made to the game code and resource structure organization, so that the basic package, basic package + any level package can be run, the level package is unzipped to a fixed location, and the game loads level resources from the same directory.

[0050] For an embodiment of the present solution, here we take Defend Carrot 4 as an example, the complete game package is about 1G; it is split into 1 basic small package of about 100M + n level small packages of dozens to 100M.

[0051] Preferably, the client downloads the plurality of cloud game packages in the following manner:

[0052] The client downloads the basic package when the user starts running the game, then detects the user's current game scene in a weak network environment, and caches subsequent scene packages of the user's current game scene.

[0053] In the above scheme, when it is detected that the user is running the game, the basic small package is downloaded, and then when it is detected that the current network status is poor, the level of the user's current game is detected, and the levels that the user needs to play later in the current game level are cached level by level.

[0054] Preferably, the number of scene packets subsequent to the current game scene of the cached user is counted by the following method:

[0055] Count the user's recent play time to get several time periods of the user's play. After removing the short online time periods, get the average play time of each time period. Weight the average play time of each time period to get the total play time.

[0056] Based on other user data, record the play time of different scenes to determine whether the play time is fixed. If it is fixed, determine whether to provide different speeds based on the play time; if it is not fixed, calculate the average play time;

[0057] The number of scene packets to be sent is calculated based on the user's total play time, the play time in different scenes, and the current scene.

[0058] For an embodiment of this solution, the number of levels that need to be cached in a weak network environment can be determined by the following estimation algorithm, specifically:

[0059] Step 1: Count the current player's recent play time and divide the current player's main play time period, such as 12:30-1:30 noon (recorded as Q1) and 9:00-11:00 pm (recorded as Q2). If the current time is not in Q1 or Q2, generate a time interval Q3 based on the current time. In each interval, remove the particularly short play time first, and then calculate the average usage time P in the time interval. Qx , according to P Qx Estimate how long the current player is expected to play, recorded as W, as follows:

[0060] W=aP Q1 +bP Q2 +cP Q3 , a, b, c are coefficients, a+b+c=1,

[0061] Initial values: a = 0.25, b = 0.25, c = 0.5, P Q3 is the average play time in the current time interval. The algorithm uses a machine learning algorithm to calculate the accuracy based on the end user's play time to modify parameters a, b, and c.

[0062] Step 2, based on other players’ data, record the playing time of different levels. First, determine whether the game level time is fixed based on these times. If it is fixed, count how many fixed times there are and determine whether different speeds are provided. For example, in Defend Carrot 4, a tower defense game, the level time is fixed and different game speeds are provided; if it is not fixed, calculate the average value. The level time is recorded as T x .

[0063] Step 3: Calculate how many level packages should be sent based on the estimated player playing time W and the current level, the time taken by different levels, and the current level x:

[0064] W≈T x +T x+1 ...

[0065] For example, if W is approximately equal to the sum of the time of the current level x and the next level x+1, the server will send the download links of the current level and the next level.

[0066] Preferably, the process of running the game in a plug-in manner is specifically as follows:

[0067] When the basic package in the cloud game package is downloaded, the shadow API is called to install the plug-in, and the scene package is decompressed to the predetermined location. After that, the basic package runs as a plug-in in the client. When the client reads the scene package of the relevant level from the predetermined location, the game starts.

[0068] See also Figure 3 The basic package is run in the client as a plug-in in the following way:

[0069] The client integrates the plug-in shadow sdk; Shadow uses dynamic code loading and bytecode editing tools to change the parent class of all activities in the plug-in into a common class during compilation, and then let the shadow middle layer hold this common type of parent class to transfer the plug-in. The client acts as the host to run the installation-free plug-in.

[0070] In the above solution, the client integrates the plug-in shadow sdk, and the client runs as the host; Shadow plug-in technology adopts dynamic code loading, and through the application of AOP thinking and bytecode editing tools, the parent class of all Activities in the plug-in is changed to a common class during the compilation period, and then the shadow middle layer holds this common type of parent class to transfer the plug-in, thereby realizing the installation-free plug-in.

[0071] When the client detects that the cloud game has high latency, freezes, or a black screen and cannot be restored for a certain period of time, it will prompt and guide the player to download a small package. After the download is complete, the current level of the game will be dynamically loaded and run in a plug-in manner.

[0072] When there are multiple download URL lists issued, the basic package and the current level package are downloaded first. After completion, other level packages are downloaded in multiple threads.

[0073] When the basic package is downloaded, the shadow API is called to install the plug-in, and the level resource package is unzipped to the predetermined location. After the plug-in is completed, the client runs the plug-in, and the game basic package runs as a plug-in. When the game reads the level resources from the predetermined resource location, it starts playing the current level.

[0074] For an embodiment of the present solution, taking the Unity engine game as an example, the dynamic loading and playing of the level is completed by means of Lua hot-changing game play logic + resource hot-changing; the dynamic loading of level resources here utilizes the hot-changing function of the game itself.

[0075] Lua heat is to convert logic code into scripts, scripts into text resources, and update the program in the form of updated resources; resource heat is mainly implemented through AssetBundle. In the Unity editor, specify the AB package name and suffix for the resources used in the game, then package and upload them to the game server, and dynamically load the AB resource package on the server when the game is running.

[0076] When the network environment is very poor, it will have a great impact on the cloud gaming experience, but it will have little impact on the background download of small packages, because the small packages are small and the download time is also little affected.

[0077] At this time, with the operation of local basic small packages + levels, there is no transmission of audio and video data, and the amount of data transmission relying on the network decreases exponentially, and the gaming experience is greatly improved compared to cloud gaming.

[0078] Cloud gaming - switching between local game level plug-in operations not only requires the transmission of player information to ensure the integrity of the game progress; it also needs to be as smooth as possible to provide a better experience without any perception to the user.

[0079] Preferably, data synchronization between the cloud game mode and the local game mode is also included, specifically:

[0080] In the cloud gaming mode, the client's user information is transmitted to the cloud gaming via the communication SDK;

[0081] When the cloud game mode is switched to the local game mode, the client's user information is passed to the plug-in.

[0082] Preferably, the data synchronization is implemented in the following manner:

[0083] The plug-in reads local storage and parses the user information cached by the client. The cloud game integrates the game SDK. In the game SDK, the client user information is read and parsed.

[0084] In the above scheme, when playing cloud games, the user information of the client after logging in is passed to the cloud game through the cloud game platform communication SDK. When the cloud game switches to the local level game, the user information of the client needs to be passed to the plug-in, that is, the local level game.

[0085] There are two ways to achieve this:

[0086] 1. When the host starts the plug-in, it passes the user information to the plug-in through parameters. The plug-in parses and obtains the user information, but each game needs to do additional processing.

[0087] 2. For the user information cached by the client, the plug-in can read the local storage and parse the user information. By integrating the game SDK, we can read and parse the user information of the Kuaiyou client in the game SDK.

[0088] With the second method, user information is exchanged during synchronous switching, and the SDK completes the reading and parsing of user information, without the need for the game to do additional processing.

[0089] In the above solution, shadow plug-in technology is used to achieve seamless switching of local level games, providing a technical basis for hiding switching traces. At the same time, the UI experience also needs to hide technical details and optimize the UI. The cache of the category video reconceptualizes the basic package download + level download as "cached game level": when the user is playing cloud games while downloading, the download progress bar is designed as a video-like cache progress bar; when the network is very poor and the cloud game cannot be played normally, it will be displayed as loading the cloud game.

[0090] For an embodiment of the present solution, it can also be extended to other types of quick games besides the level game type. When modifying the game package, the game package can be split according to the characteristics of the game, and the solution can be expanded to other types of quick games.

[0091] For example, for open-scene quick games, the game package can be split according to the game scene, and the game package can be split into a basic game package + a game scene package; for role-playing quick games, the game package can be split according to the development of the storyline, and the game package can be split into a basic game package + a storyline package.

[0092] A device for improving cloud gaming experience, comprising:

[0093] The mode switching module is used to detect the current network environment and switch the cloud game mode to the local game mode when the network is weak;

[0094] The cloud game module is used to load the complete game package from the cloud to play the game in the cloud game mode;

[0095] The local game module is used in the local game mode. The cloud splits the complete game package into several cloud game packages according to the game scene, and uploads several cloud game packages to the server for the client to download and run the game.

[0096] A device comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements a method for improving cloud gaming experience when executing the computer program.

[0097] A computer-readable storage medium, the computer-readable storage medium including a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the method for improving cloud gaming experience.

[0098] A computer program product includes a computer program / instruction, which, when executed by a processor, implements the steps of a method for improving cloud gaming experience.

[0099] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A method for improving cloud gaming experience, characterized in that: include: Detect the current network environment and switch the cloud game mode to local game mode when the network is weak; In cloud gaming mode, load the complete game package from the cloud to play the game; In local game mode, the cloud splits the complete game package into several cloud game packages according to the game scenario, and uploads several cloud game packages to the server for the client to download and run the game.

2. A method for improving cloud gaming experience according to claim 1, characterized in that: The several cloud game packages include a basic package for running cloud games and several scene packages for running different scenes.

3. A method for improving cloud gaming experience according to claim 2, characterized in that: The specific method for the client to download the plurality of cloud game packages is as follows: The client downloads the basic package when the user starts running the game; Detect the user's current game scene in a weak network environment and cache subsequent scene packets of the user's current game scene.

4. A method for improving cloud gaming experience according to claim 3, characterized in that: The number of scene packets subsequent to the current game scene of the cached user is counted by the following method: Count the user's recent play time to get several time periods of the user's play. After removing the short online time periods, get the average play time of each time period. Weight the average play time of each time period to get the total play time. Based on other user data, record the play time of different scenes to determine whether the play time is fixed. If fixed, determine whether to provide different speeds based on the play time; If it is not fixed, calculate the average of the play time; According to the user's total play time, the play time in different scenarios and the current time, the number of scenario packets to be sent is calculated.

5. A method for improving cloud gaming experience according to claim 4, characterized in that: The specific process of running the game is: When the basic package in the cloud game package is downloaded, the shadow API is called to install the plug-in, and the scene package is decompressed to the predetermined location. After that, the basic package runs as a plug-in in the client. When the client reads the scene package of the relevant level from the predetermined location, the game starts.

6. A method for improving cloud gaming experience according to claim 1, characterized in that: It also includes data synchronization between cloud game mode and local game mode, specifically: In the cloud gaming mode, the client's user information is transmitted to the cloud gaming via the communication SDK; When the cloud game mode is switched to the local game mode, the client's user information is passed to the plug-in; The data synchronization is specifically implemented as follows: The plug-in reads local storage and parses the user information cached by the client. The cloud game integrates the game SDK. In the game SDK, the client user information is read and parsed.

7. A device for improving cloud gaming experience, characterized in that: include: The mode switching module is used to detect the current network environment and switch the cloud game mode to the local game mode when the network is weak; The cloud game module is used to load the complete game package from the cloud to play the game in the cloud game mode; The local game module is used in the local game mode. The cloud splits the complete game package into several cloud game packages according to the game scene, and uploads several cloud game packages to the server for the client to download and run the game.

8. A device, characterized in that It comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, it implements a method for improving cloud gaming experience as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute a method for improving cloud gaming experience as described in any one of claims 1 to 6.

10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the steps of a method for improving cloud gaming experience described in any one of claims 1 to 6 are implemented.