Cloud game running method and device, electronic equipment and computer readable medium

文档序号:493304 发布日期:2022-01-07 浏览:20次 中文

阅读说明:本技术 云游戏运行方法、装置、电子设备及计算机可读介质 (Cloud game running method and device, electronic equipment and computer readable medium ) 是由 吴旺邦 于 2020-07-06 设计创作,主要内容包括:本公开提供了一种云游戏运行方法、装置、电子设备及计算机可读介质,涉及互联网技术领域。该方法通过接收用户终端发送的云游戏运行请求;根据接口信息从预先配置的动态链接库中确定云游戏运行请求对应的目标应用接口;基于目标应用接口调用同一操作系统上对应的系统接口,以使得各用户终端对应的游戏实例通过系统接口分别执行云游戏运行请求对应的目标操作。本技术方案能够实现多个游戏实例能够同时调用同一操作系统上的系统接口,减少了云游戏运行时服务器的内存资源的浪费。(The disclosure provides a cloud game running method and device, electronic equipment and a computer readable medium, and relates to the technical field of internet. The method comprises the steps of receiving a cloud game running request sent by a user terminal; determining a target application interface corresponding to the cloud game running request from a pre-configured dynamic link library according to the interface information; and calling corresponding system interfaces on the same operating system based on the target application interfaces so that the game instances corresponding to the user terminals respectively execute target operations corresponding to the cloud game running requests through the system interfaces. According to the technical scheme, the system interfaces of the same operating system can be called by a plurality of game instances at the same time, and waste of memory resources of the server during running of the cloud game is reduced.)

1. A cloud game running method is characterized by comprising the following steps:

receiving a cloud game running request sent by a user terminal;

determining 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;

and calling 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.

2. The cloud game running method according to claim 1, wherein 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 method further comprises the following steps:

acquiring a locally uploaded dynamic link library;

the dynamic link library is obtained by acquiring interface information of a system interface required to be called in the running process of the cloud game, creating an application programming interface library according to the interface information, and coding the application programming interface library.

3. The cloud game running method according to claim 1, wherein the step of determining, from a pre-configured dynamic link library, a target application interface corresponding to the cloud game running request according to the cloud game running request comprises:

determining a game instance requested to be operated by the user terminal according to the cloud game operation request;

acquiring game configuration information corresponding to the game instance, and determining interface information of a system interface on an operating system requested to be called by the user terminal according to the game configuration information;

and determining a target application interface corresponding to the cloud game running request from a pre-configured dynamic link library according to the interface information.

4. The cloud game running method according to claim 3, wherein 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 interface information, the method further comprises:

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 running request from a pre-configured dynamic link library according to the interface information comprises the following steps:

obtaining an interface identifier corresponding to the system interface requested to be called according to the interface information;

and inquiring an application interface in the dynamic link library in the game instance, and determining the application interface corresponding to the interface identification as a target application interface.

5. The cloud game running method according to claim 4, wherein the step of calling a corresponding system interface on the same operating system based on the target application interface so that the game instances corresponding to the user terminals respectively execute the target operations corresponding to the cloud game running requests through the system interfaces comprises:

loading a function corresponding to the target application interface so as to call a system interface corresponding to the operating system through the function;

and responding to the cloud game running request, respectively executing target operations corresponding to the game instances by using the system interface, and returning the execution results of the target operations to the corresponding user terminals.

6. The cloud game running method according to claim 3, wherein before the step of obtaining the game configuration information corresponding to the game instance, the method further comprises:

presetting game configuration information of the game instance; the game configuration information comprises interface information of a system interface which needs to be called by the game instance.

7. The cloud game execution method of any of claims 1 to 6, wherein the system interface comprises at least one of a visual interface, a sound interface, and an interactive interface.

8. A cloud game execution apparatus, comprising:

the cloud game system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a cloud game operation request sent by a user terminal;

the determining module is used for determining 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;

and the calling module is used for calling a corresponding system interface on the same operating system based on the target application interface so as to enable the game instance corresponding to the user terminal to respectively execute the target operation corresponding to the cloud game running request through the system interface.

