Cloud game operation method, device, electronic device and computer-readable medium

By using dynamic link libraries and Hook API technology in the cloud gaming system, multiple game instances can share the same operating system interface, solving the problem of memory resource waste caused by virtual machines and improving server memory utilization.

CN113893525BActive Publication Date: 2025-09-23DOUYIN VISION CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010642235.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-06
Publication Date
2025-09-23
Estimated Expiration
2041-03-22

AI Technical Summary

Technical Problem

In the prior art, cloud gaming servers need to run multiple virtual machines and their corresponding virtual operating systems, resulting in large memory resource consumption and low resource utilization.

Method used

By setting a pre-configured dynamic link library between the operating system and the user terminal, using Hook API technology to rewrite the operating system interface and generate a DLL file, multiple game instances can call the system interface of the same operating system at the same time, avoiding the installation and running of multiple virtual operating systems.

Benefits of technology

It reduces the memory loss of servers when multiple cloud games are running and improves the utilization of memory resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113893525B_ABST
    Figure CN113893525B_ABST
Patent Text Reader

Abstract

The present disclosure provides a cloud game operation method, device, electronic device, and computer-readable medium, relating to the field of Internet technology. The method receives a cloud game operation request sent by a user terminal; determines the target application interface corresponding to the cloud game operation request from a pre-configured dynamic link library based on interface information; and calls the corresponding system interface on the same operating system based on the target application interface, so that the game instances corresponding to each user terminal respectively execute the target operation corresponding to the cloud game operation request through the system interface. This technical solution enables multiple game instances to simultaneously call the system interface on the same operating system, reducing the waste of memory resources on the server during cloud game operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of Internet technology. Specifically, the present disclosure relates to a cloud game operation method, device, electronic device and computer-readable medium. Background Art

[0002] With the continuous development of computer technology, cloud gaming, based on cloud computing, has become increasingly popular. In cloud gaming applications, game logic and rendering operations are performed in the cloud. The processed results are encoded into audio and video streams and transmitted to the terminal via the network. The terminal then uploads user operation information to the cloud. In this cloud gaming model, all games are run on cloud servers. Multiple users use different terminal devices connected via the network to play different types of games on the operator's cloud servers.

[0003] In order to support different user terminals to access the cloud gaming server to meet user needs, in related technologies, at least one virtual machine is installed on the server's operating system, and each virtual machine is installed with a corresponding virtual operating system, so as to provide a corresponding system interface to the corresponding user terminal through the virtual operating system. However, running multiple virtual machines and their corresponding virtual operating systems will occupy the server's memory resources, resulting in large consumption of the server's memory resources. Summary of the Invention

[0004] This invention information section is provided to briefly introduce concepts that will be described in detail in the detailed description section below. This invention information section is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0005] In a first aspect, an embodiment of the present disclosure provides a cloud game operation method, comprising the following steps:

[0006] Receive a cloud game running request sent by a user terminal;

[0007] Determine the target application interface corresponding to the cloud game running request from a pre-configured dynamic link library according to the cloud game running request;

[0008] Based on the target application interface, the corresponding system interface on the same operating system is called, so that the game instance corresponding to the user terminal executes the target operation corresponding to the cloud game running request through the system interface.

[0009] In a second aspect, the embodiments of the present disclosure further provide a cloud game running device, comprising:

[0010] A receiving module is used to receive a cloud game running request sent by a user terminal;

[0011] A determination module, configured to determine a target application interface corresponding to the cloud game running request from a pre-configured dynamic link library according to the cloud game running request;

[0012] The calling module is used to call the corresponding system interface on the same operating system based on the target application interface, so that the game instance corresponding to the user terminal executes the target operation corresponding to the cloud game running request through the system interface.

[0013] In a third aspect, an embodiment of the present disclosure further provides an electronic device, comprising:

[0014] one or more processors;

[0015] Memory;

[0016] One or more applications, wherein one or more applications are stored in a memory and configured to be executed by one or more processors, and one or more programs are configured to: execute the cloud game running method mentioned in any of the above embodiments.

[0017] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable medium on which a computer program is stored, characterized in that when the program is executed by a processor, the cloud game operation method mentioned in any of the above embodiments is implemented.

[0018] The beneficial effects brought about by the technical solution provided by the present disclosure are:

