Cloud game running method, device, storage medium and apparatus
By locating and launching resource terminals within the local area network (LAN) and establishing communication connections, cloud gaming data transmission within the LAN was achieved, resolving latency and stuttering issues caused by public network transmission and improving the operational quality of cloud gaming.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- MIGU INTERACTIVE ENTERTAINMENT CO LTD
- Filing Date
- 2022-09-30
- Publication Date
- 2026-05-12
AI Technical Summary
The existing cloud gaming operation method causes latency and stuttering issues due to data transmission over the public network.
Locate the resource terminal in the local area network where the terminal device is located, control the resource terminal to start the cloud game, and establish a communication connection between the terminal device and the resource terminal to transmit cloud game data through the local area network.
This avoids the latency and stuttering caused by transmitting cloud gaming data over the public network, thus improving the cloud gaming experience.
Smart Images

Figure CN115531865B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of cloud service technology, and in particular to a cloud gaming operation method, device, storage medium and apparatus. Background Technology
[0002] Currently, when users play cloud games, the game instance is usually run on the public cloud, and the cloud game data is transmitted through the public network.
[0003] However, public network transmission is greatly affected by network conditions, which can cause latency and stuttering issues when cloud gaming is running. Summary of the Invention
[0004] The main objective of this invention is to provide a cloud gaming operation method, device, storage medium, and apparatus, aiming to solve the technical problem of latency and stuttering during cloud gaming operation caused by transmitting cloud gaming data through the public network in existing cloud gaming operation methods.
[0005] To achieve the above objectives, the present invention provides a cloud gaming operation method, which includes the following steps:
[0006] When a cloud gaming request is received from a terminal device, the corresponding resource terminal is located in the local area network where the terminal device is located.
[0007] The resource terminal is controlled to launch the cloud game corresponding to the cloud game request;
[0008] The terminal device is controlled to establish a communication connection with the resource terminal, and the communication connection is used to transmit cloud gaming data.
[0009] Optionally, the step of searching for a corresponding resource terminal in the local area network where the terminal device is located when a cloud gaming request is received from a terminal device includes:
[0010] When a cloud gaming request is received from a terminal device, the current reference score of the cloud game corresponding to the cloud gaming request is obtained;
[0011] Based on the current reference score, determine whether the cloud game is suitable for scheduling to the local area network where the terminal device is located;
[0012] If so, then search for the corresponding resource terminal in the local area network.
[0013] Optionally, the current reference score is at least one of the following: cloud gaming bandwidth usage score, resource terminal processor performance score, resource terminal memory performance score, and terminal device network connectivity score.
[0014] Optionally, the step of determining whether the cloud game is suitable for scheduling to the local area network where the terminal device is located based on the current reference score includes:
[0015] Obtain the historical reference threshold corresponding to the cloud game;
[0016] The historical reference thresholds are sorted, and the current reference threshold is selected from the historical reference thresholds according to the sorting results;
[0017] Compare the current reference score with the current reference threshold;
[0018] Based on the comparison results, it is determined whether the cloud game is suitable for scheduling to the local area network where the terminal device is located.
[0019] Optionally, the step of determining whether the cloud game is suitable for scheduling to the local area network where the terminal device is located based on the current reference score includes:
[0020] Obtain historical reference scores, and predict the future reference score of the cloud game based on the current reference score and the historical reference scores;
[0021] Based on the current reference score and the future reference score, it is determined whether the cloud game is suitable for scheduling to the local area network where the terminal device is located.
[0022] Optionally, after the step of controlling the resource terminal to start the cloud game corresponding to the cloud game request, the method further includes:
[0023] Start the cloud instance corresponding to the cloud game;
[0024] Obtain the process information of the cloud instance and synchronize the process information to the resource terminal.
[0025] Optionally, before the step of searching for the corresponding resource terminal in the local area network where the terminal device is located when a cloud gaming request is received from the terminal device, the method further includes:
[0026] When a cloud gaming request is received from a terminal device, a registered terminal is obtained from the local area network where the terminal device is located.
[0027] The corresponding resource terminal is located among the registered terminals.
[0028] Furthermore, to achieve the above objectives, the present invention also proposes a cloud gaming operating device, which includes a memory, a processor, and a cloud gaming operating program stored in the memory and capable of running on the processor. The cloud gaming operating program is configured to implement the cloud gaming operating method described above.
[0029] In addition, to achieve the above objectives, the present invention also proposes a storage medium storing a cloud gaming program, which, when executed by a processor, implements the cloud gaming operation method as described above.
[0030] In addition, to achieve the above objectives, the present invention also proposes a cloud gaming operating device, which includes: a terminal search module, a startup control module, and a connection establishment module;
[0031] The terminal search module is used to search for the corresponding resource terminal in the local area network where the terminal device is located when a cloud gaming request is received from a terminal device.
[0032] The startup control module is used to control the resource terminal to start the cloud game corresponding to the cloud game request;
[0033] The connection establishment module is used to control the terminal device to establish a communication connection with the resource terminal, and the communication connection is used to transmit cloud gaming data.
[0034] This invention discloses a method for locating a corresponding resource terminal within the local area network (LAN) of the terminal device when a cloud gaming request is received from a terminal device. The method then controls the resource terminal to launch the cloud game corresponding to the request and establishes a communication connection between the terminal device and the resource terminal. This communication connection is used to transmit cloud gaming data. Because this invention schedules the cloud game to a resource terminal within the LAN of the terminal device when the user requests to run the cloud game, and establishes a communication connection between the terminal device and the resource terminal within the LAN, it enables the transmission of cloud gaming data via the LAN. This avoids the latency and stuttering caused by transmitting cloud gaming data over the public network, thus improving the cloud gaming experience. Attached Figure Description
[0035] Figure 1 This is a schematic diagram of the structure of a cloud gaming device in the hardware operating environment involved in the embodiments of the present invention;
[0036] Figure 2 This is a flowchart illustrating the first embodiment of the cloud gaming operation method of the present invention;
[0037] Figure 3 This is a schematic diagram of a communication connection used for transmitting cloud gaming data in an embodiment of the cloud gaming operation method of the present invention;
[0038] Figure 4 This is a flowchart illustrating the second embodiment of the cloud gaming operation method of the present invention;
[0039] Figure 5 This is a flowchart illustrating the third embodiment of the cloud gaming operation method of the present invention;
[0040] Figure 6 This is an interactive diagram of cloud game operation according to an embodiment of the cloud game operation method of the present invention;
[0041] Figure 7 This is a structural block diagram of the first embodiment of the cloud gaming operating device of the present invention.
[0042] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0043] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0044] Reference Figure 1 , Figure 1 This is a schematic diagram of the cloud gaming device structure in the hardware operating environment involved in the embodiments of the present invention.
[0045] like Figure 1 As shown, the cloud gaming device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen, and optionally, it may also include a standard wired interface or a wireless interface. In this invention, the wired interface of the user interface 1003 may be a USB interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wireless-Fidelity (Wi-Fi) interface). The memory 1005 may be high-speed random access memory (RAM) or non-volatile memory (NVM), such as a disk storage device. The memory 1005 may also optionally be a storage device independent of the aforementioned processor 1001.
[0046] Those skilled in the art will understand that Figure 1 The structure shown does not constitute a limitation on cloud gaming operating devices and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0047] like Figure 1 As shown, the memory 1005, which is identified as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a cloud gaming program.
[0048] exist Figure 1In the cloud gaming device shown, the network interface 1004 is mainly used to connect to the backend server and communicate data with the backend server; the user interface 1003 is mainly used to connect to the user device; the cloud gaming device calls the cloud gaming program stored in the memory 1005 through the processor 1001 and executes the cloud gaming method provided in this embodiment of the invention.
[0049] Based on the above hardware structure, an embodiment of the cloud gaming operation method of the present invention is proposed.
[0050] Reference Figure 2 , Figure 2 This is a flowchart illustrating the first embodiment of the cloud gaming operation method of the present invention, which presents the first embodiment of the cloud gaming operation method of the present invention.
[0051] In the first embodiment, the cloud gaming operation method includes the following steps:
[0052] Step S10: Upon receiving a cloud gaming request initiated by a terminal device, search for the corresponding resource terminal in the local area network where the terminal device is located.
[0053] It should be understood that the execution subject of the method in this embodiment can be a cloud gaming device with data processing, network communication and program running functions, such as a cloud server, or other electronic devices that can achieve the same or similar functions. This embodiment does not limit this.
[0054] It should be noted that the terminal device can be an electronic device used by the user when playing cloud games, such as a mobile phone, computer, and television. In this embodiment and other embodiments, a mobile phone is used as an example for illustration.
[0055] In practice, when a user wants to play a cloud game, the user can send a cloud game request through a cloud game program pre-installed on their mobile phone.
[0056] It should be noted that the resource terminal can be a device within the local area network that has the ability to run games, such as a computer within the local area network.
[0057] It is understandable that finding the corresponding resource terminal within the local area network (LAN) where the terminal device is located can be done by randomly selecting any device within the LAN, or by selecting the corresponding resource terminal based on the device information of each device within the LAN. This embodiment does not impose any restrictions on this. The device information may include device performance, device status, distance from the terminal device, and other information.
[0058] In a practical implementation, finding the corresponding resource terminal in the local area network where the terminal device is located can be done by selecting the device closest to the terminal device in the local area network as the corresponding resource terminal.
[0059] Step S20: Control the resource terminal to start the cloud game corresponding to the cloud game request.
[0060] It should be understood that, in order to transmit cloud gaming data via a local area network, this embodiment requires loading the cloud game on the resource terminal. Therefore, in this embodiment, it is necessary to control the resource terminal to launch the cloud game request corresponding to the cloud game.
[0061] Step S30: Control the terminal device to establish a communication connection with the resource terminal, the communication connection being used to transmit cloud gaming data.
[0062] Understandably, once the resource terminal completes the cloud game startup, it indicates that the resource terminal is ready to transmit cloud game data. Therefore, the cloud server can control the terminal device to establish a communication connection with the resource terminal, which is used to transmit cloud game data.
[0063] It should be understood that the control terminal device can establish a communication connection with the resource terminal by first sending the communication address of the resource terminal to the terminal device, and then controlling the terminal device to establish a communication connection with the resource terminal based on the communication address. The communication connection is used to transmit cloud gaming data.
[0064] It should be noted that the communication address can be the internal network streaming address of the resource terminal.
[0065] In the specific implementation, after receiving the communication address, the terminal device establishes a WebRTC connection with the resource terminal based on the communication address and performs streaming.
[0066] For ease of understanding, please refer to Figure 3 This explanation does not limit the scope of this solution. Figure 3 This diagram illustrates a communication connection used to transmit cloud gaming data. In the diagram, the terminal device is a mobile phone, the resource device is a computer on the local area network (LAN) where the mobile phone is located, and the communication connection is a streaming connection on the LAN. Cloud gaming data is transmitted directly point-to-point through the LAN router without going through the public network, thereby reducing the latency, packet loss, and lag issues caused by public network transmission.
[0067] In the first embodiment, upon receiving a cloud gaming request initiated by a terminal device, the system searches for a corresponding resource terminal within the local area network (LAN) where the terminal device is located, controls the resource terminal to launch the cloud game corresponding to the request, and controls the terminal device to establish a communication connection with the resource terminal. This communication connection is used to transmit cloud gaming data. Because this embodiment schedules the cloud game to run on a resource terminal within the LAN where the terminal device is located when the user requests to run a cloud game through the terminal device, and establishes a communication connection between the terminal device and the resource terminal within the LAN, it achieves the transmission of cloud gaming data through the LAN, thereby avoiding the latency and stuttering caused by transmitting cloud gaming data over the public network and improving the cloud gaming experience.
[0068] Reference Figure 4 , Figure 4 This is a flowchart illustrating the second embodiment of the cloud gaming operation method of the present invention, based on the above. Figure 2 The first embodiment shown presents a second embodiment of the cloud gaming operation method of the present invention.
[0069] In the second embodiment, step S10 includes:
[0070] Step S101: When a cloud gaming request is received from a terminal device, the current reference score of the cloud game corresponding to the cloud gaming request is obtained.
[0071] It should be understood that, in order to reasonably schedule cloud gaming, in this embodiment, before searching for the corresponding resource terminal in the local area network where the terminal device is located, it will also determine whether the cloud game is suitable to be scheduled to run on the local area network.
[0072] It should be noted that the current parameter score can be used to measure whether cloud gaming is suitable for scheduling to a local area network.
[0073] It is understandable that obtaining the current reference score of a cloud game corresponding to a cloud gaming request can involve obtaining cloud game information, resource terminal information, and terminal device information, and then determining the current reference score of the cloud game based on these information using a preset evaluation model. The preset evaluation model can be pre-set.
[0074] Furthermore, the current reference score is at least one of the following: cloud gaming bandwidth usage score, resource terminal processor performance score, resource terminal memory performance score, and terminal device network connectivity score.
[0075] It should be understood that, in order to improve the accuracy of the current reference score, the content of the current reference score may be specifically restricted in this embodiment.
[0076] It should be noted that the bandwidth usage score can be used to measure the public network bandwidth used by cloud games during runtime. The higher the bandwidth usage score, the more public network bandwidth the cloud game uses during runtime, and the more obvious the latency and stuttering.
[0077] It is understandable that obtaining the bandwidth usage score for cloud gaming can involve obtaining the average bandwidth consumption of cloud gaming and the average bandwidth consumption of all games on the entire cloud gaming platform. The bandwidth usage score = average bandwidth consumption of cloud gaming / average bandwidth consumption of all games on the entire cloud gaming platform.
[0078] It should be noted that the processor performance score can be used to measure the processor performance of the resource terminal. The higher the processor performance score, the more powerful the processor of the resource terminal is, and the better the gaming experience it provides.
[0079] It should be understood that the processor performance score of the resource terminal can be the average number of CPUs consumed by cloud gaming and the number of CPUs of the resource terminal. The processor performance score = the average number of CPUs consumed by cloud gaming / the number of CPUs of the resource terminal.
[0080] It should be noted that the memory performance score can be used to measure the memory performance of the resource terminal. The higher the memory performance score, the stronger the memory performance of the resource terminal, and the better the gaming experience it provides.
[0081] It is understandable that the memory performance score of the resource acquisition terminal can be the memory size of the resource acquisition terminal and the average memory usage of the cloud game on the entire cloud gaming platform. Memory performance score = memory size / average memory usage of the cloud game on the entire cloud gaming platform.
[0082] It should be noted that the network connectivity score of the terminal device is used to measure the network of the terminal device. The higher the network connectivity score, the worse the network of the terminal device is, and the worse the cloud gaming experience will be on the public Internet.
[0083] It should be understood that obtaining the network connectivity score of a terminal device can be achieved by obtaining the round-trip time (RTT) value of the terminal device and the average RTT value of all users on the entire cloud gaming platform. The network connectivity score = RTT of the terminal device / average RTT value of all users on the entire cloud gaming platform.
[0084] Step S102: Determine whether the cloud game is suitable for scheduling to the local area network where the terminal device is located based on the current reference score.
[0085] It is understandable that determining whether a cloud game is suitable for scheduling to the local area network where the terminal device is located based on the current reference score can be done as follows: if the current reference score is greater than the current reference threshold, the cloud game is deemed suitable for scheduling to the local area network; if the current reference score is less than or equal to the current reference threshold, the cloud game is deemed unsuitable for scheduling to the local area network. The current reference threshold can be preset or determined based on historical reference thresholds.
[0086] It should be understood that when the current reference score is at least one of the cloud game's bandwidth usage score, the resource terminal's processor performance score, the resource terminal's memory performance score, and the terminal device's network connectivity score, determining whether the cloud game is suitable for scheduling to the local area network where the terminal device is located based on the current reference score can be done by adding the above scores together to obtain a total score. If the total score is greater than the current reference threshold, the cloud game is deemed suitable for scheduling to the local area network; if the total score is less than or equal to the current reference threshold, the cloud game is deemed unsuitable for scheduling to the local area network.
[0087] Alternatively, one could obtain the rating threshold corresponding to each rating, compare each rating with its corresponding rating threshold, and determine that cloud gaming is suitable for scheduling to the local area network when all ratings are greater than the rating threshold; and determine that cloud gaming is not suitable for scheduling to the local area network when any rating is less than or equal to the rating threshold.
[0088] Furthermore, in order to improve the accuracy of the current reference threshold, step S202 includes:
[0089] Obtain the historical reference threshold corresponding to the cloud game;
[0090] The historical reference thresholds are sorted, and the current reference threshold is selected from the historical reference thresholds according to the sorting results;
[0091] Compare the current reference score with the current reference threshold;
[0092] Based on the comparison results, it is determined whether the cloud game is suitable for scheduling to the local area network where the terminal device is located.
[0093] It should be understood that, in order to improve the accuracy of the threshold, in this embodiment, before determining whether cloud gaming is suitable for scheduling to the local area network based on the comparison result between the current reference score and the current reference threshold, the threshold will be updated based on the historical reference threshold to obtain the current reference threshold.
[0094] In the specific implementation, for the threshold B, when the program runs the calculation for the first time, B = 1. Thereafter, the value of B for the current calculation is taken from the value of TP95 in the previous calculation cycle (the B values in this cycle are arranged from smallest to largest, and the value at the 95th position is taken, Bn = TP95(n-1).
[0095] Understandably, judging whether a cloud game is suitable for scheduling to a local area network (LAN) based on the comparison results could be done as follows: if the current reference score is greater than the current reference threshold, the cloud game is deemed suitable for scheduling to a LAN; if the current reference score is less than or equal to the current reference threshold, the cloud game is deemed unsuitable for scheduling to a LAN.
[0096] Furthermore, in practical applications, considering that the terminal state is constantly changing, step S202 further includes the following to ensure the accuracy of the scheduling judgment:
[0097] Obtain historical reference scores, and predict the future reference score of the cloud game based on the current reference score and the historical reference scores;
[0098] Based on the current reference score and the future reference score, it is determined whether the cloud game is suitable for scheduling to the local area network where the terminal device is located.
[0099] In practical implementation, for example, if a user's network is good at the moment they initiate a cloud gaming request, and the terminal device's network connectivity score is less than the corresponding threshold, then it's determined that cloud gaming is not suitable for scheduling over a local area network. However, in reality, the user's network may have been deteriorating over the past 10 seconds, and the terminal device's network connectivity score may exceed the corresponding threshold after another 3 seconds. In this case, it's not suitable to experience cloud gaming over the public internet.
[0100] Therefore, in order to overcome the above-mentioned defects, this embodiment also predicts the future reference score of cloud games, and combines the current reference score and the future reference score to jointly determine whether cloud games are suitable for scheduling to a local area network.
[0101] It should be noted that the current reference score is the current reference score P obtained in the nth cloud gaming session. n The historical reference score is the (n-1)th historical reference score P obtained from cloud gaming. n-1 Then the gradient factor λ n =P n / P n-1 , where the gradient factor λ n This indicates that P is the current P n Compared to the last P n-1 The trend of the value change is the gradient coefficient. Wherein, the gradient coefficient ε n This represents the average value of the gradient factor over the most recent period, used to predict future reference scores.
[0102] The formula for predicting future reference scores is as follows:
[0103]
[0104] In the formula, Pfuture For future reference scores, P n ε is the current reference score. n λ is the gradient coefficient. n This is the gradient factor.
[0105] Understandably, determining whether cloud gaming is suitable for scheduling to a local area network based on current and future reference scores could involve first determining the future threshold B based on the current reference threshold. future B future Take TP95(n). When the current reference score is greater than the current reference threshold and the future reference score is greater than the future threshold, it is determined that cloud gaming is suitable for scheduling to the local area network. When the current reference score is less than or equal to the current reference threshold, or the future reference score is less than or equal to the future threshold, it is determined that cloud gaming is not suitable for scheduling to the local area network.
[0106] Step S103: If yes, then search for the corresponding resource terminal in the local area network.
[0107] It should be understood that when cloud gaming is suitable for scheduling to a local area network (LAN), it means that the game needs to be streamed within the LAN. Therefore, it is necessary to locate the corresponding resource terminal within the LAN.
[0108] In the second embodiment, the current reference score of the cloud game corresponding to the cloud game request is obtained. Based on the current reference score, it is determined whether the cloud game is suitable for scheduling to the local area network where the terminal device is located. If so, the corresponding resource terminal is searched in the local area network. Since this embodiment determines whether the cloud game is suitable for scheduling to the local area network before searching for the corresponding resource terminal in the local area network where the terminal device is located, the cloud game can be reasonably scheduled, thereby improving the cloud game experience.
[0109] Reference Figure 5 , Figure 5 This is a flowchart illustrating the third embodiment of the cloud gaming operation method of the present invention. Based on the above embodiments, the third embodiment of the cloud gaming operation method of the present invention is proposed.
[0110] In the third embodiment, before step S10, the method further includes:
[0111] Step S01: Upon receiving a cloud gaming request initiated by a terminal device, obtain a registered terminal in the local area network where the terminal device is located.
[0112] It should be understood that, in order to ensure the reliability of resource terminals, this embodiment also obtains registered terminals in the local area network where the terminal device is located.
[0113] Understandably, a pre-installed program can be placed on the registration terminal and run to trigger the registration terminal to issue a registration request.
[0114] In practice, a cloud gaming control program is installed on a computer within the local area network (LAN). The cloud gaming control program then sends a registration request, which includes local machine information and LAN information. Local machine information includes the local machine's CPU, GPU, and disk information, while LAN information includes the LAN network segment information, such as 192.168.1.0 / 24, the latitude and longitude of the location, and the city name.
[0115] Step S02: Locate the corresponding resource terminal among the registered terminals.
[0116] It should be understood that, in this embodiment, in addition to searching for the corresponding resource terminal among the registered terminals, the local area network where the registered terminal is located can also be used as the terminal edge node so as to search for the resource terminal in the future.
[0117] In the third embodiment, when a cloud gaming request initiated by a terminal device is received, the registered terminals in the local area network where the terminal device is located are obtained, and the corresponding resource terminals are searched among the registered terminals. Since this embodiment also obtains the registered terminals in the local area network where the terminal device is located, the reliability of the resource terminals can be ensured.
[0118] In the third embodiment, after step S20, the method further includes:
[0119] Step S210: Start the cloud instance corresponding to the cloud game.
[0120] It should be understood that, in order to reduce the latency when starting cloud games, in this embodiment, the cloud instance corresponding to the cloud game is first started on the cloud server, and then the process information of the cloud instance is synchronized to the resource terminal.
[0121] Furthermore, to ensure cloud gaming startup speed, the following steps are included before step S210:
[0122] After receiving the cloud game launch notification, the resource terminal notifies the cloud server that it is ready to receive the game instance and simultaneously remotely mounts the game directory to the cloud server. After receiving the notification that the resource terminal is ready, the cloud server executes step S210.
[0123] Understandably, in practical applications, some resource terminals may not have cloud gaming resources. Therefore, before starting cloud gaming on the resource terminal, it is necessary to remotely mount the game directory to the cloud server to verify whether the local files on the resource terminal contain cloud gaming resources.
[0124] It should be understood that remotely mounting the game directory to the cloud server allows the cloud server to verify whether the local files on the resource terminal contain cloud game resources. If not, the cloud game resources will be distributed to the resource terminal.
[0125] It should be noted that the remote mounting protocol can be a high-speed network file protocol such as iSCSI, which can effectively reduce the latency caused by reading local files during game operation.
[0126] Step S220: Obtain the process information of the cloud instance and synchronize the process information to the resource terminal.
[0127] Understandably, when launching a game in the cloud, it loads on the intranet, resulting in fast loading speeds. The game launch speed is almost on par with launching a game locally on a computer. After the cloud instance is launched, it synchronizes the process information with the resource terminal, thereby minimizing the latency caused by the game launch.
[0128] It should be understood that because the process information data is small, when the game just starts, the process data may only be a few hundred kilobytes, and there is almost no delay in transmitting a few hundred kilobytes of data over the network.
[0129] For ease of understanding, please refer to Figure 6 This explanation does not limit the scope of this solution. Figure 6 This is an interaction diagram of cloud gaming operation. In the diagram, the terminal device initiates a cloud game request. The cloud server searches for resource terminals within the local area network (LAN) where the terminal device is located. The cloud server determines whether the cloud game is suitable for scheduling to the LAN. If not, it starts the corresponding cloud instance of the cloud game on the cloud edge node. The terminal device and the cloud edge node transmit game data via the public network. If yes, the cloud server controls the resource terminal to start the cloud game corresponding to the cloud game request. The resource terminal notifies the cloud server that it is ready to receive the game instance and mounts the game directory to the cloud server. The cloud server starts the corresponding cloud instance of the cloud game on the cloud edge node. The cloud server obtains the process information of the cloud instance and synchronizes the process information to the resource terminal. After the resource terminal notifies the cloud server that the cloud game has started, the cloud server sends the communication address of the resource terminal to the terminal device so that the terminal device can establish a communication connection with the resource terminal based on the communication address. The communication connection is used to transmit cloud game data.
[0130] In the third embodiment, the process of launching the cloud instance corresponding to the cloud game, obtaining the process information of the cloud instance, and synchronizing the process information to the resource terminal is disclosed. Since this embodiment first launches the cloud instance corresponding to the cloud game on the cloud server and then synchronizes the process information of the cloud instance to the resource terminal, the latency of launching the cloud game can be reduced.
[0131] Furthermore, this embodiment of the invention also proposes a storage medium storing a cloud gaming program, which, when executed by a processor, implements the cloud gaming operation method described above.
[0132] In addition, refer to Figure 7 The present invention also proposes a cloud gaming operating device, which includes: a terminal search module 10, a startup control module 20, and a connection establishment module 30.
[0133] The terminal search module 10 is used to search for the corresponding resource terminal in the local area network where the terminal device is located when it receives a cloud gaming request initiated by the terminal device.
[0134] It should be noted that the terminal device can be an electronic device used by the user when playing cloud games, such as a mobile phone, computer, and television. In this embodiment and other embodiments, a mobile phone is used as an example for illustration.
[0135] In practice, when a user wants to play a cloud game, the user can send a cloud game request through a cloud game program pre-installed on their mobile phone.
[0136] It should be noted that the resource terminal can be a device within the local area network that has the ability to run games, such as a computer within the local area network.
[0137] It is understandable that finding the corresponding resource terminal within the local area network (LAN) where the terminal device is located can be done by randomly selecting any device within the LAN, or by selecting the corresponding resource terminal based on the device information of each device within the LAN. This embodiment does not impose any restrictions on this. The device information may include device performance, device status, distance from the terminal device, and other information.
[0138] In a practical implementation, finding the corresponding resource terminal in the local area network where the terminal device is located can be done by selecting the device closest to the terminal device in the local area network as the corresponding resource terminal.
[0139] The startup control module 20 is used to control the resource terminal to start the cloud game corresponding to the cloud game request.
[0140] It should be understood that, in order to transmit cloud gaming data via a local area network, this embodiment requires loading the cloud game on the resource terminal. Therefore, in this embodiment, it is necessary to control the resource terminal to launch the cloud game request corresponding to the cloud game.
[0141] The connection establishment module 30 is used to control the terminal device to establish a communication connection with the resource terminal, and the communication connection is used to transmit cloud gaming data.
[0142] Understandably, once the resource terminal completes the cloud game startup, it indicates that the resource terminal is ready to transmit cloud game data. Therefore, the cloud server can control the terminal device to establish a communication connection with the resource terminal, which is used to transmit cloud game data.
[0143] It should be understood that the control terminal device can establish a communication connection with the resource terminal by first sending the communication address of the resource terminal to the terminal device, and then controlling the terminal device to establish a communication connection with the resource terminal based on the communication address. The communication connection is used to transmit cloud gaming data.
[0144] It should be noted that the communication address can be the internal network streaming address of the resource terminal.
[0145] In the specific implementation, after receiving the communication address, the terminal device establishes a WebRTC connection with the resource terminal based on the communication address and performs streaming.
[0146] For ease of understanding, please refer to Figure 3 This explanation does not limit the scope of this solution. Figure 3 This diagram illustrates a communication connection used for transmitting cloud gaming data. In the diagram, the terminal device is a mobile phone, the resource device is a computer within the local area network (LAN) of the phone, and the communication connection is a streaming connection within the LAN. Cloud gaming data is transmitted directly point-to-point through the LAN router, bypassing the public internet, thus reducing latency, packet loss, and lag issues associated with public internet transmission.
[0147] In this embodiment, upon receiving a cloud gaming request initiated by a terminal device, the system searches for a corresponding resource terminal within the local area network (LAN) where the terminal device is located, controls the resource terminal to launch the cloud game corresponding to the request, and controls the terminal device to establish a communication connection with the resource terminal. This communication connection is used to transmit cloud gaming data. Because this embodiment schedules the cloud game to run on a resource terminal within the LAN where the terminal device is located when the user applies to run a cloud game through the terminal device, and establishes a communication connection between the terminal device and the resource terminal within the LAN, it enables the transmission of cloud gaming data through the LAN. This avoids the latency and stuttering caused by transmitting cloud gaming data over the public network, thus improving the cloud gaming experience.
[0148] Other embodiments or specific implementations of the cloud gaming operating device described in this invention can be found in the above-described method embodiments, and will not be repeated here.
[0149] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0150] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0151] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as a read-only memory image (ROM) / random access memory (RAM), magnetic disk, optical disk), and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0152] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.
Claims
1. A cloud gaming operation method, characterized in that, The cloud gaming operation method includes the following steps: When a cloud gaming request is received from a terminal device, the corresponding resource terminal is located in the local area network where the terminal device is located. Control the resource terminal to launch the cloud game corresponding to the cloud game request; The terminal device is controlled to establish a communication connection with the resource terminal, and the communication connection is used to transmit cloud gaming data; The step of searching for a corresponding resource terminal in the local area network where the terminal device is located when a cloud gaming request is received from a terminal device includes: When a cloud gaming request is received from a terminal device, the current reference score of the cloud game corresponding to the cloud gaming request is obtained. The current reference score is at least one of the following: cloud game bandwidth usage score, resource terminal processor performance score, resource terminal memory performance score, and terminal device network connectivity score. Based on the current reference score, determine whether the cloud game is suitable for scheduling to the local area network where the terminal device is located; If so, then search for the corresponding resource terminal in the local area network.
2. The cloud gaming operation method as described in claim 1, characterized in that, The step of determining whether the cloud game is suitable for scheduling to the local area network where the terminal device is located based on the current reference score includes: Obtain the historical reference threshold corresponding to the cloud game; The historical reference thresholds are sorted, and the current reference threshold is selected from the historical reference thresholds according to the sorting results; Compare the current reference score with the current reference threshold; Based on the comparison results, it is determined whether the cloud game is suitable for scheduling to the local area network where the terminal device is located.
3. The cloud gaming operation method as described in claim 2, characterized in that, The step of determining whether the cloud game is suitable for scheduling to the local area network where the terminal device is located based on the current reference score includes: Obtain historical reference scores, and predict the future reference score of the cloud game based on the current reference score and the historical reference scores; Based on the current reference score and the future reference score, it is determined whether the cloud game is suitable for scheduling to the local area network where the terminal device is located.
4. The cloud gaming operation method according to any one of claims 1 to 3, characterized in that, After the step of controlling the resource terminal to start the cloud game corresponding to the cloud game request, the method further includes: Start the cloud instance corresponding to the cloud game; Obtain the process information of the cloud instance and synchronize the process information to the resource terminal.
5. The cloud gaming operation method according to any one of claims 1 to 3, characterized in that, Before the step of searching for the corresponding resource terminal in the local area network where the terminal device is located when a cloud gaming request is received from the terminal device, the method further includes: When a cloud gaming request is received from a terminal device, a registered terminal is obtained from the local area network where the terminal device is located. The corresponding resource terminal is located among the registered terminals.
6. A cloud gaming operating device, characterized in that, The cloud gaming device includes: a memory, a processor, and a cloud gaming program stored in the memory and executable on the processor. When the cloud gaming program is executed by the processor, it implements the cloud gaming method as described in any one of claims 1 to 5.
7. A storage medium, characterized in that, The storage medium stores a cloud gaming program, which, when executed by a processor, implements the cloud gaming method as described in any one of claims 1 to 5.
8. A cloud gaming operating device, characterized in that, The cloud gaming operating device includes: a terminal search module, a startup control module, and a connection establishment module; The terminal search module is used to search for the corresponding resource terminal in the local area network where the terminal device is located when a cloud gaming request is received from a terminal device. The startup control module is used to control the resource terminal to start the cloud game corresponding to the cloud game request; The connection establishment module is used to control the terminal device to establish a communication connection with the resource terminal, and the communication connection is used to transmit cloud gaming data; The terminal search module is further configured to, upon receiving a cloud gaming request initiated by a terminal device, obtain the current reference score of the cloud game corresponding to the cloud gaming request, wherein the current reference score is at least one of the cloud game's bandwidth usage score, the resource terminal's processor performance score, the resource terminal's memory performance score, and the terminal device's network connectivity score; determine whether the cloud game is suitable for scheduling to the local area network where the terminal device is located based on the current reference score; if so, search for the corresponding resource terminal in the local area network.