9. An electronic device, comprising:

one or more processors;

a 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, the one or more programs configured to: performing the cloud game execution method of any of claims 1-7.

10. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, implements the cloud game execution method according to any one of claims 1 to 7.

Technical Field

The present disclosure relates to the field of internet technologies, and in particular, to a cloud game running method and apparatus, an electronic device, and a computer-readable medium.

Background

With the continuous development of computer technology, cloud games based on cloud computing are also becoming popular. In the application of the cloud game, game logic and rendering operation of the cloud game are completed at the cloud end, a processed result is encoded into an audio and video stream and transmitted to a terminal through a network, and the terminal uploads user operation information to the cloud end. In the cloud game mode, all games run on a cloud server, a plurality of users use different terminal devices to connect through a network, and different types of games run on the cloud server of an operator.

In order to support different user terminals to access to a cloud game server to meet the requirements of users, in the related art, at least one virtual machine is installed on an operating system of the server, and a corresponding virtual operating system is installed on each virtual machine to provide a corresponding system interface to the corresponding user terminal through the virtual operating system.

Disclosure of Invention

This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.

In a first aspect, an embodiment of the present disclosure provides a cloud game running method, including the following steps:

receiving a cloud game running request sent by a user terminal;

determining 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;

and calling corresponding system interfaces on the same operating system based on the target application interfaces so that the game instances corresponding to the user terminals respectively execute target operations corresponding to the cloud game running requests through the system interfaces.

In a second aspect, an embodiment of the present disclosure further provides a cloud game running device, including:

the cloud game system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a cloud game operation request sent by a user terminal;

the determining module is used for determining 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;

and the calling module is used for calling the corresponding system interfaces on the same operating system based on the target application interfaces so that the game instances corresponding to the user terminals respectively execute the target operations corresponding to the cloud game running requests through the system interfaces.

In a third aspect, an embodiment of the present disclosure further provides an electronic device, which includes:

one or more processors;

a memory;

one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: the cloud game running method mentioned according to any of the above embodiments is performed.

In a fourth aspect, the disclosed embodiment further provides a computer readable medium, on which a computer program is stored, where the computer program is executed by a processor to implement the cloud game running method mentioned in any of the above embodiments.

The technical scheme provided by the disclosure has the following beneficial effects:

the cloud game running method, the cloud game running device, the electronic equipment and the computer readable medium provided by the embodiment receive the cloud game running request sent by the user terminal; determining 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; and calling corresponding system interfaces on the same operating system based on the target application interface so that the game instances corresponding to the user terminals respectively execute target operations corresponding to the cloud game running requests through the system interfaces, thereby realizing that a plurality of game instances can simultaneously call the system interfaces on the same operating system, reducing the waste of memory resources of the server when a plurality of cloud games run, and improving the utilization rate of the memory resources.

Additional aspects and advantages of the disclosure will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the disclosure.

Drawings

The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.

FIG. 1 is a schematic diagram of a cloud gaming execution system framework;

fig. 2 is a schematic structural diagram of a cloud game execution system in the related art;

fig. 3 is a flowchart of a cloud game running method according to an embodiment;

fig. 4 is a schematic structural diagram of a cloud game execution system according to an embodiment;

fig. 5 is a schematic structural diagram of a cloud game execution apparatus according to an embodiment;

fig. 6 is a schematic structural diagram of an electronic device for cloud game delay testing according to an embodiment.

Detailed Description

Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.

It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.

The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "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"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.

It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing the devices, modules or units, and are not used for limiting the devices, modules or units to be different devices, modules or units, and also for limiting the sequence or interdependence relationship of the functions executed by the devices, modules or units.

It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.

The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.

The present disclosure provides a cloud game delay testing method, apparatus, electronic device and computer readable medium, which aim to solve the above technical problems in the prior art.

The following describes the technical solutions of the present disclosure and how to solve the above technical problems in specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present disclosure will be described below with reference to the accompanying drawings.