[0019] The cloud game running method, device, electronic device and computer-readable medium provided in the above embodiments receive a cloud game running request sent by a user terminal; determine the target application interface corresponding to the cloud game running request from a pre-configured dynamic link library based on the cloud game running request; call the corresponding system interface on the same operating system based on the target application interface, so that the game instances corresponding to each user terminal respectively execute the target operation corresponding to the cloud game running request through the system interface, so that multiple game instances can call the system interface on the same operating system at the same time, reducing the waste of memory resources of multiple cloud game runtime servers and improving the utilization of memory resources.

[0020] Additional aspects and advantages of the present disclosure will be set forth in part in the following description, will become apparent from the following description, or may be learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale.

[0022] Figure 1 This is a schematic diagram of the cloud gaming operating system framework;

[0023] Figure 2 This is a schematic diagram of the structure of a cloud gaming operating system in related technology;

[0024] Figure 3 This is a flowchart of a cloud game running method provided by an embodiment;

[0025] Figure 4 This is a schematic diagram of the structure of a cloud gaming operating system provided by an embodiment;

[0026] Figure 5 This is a schematic diagram of the structure of a cloud game running device provided by an embodiment;

[0027] Figure 6 A schematic diagram of the structure of an electronic device for cloud gaming delay testing provided in one embodiment. DETAILED DESCRIPTION

[0028] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.

[0029] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0030] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.

[0031] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish devices, modules or units, and are not used to limit these devices, modules or units to be different devices, modules or units, nor are they used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0032] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".

[0033] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0034] The cloud gaming delay testing method, device, electronic device, and computer-readable medium provided in this disclosure are intended to solve the above-mentioned technical problems of the prior art.

[0035] The following detailed description of the technical solution of the present disclosure and how the technical solution of the present disclosure solves the above-mentioned technical problems is provided with specific embodiments. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. The embodiments of the present disclosure will be described below in conjunction with the accompanying drawings.

[0036] Cloud gaming, also known as game-on-demand, is an online gaming technology based on cloud computing. Cloud gaming technology enables user terminals with relatively limited graphics and data processing capabilities to run high-quality games. In cloud gaming scenarios, the game runs not on the user terminal itself, but on a cloud server. The cloud server renders the game scene into an audio and video stream, which is then transmitted to the user terminal via a network audio and video stream. The user terminal does not need powerful graphics and data processing capabilities; it only needs basic streaming media playback capabilities and the ability to receive user input commands and transmit them to the cloud server.

[0037] In order to better illustrate the technical solution of the present disclosure, an application environment to which the cloud game operation method of the present solution can be applied is shown below.

[0038] like Figure 1 As shown, Figure 1Schematic diagram of the cloud gaming operating system framework, which includes a user terminal 101 and a server 102, with the user terminal 101 and the server 102 establishing a communication connection via a network. The workflow of the cloud gaming operating system can be as follows: a user inputs a control operation into the user terminal 101, which generates an operation instruction based on the user input control operation and sends the operation instruction to the server 102. The server 102 parses the received operation instruction and obtains the game data corresponding to the operation instruction. Furthermore, the server 102 renders the screen based on the game data, generates corresponding video stream data, encodes the video stream data, and transmits it to the user terminal 101 via the network. The user terminal 101 decodes the received video stream data to obtain the game screen, which is displayed on the display interface of the user terminal 101.

[0039] Currently, cloud gaming mainly relies on servers to run the games. A large number of game applications are running on the servers, and the user terminals only need to obtain the game-related video stream data sent by the server and display the game screen corresponding to the received video stream.

[0040] Figure 2 This is a structural diagram of a cloud game operating system in the related art. In the related art, the cloud game server architecture includes a host machine, a host operating system and a virtual machine. The host operating system is installed on the host machine (not shown). The host machine is located at the bottom of the cloud game server architecture and is an independent physical host. At least one virtual machine is installed on the host operating system to build multiple corresponding virtual operating systems through virtual machines, such as Figure 2 As shown, virtual machine 1 constructs virtual operating system 1, virtual machine 2 constructs virtual operating system 2, virtual machine 3 constructs virtual operating system 3, and so on, to achieve a one-to-one connection between the virtual operating system and the user terminal, so that the user terminal can call the system interface of the virtual operating system to realize the execution of related functions during the operation of the cloud game, such as: the collection, sending, processing and receiving of picture information, sound information and operation information.

[0041] In the above-mentioned related technologies, the installation and operation of each virtual machine and virtual operating system will occupy the server's memory, which limits the memory space and number of game applications running on the server, resulting in low resource utilization of the server's cloud game operation.