The cloud game can become a game on demand, and is an online game technology based on a cloud computing technology. Cloud game technology enables user terminal devices with relatively limited graphics processing and data computing capabilities to run high quality games. In a cloud game scene, a game is not played at a user terminal used by a user for playing the game, but in a cloud server, the cloud server renders the game scene into audio and video streams, and the audio and video streams are transmitted to the user terminal through a network. The user terminal does not need to have strong graphic operation and data processing capacity, and only needs to have basic streaming media playing capacity and capacity of acquiring user input instructions and sending the instructions to the cloud server.

In order to better explain the technical solution of the present disclosure, a certain application environment to which the cloud game running method of the present solution can be applied is shown below.

As shown in fig. 1, fig. 1 is a schematic diagram of a cloud game running system framework, which includes a user terminal 101 and a server 102, wherein the user terminal 101 and the server 102 establish a communication connection through a network. The workflow of the running system of the cloud game can be as follows: the user inputs control operation in the user terminal 101, the user terminal 101 generates an operation instruction according to the control operation input by the user and sends the operation instruction to the server 102, the server 102 analyzes the received operation instruction to obtain game data corresponding to the operation instruction, further, the server 102 performs picture rendering according to the game data to generate corresponding video stream data, encodes the video stream data and sends the encoded video stream data to the user terminal 101 through network transmission, and the user terminal 101 decodes the received video stream data to obtain a game picture and displays the game picture on a display interface of the user terminal 101.

The current cloud game operation mainly comprises that a server bears the operation work of a game, a large number of game application programs are operated on the server, and a user terminal only needs to acquire video stream data related to the game sent by the server and display a game picture corresponding to the received video stream.

Fig. 2 is a schematic structural diagram of a cloud game operating system in the related art, in which a cloud game server architecture includes a host, a host operating system and a virtual machine, the host operating system is installed on the host (not shown), the host is located at the bottom of the cloud game server architecture and is an independent physical host, and at least one virtual machine is installed on the host operating system to establish a plurality of corresponding virtual operating systems through the virtual machine, as shown in fig. 2, the virtual machine 1 constructs a virtual operating system 1, the virtual machine 2 constructs a virtual operating system 2, the virtual machine 3 constructs a virtual operating system 3, etc., the virtual operating system and the user terminal are connected one by one, so that the user terminal can call a system interface of the virtual operating system, and the execution of related functions in the running process of the cloud game is realized, for example: collection, transmission, processing, reception, and the like of screen information, sound information, operation information, and the like.

In the related art, the installation and operation of each virtual machine and each virtual operating system occupy the memory of the server, so that the memory space and the number of game applications running on the server are limited, and the resource utilization rate of cloud game running of the server is low.

Based on this, the embodiment of the present disclosure provides a cloud game running scheme, which can reduce resource redundancy of an operating system, release more memory space, and improve resource utilization rate of cloud game running.

The cloud game operation method of the present disclosure will be described in detail with reference to the following embodiments.

Fig. 3 is a flowchart of a cloud game running method according to an embodiment, where the cloud game running method may be executed by a server of a cloud game system.

Specifically, as shown in fig. 3, the cloud game operating method may include the following steps:

and S310, receiving a cloud game running request sent by a user terminal.

In this embodiment, each user terminal may request to run a different game, and send a cloud game running request to the server. Different user terminals may request to run different game applications, e.g., user terminal a requests to run game a, user terminal B requests to run game B, etc., or different user terminals may request to run the same game application, e.g., user terminal C and user terminal D both request to run game C.

In this embodiment, the game application requested to be run by the user terminal calls a common system port, such as a picture interface, a sound interface, an interactive operation interface, and the like, required in the running process of the cloud game. The picture interface is a game picture display interface and is used for calling a related picture processing function so as to realize generation, processing, rendering and the like of a game picture; the sound interface is a game sound playing interface and is used for calling related sound processing functions so as to synthesize, process, play and the like cloud game sound; the interactive operation interface is a processing interface for game operation of a user, and is used for calling a related operation processing function to receive and respond to the user operation of the cloud game, and the like, such as long-time pressing, clicking, sliding and other interactive operations made on a touch screen to represent forward, backward, turning and other operations in the game. Optionally, the system interface may be a GPU interface, a database interface, a network interface, and the like.