[0042] Based on this, the embodiments of the present disclosure provide a cloud gaming operation solution that can reduce resource redundancy of the operating system, release more memory space, and improve resource utilization of cloud gaming operations.

[0043] The cloud game running method disclosed herein will be described in detail with reference to the following embodiments.

[0044] Figure 3 This is a flowchart of a cloud game running method provided by an embodiment, and the cloud game running method can be executed by a server of a cloud game system.

[0045] Specifically, such as Figure 3 As shown, the cloud game running method may include the following steps:

[0046] S310: Receive a cloud game running request sent by a user terminal.

[0047] In this embodiment, each user terminal can request to run a different game and send a cloud game run request to the server. Different user terminals can request to run different game applications, such as user terminal A requesting to run game A, user terminal B requesting to run game B, etc. Different user terminals can also request to run the same game application, such as user terminal C and user terminal D both requesting to run game C.

[0048] In this embodiment, the game application requested to run by the user terminal calls the commonly used system ports required during the operation of the cloud game, such as the screen interface, sound interface, and interactive operation interface. Among them, the screen interface is the game screen display interface, which is used to call the relevant screen processing functions to realize the generation, processing and rendering of the game screen, etc.; the sound interface refers to the game sound playback interface, which is used to call the relevant sound processing functions to realize the synthesis, processing and playback of cloud game sounds, etc.; the interactive operation interface refers to the processing interface for the user's game operations, which is used to call the relevant operation processing functions to realize the reception and response of user operations of the cloud game, etc., such as interactive operations such as long pressing, clicking and sliding on the touch screen to represent forward, backward, flip and other operations in the game. Optionally, the system interface can be a GPU interface, a database interface, a network interface, etc.

[0049] The server receives cloud game execution requests from each user terminal. These requests carry information about the interface call, such as the name and address of the requested system interface, to identify the game application requested by the user terminal. The server parses the cloud game execution request and obtains the interface information, such as the name and address, of the system interface requested by the user terminal on the server operating system.

[0050] S320. Determine a target application interface corresponding to the cloud game running request from a pre-configured dynamic link library according to the cloud game running request.

[0051] In this embodiment, the Dynamic Link Library (DLL), or DLL file, includes various application interfaces and related functions related to cloud gaming, such as functions related to image processing, sound processing, and operation processing. Each application interface in the DLL file corresponds to a system interface on the operating system.

[0052] Optionally, the server obtains a locally uploaded dynamic link library to obtain a pre-configured dynamic link library. The dynamic link library is obtained by obtaining interface information of the system interface required to be called during the operation of the cloud game, creating an application programming interface library based on the interface information, and encoding the application programming interface library.

[0053] In the disclosed embodiment, the server's operating system is rewritten using Hook API technology. Hook API technology allows applications to intercept the actual operating system's system interface (i.e., system API) before calling it, performing some processing before calling the actual operating system's system API to complete the function. The API (Application Programming Interface) is the programming interface that the operating system provides to programmers, allowing user-level control of the operating system. In this embodiment, a game instance can call the operating system's system API to perform the corresponding target operation.

[0054] In this embodiment, the interface information of the system interfaces on the operating system that need to be called during the operation of each cloud game is obtained, such as the interface name and interface address of the system interface required to run cloud game A. The interface information of the system interfaces required to run multiple cloud games is integrated to create an application programming interface library, or API library. The API library contains various functional functions to meet different interface call requirements.

[0055] Since the API library is applicable to any game instance, this embodiment compiles the API library into a DLL file so that any game instance can load the DLL file to obtain related functional functions.

[0056] It should be noted that the DLL file is a rewrite of the system interface of the operating system. Optionally, the interface information in the DLL file covers the interface information of all system interfaces on the operating system, or it can be the interface information of a local system interface on the operating system. The local system interface refers to the system interface related to the operation of cloud games.

[0057] S330. Call the corresponding system interface on the same operating system based on the target application interface, so that the game instance corresponding to each user terminal executes the target operation corresponding to the cloud game running request through the system interface.

[0058] In this embodiment, the cloud game execution request sent by the user terminal is first processed by the DLL file before calling the target application interface of the operating system. The target application interface then calls the operating system's system interface to perform the corresponding target operation. Optionally, this system interface can be the same system interface on the same operating system, such as different game instances calling the same sound interface, or different system interfaces on the same operating system, such as the sound interface and the screen interface on the same operating system.

[0059] For example, game instance A calls the sound interface 1 on the operating system through a DLL file to obtain the sound effects when game A is running, and game instance B calls the same sound interface 1 on the operating system through a DLL file to obtain the sound effects when game B is running, and so on.

[0060] In related technologies, the same system interface of the same operating system will be called by game instances corresponding to cloud gaming applications requested to run by multiple user terminals. Once a system interface is called by a certain game instance, other game instances cannot call it. To this end, the existing technology uses virtualization technology to create multiple virtual machines on the operating system, and then installs an operating system on each virtual machine, so that multiple game instances call the interface on the operating system on the virtual machine to realize the call of the system interface. Multiple virtual machines and their operating systems cause large memory consumption. This solution uses the interface information of the system interface of the operating system to generate a DLL file, so that when multiple game instances need to call the system interface, each game instance loads the DLL file, and then calls the system interface corresponding to the operating system through the DLL, so that multiple game instances can call the system interface of the same operating system at the same time, so that the game instances corresponding to each user terminal can respectively perform corresponding target operations through the system interface.

[0061] The cloud game running method provided in this embodiment provides a pre-configured dynamic link library between the operating system and the user terminal, and calls the system interface of the operating system in the dynamic link library to enable multiple game instances to call the same system interface on the same operating system at the same time, thereby avoiding the installation and operation of multiple virtual operating systems, reducing the memory loss of multiple cloud game runtime servers, and improving memory utilization.

[0062] In order to make this technical solution clearer and easier to understand, the specific implementation process and method of this technical solution are described in detail below.

[0063] In one embodiment, determining the interface information of the system interface on the operating system according to the cloud game execution request in step S310 may include the following steps:

[0064] S3101. Determine the game instance requested to be run by the user terminal based on the cloud game running request.

[0065] In this embodiment, multiple different game applications are installed on the server. When a user initiates a cloud game execution request through a user terminal, the server parses the cloud game execution request, determines the game application requested by each user terminal based on the game identifier carried in the cloud game execution request, and then executes the relevant game application.

[0066] S3102: Obtain game configuration information corresponding to the game instance from a preset configuration information table, and determine interface information of a system interface on the operating system that the user terminal requests to call based on the game configuration information.

[0067] In this embodiment, a configuration information table is stored on the server. This table records the game configuration information corresponding to each game instance. For example, the game configuration information may include the interface names and parameters required for running the game instance. The game configuration information can be used to determine the interface information of the system interface on the operating system that the game instance needs to call during operation.

[0068] S3103. Determine the target application interface corresponding to the cloud game running request from the pre-configured dynamic link library based on the interface information.

[0069] The DLL library, or DLL file, includes various application interfaces and related functions related to cloud gaming, such as those related to image processing, sound processing, and user interaction processing. The system interface on the operating system corresponds to each application interface in the DLL file. The target application interface corresponding to the DLL library corresponding to the system interface on the operating system is determined based on the interface name and parameters recorded in the game configuration information, allowing the user terminal to call the system interface on the operating system through this target application interface.

[0070] In an embodiment of the present disclosure, game configuration information of a game instance is pre-set; wherein the game configuration information includes interface information of a system interface that the game instance needs to call.

[0071] For example, it is pre-set that the sound interface that game instance A needs to call is system interface A on the operating system, the screen interface that needs to be called is system interface B on the operating system, and the operation interface that needs to be called is system interface C on the operating system. According to the game configuration information of the game instance, when game instance A is running, it needs to call system interface A to perform sound processing functions, system interface B to perform screen processing functions, and system interface C to perform operation processing functions, etc.

[0072] Furthermore, the game configuration information can be associated with the game instance corresponding to the game to obtain a configuration information table.

[0073] Optionally, each game instance and its corresponding game configuration information are associated to obtain a configuration information table. In the configuration information table, each game instance and its corresponding game configuration information are mapped one-to-one. Game instances and their corresponding game configuration information can be associated using a set keyword or label. When the server determines that a user terminal has requested to run the game instance, it obtains the keyword or symbol corresponding to the game instance and, through the association relationship in the configuration information table, retrieves the keyword or symbol to obtain the corresponding game configuration information.

[0074] In one embodiment, before determining the corresponding target application interface from the pre-configured dynamic link library according to the interface information in step S320, the following steps are further included:

[0075] S320a. Create a corresponding game instance according to the cloud game running request, and load the dynamic link library into the game instance.

[0076] When the server receives a cloud game running request sent by a user terminal, it starts to create a game instance and runs the corresponding game instance. In this embodiment, the server creates multiple game instances corresponding to multiple cloud game running requests. Each game instance is independent of each other and does not affect each other.