The server receives cloud game running requests sent by the user terminals, wherein the cloud game running requests carry relevant information of interface calling, such as identifiers of interface names, interface addresses and the like of system interfaces requested to be called, so as to determine game application programs requested to run by the user terminals. The server analyzes the cloud game running request to obtain interface information, such as an interface name, an interface address and the like, of the user terminal requesting to call a system interface on the server operating system.

And S320, determining 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.

In the present embodiment, a Dynamic Link Library (DLL), i.e., a DLL file, includes various application interfaces related to the running of a cloud game and functions related thereto, such as a function related to picture processing, a function related to sound processing, and a function related to operation processing. Each application interface in the DLL file corresponds to a system interface on the operating system.

Optionally, the server obtains the locally uploaded dynamic link library to obtain a preconfigured dynamic link library. The dynamic link library is obtained by acquiring interface information of a system interface required to be called in the running process of the cloud game, creating an application programming interface library according to the interface information, and coding the application programming interface library.

In the embodiment of the present disclosure, the Hook API technology is used to rewrite the operating system on the server, and the Hook API technology refers to that an application program may be intercepted before calling a system interface (i.e., a system API) of a real operating system, so as to perform some processing and then call the system API on the real operating system to complete a function. An Application Programming Interface (API) refers to a Programming Interface that an operating system opens to a programmer, so that the operating system can be controlled at a user level.

In this embodiment, interface information of a system interface on an operating system that needs to be called in the running process of each cloud game, such as an interface name and an interface address of a system interface that needs to be called in running the cloud game a, is obtained, the interface information of the system interface that needs to be called in running a plurality of cloud games is integrated, and an application programming interface library, that is, an API library, is created. The API library comprises a plurality of function functions so as to meet different interface calls.

Since the API library is suitable for any game instance, the present embodiment writes the API library into a DLL file, so that any game instance can load the DLL file to obtain the relevant function.

It should be noted that the DLL file is a rewrite of a system interface of the operating system, and optionally, interface information in the DLL file covers interface information of all system interfaces on the operating system, and may also be interface information of a local system interface on the operating system, where the local system interface is a system interface related to running of the cloud game.

And S330, calling corresponding system interfaces on the same operating system based on the target application interfaces so that the game instances corresponding to the user terminals respectively execute target operations corresponding to the cloud game running requests through the system interfaces.

In this embodiment, before a cloud game running request sent by a user terminal calls a system interface to an operating system, a target application interface is called after being processed by a DLL file, and then the system interface of the operating system is called by the target application interface to execute a corresponding target operation. Optionally, the system interface may be the same system interface on the same operating system, such as different game instances calling the same sound interface, or may be different system interfaces on the same operating system, such as a sound interface and a picture interface on the same operating system.

For example, game instance A calls sound interface 1 on the operating system through the DLL file to get the sound effect when game A runs, game instance B calls the same sound interface 1 on the operating system through the DLL file to get the sound effect when game B runs, and so on.

In the related art, the same system interface of the same operating system is requested to be called by game instances corresponding to cloud game application programs requested to run by a plurality of user terminals, once one system interface is called by a certain game instance, other game instances cannot be called, therefore, in the prior art, a plurality of virtual machines are created on the operating system through a virtualization technology, and each virtual machine is further provided with an operating system, so that the plurality of game instances call interfaces on the operating system of the virtual machine to realize the calling of the system interfaces, and the plurality of virtual machines and the operating systems thereof cause large memory consumption. According to the scheme, the DLL file is generated by using the interface information of the system interface of the operating system, so that when the system interface is required to be called by a plurality of game instances, each game instance loads the DLL file, and then the system interface corresponding to the operating system is called by the DLL, so that the plurality of game instances can call the system interface of the same operating system at the same time, and the game instances corresponding to the user terminals can respectively execute corresponding target operations through the system interfaces.

According to the cloud game running method provided by the embodiment, the dynamic link library which is configured in advance is arranged between the operating system and the user terminal, and the system interface of the operating system is called in the dynamic link library, so that a plurality of game instances can call the same system interface on the same operating system at the same time, a plurality of virtual operating systems are prevented from being installed and run, the memory loss of a server during running of a plurality of cloud games is reduced, and the memory utilization rate is improved.

In order to make the technical solution clearer and easier to understand, specific implementation processes and modes in the technical solution are described in detail below.

In an embodiment, the determining interface information requesting to call a system interface on an operating system according to the cloud game running request in step S310 may include the following steps:

s3101, determining a game instance which is requested to be operated by the user terminal according to the cloud game operation request.

In this embodiment, a plurality of different game applications are installed on the server. When a user initiates a cloud game running request through a user terminal, a server analyzes the cloud game running request, determines game application programs required to run by each user terminal through game identifiers and the like carried in the cloud game running request, and runs related game application programs.

S3102, obtaining game configuration information corresponding to the game instance from a preset configuration information table, and determining interface information of the system interface on the operating system requested by the user terminal according to the game configuration information.

In this embodiment, the server stores a configuration information table, in which game configuration information corresponding to each game instance is recorded, for example, the game configuration information may include an interface name and parameters required for running the game instance. Interface information of a system interface on an operating system required to be called during the running process of the game instance can be determined through game configuration information.

S3103, determining a target application interface corresponding to the cloud game running request from a pre-configured dynamic link library according to the interface information.

The DLL library, i.e., the DLL file, includes various application interfaces related to the operation of the cloud game and related functions thereof, such as a function related to picture processing, a function related to sound processing, and a function related to user interactive manipulation processing. The system interface on the operating system corresponds to each application interface in the DLL file, so that the target application interface corresponding to the DLL library corresponding to the system interface on the operating system is determined according to the interface name, the parameters and the like recorded by the game configuration information, and the user terminal can call the system interface on the operating system through the target application interface.

In the embodiment of the disclosure, game configuration information of a game instance is preset; the game configuration information comprises interface information of a system interface which needs to be called by the game instance.

For example, a sound interface to be called by the game instance a is a system interface a on the operating system, a picture interface to be called is a system interface B on the operating system, and an operation interface to be called is a system interface C on the operating system. According to the game configuration information of the game instance, the game instance A needs to call the system interface A to execute a sound processing function when running, the system interface B to execute a picture processing function and the system interface C to execute an operation processing function.

Furthermore, the association relationship between the game configuration information and the game instance corresponding to the game can be established to obtain the configuration information table.

Optionally, each game instance and the game configuration information corresponding to the game instance are associated to obtain a configuration information table. In the configuration information table, each game instance and the game configuration information corresponding to the game instance are in a one-to-one mapping relationship, and the game instance and the game configuration information corresponding to the game instance can be associated through set keywords or labels. And when the server determines that the user terminal requests to operate the game instance, acquiring the keywords or the symbols corresponding to the game instance, and inquiring the keywords or the symbols to acquire the corresponding game configuration information through the association relation in the configuration information table.

In an embodiment, before determining the corresponding target application interface from the preconfigured dynamic link library according to the interface information in step S320, the method further includes the following steps:

s320a, creating a corresponding game instance according to the cloud game running request, and loading the dynamic link library into the game instance.

And when the server receives a cloud game running request sent by the user terminal, starting to create a game instance and running the corresponding game instance. In this embodiment, the server correspondingly creates a plurality of game instances according to the plurality of cloud game running requests, and the game instances are independent from each other and do not affect each other.

And loading the DLL file into each game instance to enable each game instance to run the same DLL file, wherein functions required by calling of a system interface are recorded in the DLL file.

Further, the step S320 of determining a corresponding target application interface from a preconfigured dynamic link library according to the interface information may include the following steps:

s3201, obtaining an interface identifier corresponding to the system interface requested to be called according to the interface information.