[0077] The DLL file is loaded into each game instance so that each game instance runs the same DLL file, wherein the DLL file records the functions required for the system interface call.

[0078] Furthermore, determining the corresponding target application interface from the pre-configured dynamic link library according to the interface information in step S320 may include the following steps:

[0079] S3201. Obtain an interface identifier corresponding to the system interface requested for invocation according to the interface information.

[0080] Establish the correspondence between the interface identifier, the application interface in the DLL file, and the system interface in advance, and read the target interface identifier corresponding to the system interface indicated in the cloud game running request when receiving the cloud game running request.

[0081] S3202: Query each application interface in the dynamic link library in the game instance, and determine the application interface corresponding to the interface identifier as the target application interface.

[0082] In each independent game instance, from the interface identifiers and application interfaces with corresponding relationships, each application interface in the DLL file is queried to determine the target system interface corresponding to the target interface identifier.

[0083] In one embodiment, step S330 calls a corresponding system interface on the same operating system based on the target application interface, so that the game instance corresponding to each user terminal performs the corresponding target operation through the system interface, which may include the following steps:

[0084] S3301. Load the function corresponding to the target application interface to call the system interface corresponding to the operating system through the function.

[0085] The DLL file contains a variety of function functions, which correspond to the functions implemented by different application interfaces. In this embodiment, the function function corresponding to the target application interface is loaded, and the system interface corresponding to the operating system is called through the function function.

[0086] S3302. In response to the cloud game running request, use the system interface to execute the target operations corresponding to the game instance respectively, and return the execution results of the target operations to the corresponding user terminal.

[0087] For example, the target operation of the cloud game running request of game instance A is to render a certain game screen. Then system interface B executes the target operation, and after obtaining the execution result of rendering the game screen, it encodes and packages the game screen and returns it to the corresponding user terminal to display the game screen through the display interface of the user terminal.

[0088] Figure 4 This is a schematic diagram of the structure of a cloud gaming system provided by an embodiment. Figure 4As shown, an API library is pre-configured. The API library can be a DLL file, so that the API library can be loaded into the corresponding game instance. In this embodiment, running the corresponding function of each game application creates a corresponding game instance. In the operating system, each game instance corresponds to a game process. Each game instance runs the API library in the corresponding game process to call the system interface on the operating system through the functional functions contained in the API library. For example, if the API library is loaded into game instances 1, 2, and 3 respectively, game instance 1 uses its corresponding API library to call the system interface on the operating system, game instance 2 uses its corresponding API library to call the system interface on the same operating system, and game instance 3 uses its corresponding API library to call the system interface on the same operating system. This eliminates the need to use virtualization technology to build multiple virtual operating systems to call the system interface on the same operating system, thus avoiding the occupation of memory resources by multiple virtual operating systems.

[0089] The following is a detailed description of the relevant embodiments of the cloud gaming delay testing device.

[0090] Figure 5 This is a structural diagram of a cloud game running device provided by an embodiment, which is executed in a server of a cloud game system.

[0091] Specifically, such as Figure 5 As shown, the cloud game running device 300 may include: a receiving module 310, a determination module 320 and an adjustment module 330.

[0092] Receiving module 310, configured to receive a cloud game running request sent by a user terminal;

[0093] A determination module 320 is configured to determine a target application interface corresponding to the cloud game execution request from a pre-configured dynamic link library according to the cloud game execution request;

[0094] The calling module 330 is used to call the corresponding system interface on the same operating system based on the target application interface, so that the game instance corresponding to the user terminal executes the target operation corresponding to the cloud game running request through the system interface.

[0095] The cloud game running device provided in this embodiment provides a pre-configured dynamic link library between the operating system and the user terminal, and calls the system interface of the operating system in the dynamic link library to enable multiple applications to call the same system interface on the same operating system at the same time, thereby reducing the memory loss of multiple cloud game runtime servers.

[0096] In one embodiment, the cloud game running device 300 also includes: a dynamic link library acquisition module, which is used to obtain a locally uploaded dynamic link library, wherein the dynamic link library obtains the interface information of the system interface that needs to be called during the cloud game running process, and creates an application programming interface library according to the interface information; the application programming interface library is encoded.

[0097] In one embodiment, the receiving module 310 includes: a program determination unit, an interface information determination unit, and an application interface determination module;

[0098] A program determination unit, configured to determine a game instance requested to be run by a user terminal based on a cloud game run request;

[0099] An interface information determination unit, configured to obtain game configuration information corresponding to the game instance, and determine interface information of a system interface on the operating system requested by the user terminal based on the game configuration information;

[0100] The application interface determination module is used to determine the target application interface corresponding to the cloud game running request from a pre-configured dynamic link library based on the interface information.

[0101] In one embodiment, the determination module 320 includes: a loading unit, configured to create a corresponding game instance according to the cloud game running request and load the dynamic link library into the game instance;

[0102] In one embodiment, the determination module 320 includes: an identification obtaining unit and an interface determining unit;

[0103] An identification obtaining unit, used to obtain an interface identification corresponding to the system interface requested for invocation according to the interface information;

[0104] The interface determination unit is used to query the application interface in the dynamic link library in the game instance and determine the application interface corresponding to the interface identifier as the target application interface.

[0105] In one embodiment, the calling module 330 includes: an interface calling unit and an operation execution unit;

[0106] An interface calling unit, configured to load a function corresponding to a target application interface, and to call a system interface corresponding to an operating system through the function;

[0107] The operation execution unit is used to respond to the cloud game running request, use the system interface to execute the target operation corresponding to the game instance respectively, and return the execution result of the target operation to the corresponding user terminal.

[0108] In one embodiment, the cloud game running device 300 also includes: a configuration module for pre-setting game configuration information of each game instance; wherein the game configuration information includes interface information of the system interface that the game instance needs to call.

[0109] In one embodiment, the system interface includes at least one of a screen interface, a sound interface, and an interactive operation interface.

[0110] The cloud game running device provided above can be used to execute the cloud game running method provided by any of the above embodiments, and has corresponding functions and beneficial effects.

[0111] Reference below Figure 6 , Figure 6 This is a structural diagram of an electronic device for cloud gaming delay testing provided in an embodiment, which shows an electronic device 700 (such as Figure 1 The electronic device in the embodiment of the present disclosure may include a background server that provides background services for the client device, which can be implemented as an independent server or a server cluster composed of multiple servers. Figure 6 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present disclosure.

[0112] The electronic device includes: a memory and a processor, wherein the processor here may be referred to as a processing device 701 hereinafter, and the memory may include at least one of a read-only memory (ROM) 702, a random access memory (RAM) 703, and a storage device 708 hereinafter, as specifically shown below:

[0113] like Figure 6 As shown, the electronic device 700 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. Various programs and data required for the operation of the electronic device 700 are also stored in the RAM 703. The processing device 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0114] Typically, the following devices may be connected to the I / O interface 705: an input device 706 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 708 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 709. The communication device 709 may allow the electronic device 700 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The electronic device 700 is shown with various devices, but it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed instead.

[0115] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 709, or installed from the storage device 708, or installed from the ROM 702. When the computer program is executed by the processing device 701, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

[0116] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable medium, or any combination of the two. Computer-readable media may be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or components, or any combination of the above. More specific examples of computer-readable media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable medium that can transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0117] In some embodiments, the user terminals and the server may communicate using any currently known or future developed network protocol, such as HTTP (Hypertext Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0118] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0119] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:

[0120] Receive a cloud game running request sent by a user terminal;

[0121] Determine the corresponding cloud game running request target application interface from a pre-configured dynamic link library according to the cloud game running request;

[0122] Based on the target application interface, the corresponding system interface on the same operating system is called, so that the game instances corresponding to each user terminal respectively execute the target operations corresponding to the cloud game running request through the system interface.

[0123] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0124] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0125] The modules or units involved in the embodiments described in this disclosure may be implemented in software or hardware. The name of a module or unit does not, in some cases, limit the unit itself. For example, a receiving module may also be described as a "module for receiving cloud game execution requests."

[0126] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0127] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the above information. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above information.

[0128] According to one or more embodiments of the present disclosure, a cloud game operation method is provided, comprising the following steps:

[0129] Receive a cloud game running request sent by a user terminal;

[0130] Determine the target application interface corresponding to the cloud game running request from a pre-configured dynamic link library according to the cloud game running request;

[0131] Based on the target application interface, the corresponding system interface on the same operating system is called, so that the game instances corresponding to each user terminal respectively execute the target operations corresponding to the cloud game running request through the system interface.

[0132] In a possible implementation, before the step of determining, according to the cloud game execution request, from a pre-configured dynamic link library, a target application interface corresponding to the cloud game execution request, the following steps are further included:

[0133] A locally uploaded dynamic link library is obtained, wherein the dynamic link library is obtained by obtaining interface information of system interfaces required to be called during the operation of each cloud game, creating an application programming interface library based on the interface information, and encoding the application programming interface library.

[0134] In one possible implementation, the step of determining, according to the cloud game execution request, from a pre-configured dynamic link library a target application interface corresponding to the cloud game execution request includes:

[0135] Determine the game instance requested by the user terminal based on the cloud game running request;

[0136] Obtaining game configuration information corresponding to the game instance, and determining interface information for the user terminal to request to call a system interface on the operating system based on the game configuration information;

[0137] The target application interface corresponding to the cloud game running request is determined from a pre-configured dynamic link library according to the interface information.

[0138] In one possible implementation, before the step of determining the target application interface corresponding to the cloud game execution request from a pre-configured dynamic link library according to the interface information, the method further includes:

[0139] Create a corresponding game instance based on the cloud game running request and load the dynamic link library into the game instance;

[0140] The steps of determining the target application interface corresponding to the cloud game running request from the pre-configured dynamic link library according to the interface information include:

[0141] Obtain the interface identifier corresponding to the system interface requested for calling according to the interface information;

[0142] In the game instance, the application interface in the dynamic link library is searched, and the application interface corresponding to the interface identifier is determined as the target application interface.

[0143] In one possible implementation, the steps of calling a corresponding system interface on the same operating system based on a target application interface so that the game instances corresponding to each user terminal respectively execute the target operation corresponding to the cloud game running request through the system interface include:

[0144] Loading the function corresponding to the target application interface to call the system interface corresponding to the operating system through the function function;

[0145] In response to the cloud game running request, the system interface is used to execute the target operations corresponding to the game instance respectively, and the execution results of the target operations are returned to the corresponding user terminal.

[0146] In a possible implementation, before the step of obtaining the game configuration information corresponding to the game instance, the method further includes:

[0147] Pre-set game configuration information for each game instance; wherein the game configuration information includes interface information of the system interface that the game instance needs to call.

[0148] In a possible implementation, the system interface includes a picture interface, a sound interface, and an interactive operation interface.

[0149] According to one or more embodiments of the present disclosure, a cloud game running device is provided, comprising:

[0150] A receiving module is used to receive a cloud game running request sent by a user terminal;

[0151] A determination module, configured to determine a target application interface corresponding to the cloud game running request from a pre-configured dynamic link library according to the cloud game running request;

[0152] The calling module is used to call the corresponding system interface on the same operating system based on the target application interface, so that the game instance corresponding to the user terminal executes the target operation corresponding to the cloud game running request through the system interface.

[0153] In one possible implementation, the cloud game running device also includes: a dynamic link library acquisition module, which is used to obtain a locally uploaded dynamic link library, wherein the dynamic link library obtains interface information of the system interface that needs to be called during the operation of each cloud game, and creates an application programming interface library based on the interface information; the application programming interface library is encoded.

[0154] In a possible implementation, the receiving module includes: a program determination unit, an interface information determination unit, and an application interface determination unit;

[0155] A program determination unit, configured to determine a game instance requested to be run by a user terminal based on a cloud game run request;

[0156] An interface information determination unit, configured to obtain game configuration information corresponding to the game instance, and determine interface information of a system interface on the operating system requested by the user terminal based on the game configuration information;

[0157] The application interface determination module is used to determine the target application interface corresponding to the cloud game running request from a pre-configured dynamic link library based on the interface information.

[0158] In one possible implementation, the determination module includes: a loading unit, configured to create a corresponding game instance according to a cloud game running request and load a dynamic link library into the game instance;

[0159] In a possible implementation, the determination module includes: an identification obtaining unit and an interface determining unit;

[0160] An identification obtaining unit, used to obtain an interface identification corresponding to the system interface requested for invocation according to the interface information;

[0161] The interface determination unit is used to query the application interface in the dynamic link library in the game instance and determine the application interface corresponding to the interface identifier as the target application interface.

[0162] In a possible implementation, the calling module includes: an interface calling unit and an operation execution unit;

[0163] An interface calling unit, configured to load a function corresponding to a target application interface, and to call a system interface corresponding to an operating system through the function;

[0164] The operation execution unit is used to respond to the cloud game running request, use the system interface to execute the target operation corresponding to the game instance respectively, and return the execution result of the target operation to the corresponding user terminal.