The method comprises the steps of establishing a corresponding relation between an interface identifier and an application interface and a system interface in a DLL file in advance, and reading a target interface identifier corresponding to the system interface indicated in a cloud game running request when the cloud game running request is received.

S3202, inquiring each application interface in the dynamic link library in the game instance, and determining the application interface corresponding to the interface identification as a target application interface.

In each independent game instance, each application interface in the DLL file is inquired from the interface identification and the application interface with the corresponding relation, and the target system interface corresponding to the target interface identification is determined.

In an embodiment, the step S330 may call a corresponding system interface on the same operating system based on the target application interface, so that the game instances corresponding to the user terminals respectively execute corresponding target operations through the system interfaces, and the step S may include the following steps:

and S3301, loading a function corresponding to the target application interface, so as to call a system interface corresponding to the operating system through the function.

The DLL file comprises a plurality of function functions which respectively correspond to the functions realized by different application interfaces. In this embodiment, a function corresponding to the target application interface is loaded, and a system interface corresponding to the operating system is called through the function.

And S3302, in response to the cloud game running request, respectively executing target operations corresponding to the game instances by using the system interface, and returning an execution result of the target operations to the corresponding user terminal.

For example, if the target operation of the cloud game running request of the game instance a is rendering a certain game screen, the system interface B executes the target operation, obtains an execution result of rendering the game screen, and then encodes and packages the game screen to return to the corresponding user terminal, so as to display the game screen through the display interface of the user terminal.

Fig. 4 is a schematic structural diagram of a cloud game execution system according to an embodiment, and as shown in fig. 4, an API library is configured in advance, where the API library may be a DLL file, so as to load the API library into a corresponding game instance. In this embodiment, the function corresponding to the running of each game application creates a corresponding game instance, each game instance corresponds to a game process in the operating system, and each game instance runs the API library in the corresponding game process, so as to call a system interface on the operating system through a function included in the API library. If the API libraries are loaded into the game instances 1, 2, and 3, the game instance 1 calls the system interface on the operating system by using the corresponding API library, the game instance 2 calls the system interface on the same operating system by using the corresponding API library, and the game instance 3 calls the system interface on the same operating system by using the corresponding API library, so that the system interface on the same operating system can be called without constructing a plurality of virtual operating systems by using a virtualization technology, and the memory resources of the plurality of virtual operating systems are prevented from being occupied.

The following describes in detail a related embodiment of the cloud game delay testing apparatus.

Fig. 5 is a schematic structural diagram of a cloud game execution apparatus implemented in a server of a cloud game system according to an embodiment.

Specifically, as shown in fig. 5, the cloud game execution apparatus 300 may include: a receiving module 310, a determining module 320, and an adjusting module 330.

A receiving module 310, configured to receive a cloud game running request sent by a user terminal;

the determining module 320 is configured to determine, according to the cloud game running request, a target application interface corresponding to the cloud game running request from a preconfigured dynamic link library;

the invoking module 330 is configured to invoke corresponding system interfaces on the same operating system based on the target application interface, so that the game instances corresponding to the user terminals respectively execute the target operations corresponding to the cloud game running requests through the system interfaces.

According to the cloud game running device provided by the embodiment, the dynamic link library which is configured in advance is arranged between the operating system and the user terminal, and the system interface of the operating system is called in the dynamic link library, so that a plurality of application programs can call the same system interface on the same operating system at the same time, and the memory loss of a server during running of a plurality of cloud games is reduced.

In one embodiment, the cloud game execution apparatus 300 further includes: the dynamic link library acquisition module is used for acquiring a locally uploaded dynamic link library, wherein the dynamic link library establishes an application programming interface library according to interface information by acquiring the interface information of a system interface required to be called in the running process of the cloud game; and coding the application programming interface library.

In one embodiment, the receiving module 310 includes: the device comprises a program determining unit, an interface information determining unit and an application interface determining module;

the program determining unit is used for determining a game instance which is requested to be operated by the user terminal according to the cloud game operation request;