[0165] In one possible implementation, the cloud game running device also includes: a configuration module for pre-setting game configuration information of each game instance; wherein the game configuration information includes interface information of the system interface that the game instance needs to call.

[0166] In a possible implementation, the system interface includes at least one of a picture interface, a sound interface, and an interactive operation interface.

[0167] According to one or more embodiments of the present disclosure, there is provided an electronic device, comprising:

[0168] one or more processors;

[0169] Memory;

[0170] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to: execute the cloud game running method.

[0171] According to one or more embodiments of the present disclosure, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the cloud game running method is implemented.

[0172] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.

[0173] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0174] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. A cloud game operation method, characterized in that: The following steps are involved: Receive a cloud game running request sent by a user terminal; Determining, according to the cloud game running request, a target application interface corresponding to the cloud game running request from a pre-configured dynamic link library; Based on the target application interface, a corresponding system interface on the same operating system is called, so that the game instance corresponding to the user terminal executes the target operation corresponding to the cloud game running request through the system interface; The step of determining the target application interface corresponding to the cloud game running request from a pre-configured dynamic link library according to the cloud game running request includes: Determining, based on the cloud game execution request, the game instance requested to be executed by the user terminal; Obtaining game configuration information corresponding to the game instance, and determining interface information of a system interface on an operating system requested by the user terminal based on the game configuration information; The target application interface corresponding to the cloud game running request is determined from a pre-configured dynamic link library according to the interface information.

2. The cloud game operation method according to claim 1, characterized in that: Before the step of determining the target application interface corresponding to the cloud game running request from a pre-configured dynamic link library according to the cloud game running request, the following steps are also included: Get the locally uploaded dynamic link library; The dynamic link library obtains interface information of the system interface that needs to be called during the operation of the cloud game, creates an application programming interface library according to the interface information, and encodes the application programming interface library.

3. The cloud game operation method according to claim 1, characterized in that: Before the step of determining the target application interface corresponding to the cloud game execution request from a pre-configured dynamic link library according to the interface information, the method further includes: Creating a corresponding game instance according to the cloud game running request, and loading the dynamic link library into the game instance; The step of determining the target application interface corresponding to the cloud game execution request from a pre-configured dynamic link library according to the interface information includes: Obtaining an interface identifier corresponding to the system interface requested to be called according to the interface information; In the game instance, the application interface in the dynamic link library is searched, and the application interface corresponding to the interface identifier is determined as the target application interface.

4. The cloud game operation method according to claim 3, characterized in that: The step of calling the corresponding system interface on the same operating system based on the target application interface so that the game instance corresponding to the user terminal respectively executes the target operation corresponding to the cloud game running request through the system interface includes: Loading a function corresponding to the target application interface, so as to call a system interface corresponding to the operating system through the function function; In response to the cloud game running request, the target operations corresponding to the game instances are respectively executed using the system interface, and the execution results of the target operations are returned to the corresponding user terminal.

5. The cloud game operation method according to claim 1, characterized in that: Before the step of obtaining the game configuration information corresponding to the game instance, the method further includes: Pre-setting game configuration information of the game instance; wherein the game configuration information includes interface information of the system interface that the game instance needs to call.

6. The cloud game operation method according to any one of claims 1 to 5, characterized in that: The system interface includes at least one of a screen interface, a sound interface, and an interactive operation interface.

7. A cloud game running device, characterized in that: include: A receiving module is used to receive a cloud game running request sent by a user terminal; A determination module, configured to determine, according to the cloud game running request, a target application interface corresponding to the cloud game running request from a pre-configured dynamic link library; A calling module, configured to call a corresponding system interface on the same operating system based on the target application interface, so that the game instance corresponding to the user terminal respectively executes the target operation corresponding to the cloud game running request through the system interface; The determination module includes: a program determination unit, an interface information determination unit and an application interface determination module; A program determination unit, configured to determine a game instance requested to be run by a user terminal based on a cloud game run request; An interface information determination unit, configured to obtain game configuration information corresponding to the game instance, and determine interface information of a system interface on the operating system requested by the user terminal based on the game configuration information; The application interface determination module is used to determine the target application interface corresponding to the cloud game running request from a pre-configured dynamic link library based on the interface information.

8. An electronic device, characterized in that: It includes: one or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to: execute the cloud game running method according to any one of claims 1-6.

9. A computer-readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the cloud game operation method described in any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Method for keeping application instance in activated state and cloud server

    CN107621976A

  • Cloud game implementation method and device

    CN110694267A