the interface information determining unit is used for acquiring game configuration information corresponding to a game instance and determining interface information of a system interface on a user terminal requesting to call an operating system according to the game configuration information;

and the application interface determining module is used for determining a target application interface corresponding to the cloud game running request from a pre-configured dynamic link library according to the interface information.

In one embodiment, the determining module 320 includes: the loading unit is used for creating a corresponding game instance according to the cloud game running request and loading the dynamic link library into the game instance;

in one embodiment, the determining module 320 includes: an identification obtaining unit and an interface determining unit;

the identification obtaining unit is used for obtaining an interface identification corresponding to the system interface requested to be called according to the interface information;

and the interface determining unit is used for inquiring the application interface in the dynamic link library in the game instance and determining the application interface corresponding to the interface identifier as the target application interface.

In one embodiment, the calling module 330 includes: the device comprises an interface calling unit and an operation execution unit;

the interface calling unit is used for loading a function corresponding to the target application interface so as to call a system interface corresponding to the operating system through the function;

and the operation execution unit is used for responding to the cloud game running request, respectively executing target operations corresponding to the game instances by using the system interface, and returning the execution results of the target operations to the corresponding user terminals.

In one embodiment, the cloud game execution apparatus 300 further includes: the configuration module is used for presetting game configuration information of each game instance; the game configuration information comprises interface information of a system interface which needs to be called by the game instance.

In an embodiment, the system interface includes at least one of a visual interface, a sound interface, and an interactive interface.

The cloud game running device provided by the embodiment can be used for executing the cloud game running method provided by any embodiment, and has corresponding functions and beneficial effects.

Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device for cloud game delay testing according to an embodiment, which shows a schematic structural diagram of an electronic device 700 (such as the server shown in fig. 1) suitable for implementing an embodiment of the present disclosure. The electronic device in the embodiment of the present disclosure may include a background server that provides a background service for the client device, and may be implemented by an independent server or a server cluster formed by multiple servers. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.

The electronic device includes: a memory and a processor, wherein the processor may be referred to as the 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 shown in detail below:

as shown in fig. 6, the electronic device 700 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 701 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)702 or a program loaded from a storage means 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary for the operation of the electronic apparatus 700 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.

Generally, the following devices may be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 707 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 708 including, for example, magnetic tape, hard disk, etc.; and a communication device 709. The communication means 709 may allow the electronic device 700 to communicate wirelessly or by wire with other devices to exchange data. While fig. 6 illustrates an electronic device 700 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.

In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication means 709, or may be installed from the storage means 708, or may be installed from the ROM 702. The computer program, when executed by the processing device 701, performs the above-described functions defined in the methods of the embodiments of the present disclosure.

It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable medium or any combination of the two. A computer readable medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.

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

The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.

The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to:

receiving a cloud game running request sent by a user terminal;

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

and calling corresponding system interfaces on the same operating system based on the target application interfaces so that the game instances corresponding to the user terminals respectively execute target operations corresponding to the cloud game running requests through the system interfaces.

Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of 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 the connection may be made to an external computer (for example, through the Internet using an Internet service provider).

The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

The modules or units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a module or unit does not in some cases constitute a limitation on the unit itself, for example, a receiving module may also be described as a "module that receives a cloud game play request.

The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, 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 a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.

In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing information. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

According to one or more embodiments of the present disclosure, there is provided a cloud game operating method including the steps of:

receiving a cloud game running request sent by a user terminal;

determining 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;

and calling corresponding system interfaces on the same operating system based on the target application interfaces so that the game instances corresponding to the user terminals respectively execute target operations corresponding to the cloud game running requests through the system interfaces.

In a possible implementation manner, before the step of determining, according to the cloud game running request, a target application interface corresponding to the cloud game running request from a preconfigured dynamic link library, the method further includes the following steps:

the method comprises the steps of obtaining a locally uploaded dynamic link library, wherein the dynamic link library is obtained by obtaining interface information of a system interface required to be called in the running process of each cloud game, creating an application programming interface library according to the interface information, and coding the application programming interface library.

In one possible implementation manner, the step of 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 includes:

determining a game instance requested to be operated by the user terminal according to the cloud game operation request;

acquiring game configuration information corresponding to a game instance, and determining interface information of a system interface on an operating system requested to be called by a user terminal according to the game configuration information;

and determining a target application interface corresponding to the cloud game running request from a pre-configured dynamic link library according to the interface information.

In a possible implementation manner, before the step of determining, from a pre-configured dynamic link library, a target application interface corresponding to the cloud game running request 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 a target application interface corresponding to the cloud game running request from a pre-configured dynamic link library according to the interface information comprises the following steps:

obtaining an interface identifier corresponding to the system interface requested to be called according to the interface information;

and inquiring the application interface in the dynamic link library in the game instance, and determining the application interface corresponding to the interface identification as the target application interface.

In a possible implementation manner, the step of calling 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 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;

and responding to the cloud game running request, respectively executing target operations corresponding to the game instances by using the system interface, and returning the execution result of the target operations to the corresponding user terminal.

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

presetting game configuration information of each game instance; the game configuration information comprises interface information of a system interface which needs to be called by the game instance.

In one possible implementation, the system interface includes a visual interface, a sound interface, and an interactive interface.

According to one or more embodiments of the present disclosure, there is provided a cloud game running apparatus including:

the cloud game system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a cloud game operation request sent by a user terminal;

the determining module is used for determining 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;

and the calling module is used for calling the corresponding system interfaces on the same operating system based on the target application interfaces so that the game instances corresponding to the user terminals respectively execute the target operations corresponding to the cloud game running requests through the system interfaces.

In one possible implementation manner, the cloud game running apparatus further includes: the dynamic link library acquisition module is used for acquiring a locally uploaded dynamic link library, wherein the dynamic link library establishes an application programming interface library according to interface information by acquiring the interface information of a system interface required to be called in the running process of each cloud game; and coding the application programming interface library to obtain the application programming interface library.

In one possible implementation, the receiving module includes: the device comprises a program determining unit, an interface information determining unit and an application interface determining unit;

the program determining unit is used for determining a game instance which is requested to be operated by the user terminal according to the cloud game operation request;

the interface information determining unit is used for acquiring game configuration information corresponding to a game instance and determining interface information of a system interface on a user terminal requesting to call an operating system according to the game configuration information;

and the application interface determining module is used for determining a target application interface corresponding to the cloud game running request from a pre-configured dynamic link library according to the interface information.

In one possible implementation, the determining module includes: the loading unit is used for creating a corresponding game instance according to the cloud game running request and loading the dynamic link library into the game instance;

in one possible implementation, the determining module includes: an identification obtaining unit and an interface determining unit;

the identification obtaining unit is used for obtaining an interface identification corresponding to the system interface requested to be called according to the interface information;

and the interface determining unit is used for inquiring the application interface in the dynamic link library in the game instance and determining the application interface corresponding to the interface identifier as the target application interface.

In one possible implementation, the calling module includes: the device comprises an interface calling unit and an operation execution unit;

the interface calling unit is used for loading a function corresponding to the target application interface so as to call a system interface corresponding to the operating system through the function;

and the operation execution unit is used for responding to the cloud game running request, respectively executing target operations corresponding to the game instances by using the system interface, and returning the execution results of the target operations to the corresponding user terminals.

In one possible implementation manner, the cloud game running apparatus further includes: the configuration module is used for presetting game configuration information of each game instance; the game configuration information comprises interface information of a system interface which needs to be called by the game instance.

In one possible implementation, the system interface includes at least one of a visual interface, a sound interface, and an interactive interface.

According to one or more embodiments of the present disclosure, there is provided an electronic device including:

one or more processors;

a 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, the one or more programs configured to: and executing the cloud game running method.

According to one or more embodiments of the present disclosure, a computer-readable medium is provided, on which a computer program is stored, which when executed by a processor implements the cloud game execution method.

The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.

Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to 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 disclosed as example forms of implementing the claims.

19页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:游戏数据处理方法、装置、设备及计算机可读存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类