Cloud game running system and method

文档序号:791924 发布日期:2021-04-13 浏览:19次 中文

阅读说明:本技术 云游戏运行系统及方法 (Cloud game running system and method ) 是由 马权 于 2020-12-28 设计创作,主要内容包括:本公开提供一种云游戏运行系统及方法,涉及虚拟技术领域,所述系统包括云游戏管理平台和虚拟机服务器;虚拟机服务器上设置有第一类虚拟机和第二类虚拟机,第一类虚拟机或者第二类虚拟机上设置有指令转换模块;云游戏管理平台将操作指令发送至目标虚拟机;目标虚拟机用于在确定操作指令对应的架构未为目标架构时,将操作指令发送至指令转换模块;指令转换模块用于将操作指令转换为目标架构对应的目标指令,并将目标指令通过目标虚拟机发送至虚拟机服务器处理。本公开的操作指令对应的架构不论是否与虚拟机服务器的架构相同,都可以采用一个虚拟机服务器对目标指令进行处理,减少了虚拟机服务器的数量,从而节省了硬件开销。(The utility model provides a cloud game running system and a method, relating to the technical field of virtualization, wherein the system comprises a cloud game management platform and a virtual machine server; the virtual machine server is provided with a first type of virtual machine and a second type of virtual machine, and the first type of virtual machine or the second type of virtual machine is provided with an instruction conversion module; the cloud game management platform sends the operation instruction to the target virtual machine; the target virtual machine is used for sending the operation instruction to the instruction conversion module when determining that the architecture corresponding to the operation instruction is not the target architecture; the instruction conversion module is used for converting the operation instruction into a target instruction corresponding to the target architecture and sending the target instruction to the virtual machine server through the target virtual machine for processing. The framework corresponding to the operation instruction can adopt one virtual machine server to process the target instruction no matter whether the framework corresponding to the operation instruction is the same as the framework of the virtual machine server or not, so that the number of the virtual machine servers is reduced, and the hardware overhead is saved.)

1. A cloud game running system is characterized by comprising a cloud game management platform and a virtual machine server connected with the cloud game management platform; the virtual machine server is provided with at least one first type of virtual machine and at least one second type of virtual machine which are provided with virtual application programs, and the first type of virtual machine or the second type of virtual machine is provided with an instruction conversion module;

the cloud game management platform is used for receiving an operation instruction sent by the terminal equipment and sending the operation instruction to the target virtual machine;

the target virtual machine is used for sending the operating instruction to the instruction conversion module when determining that the architecture corresponding to the operating instruction is not the target architecture; the target architecture is the architecture of the virtual machine server;

the instruction conversion module is used for converting the operation instruction into a target instruction corresponding to the target architecture and sending the target instruction to the virtual machine server through the target virtual machine;

and the virtual machine server is used for processing the target instruction and sending a processing result to the terminal equipment so that the terminal equipment displays the processing result.

2. The system of claim 1,

and the target virtual machine is further used for determining the operation instruction as a target instruction and sending the target instruction to the virtual machine server when determining that the architecture corresponding to the operation instruction is the target architecture.

3. The system of claim 1, further comprising a graphics resource server, the graphics resource server connected to the virtual machine server;

the target virtual machine is further used for sending the target instruction to the graphics resource server when the target instruction is determined to be a three-dimensional rendering instruction;

the graphic resource server is used for executing the target instruction, generating a target image and sending the target image to the target virtual machine;

the target virtual machine is further configured to send the target image to the terminal device, so that the terminal device displays the target image.

4. The system of claim 1,

the cloud game management platform is also used for receiving a target game starting request sent by the terminal equipment; the target game starting request carries starting information of a target game, a target virtual machine of a corresponding type is determined according to the virtual machine information, and a starting instruction is sent to the target virtual machine;

and the target virtual machine is also used for responding to the starting instruction and starting a target virtual application program corresponding to the target game.

5. The system according to claim 1, wherein the instruction conversion module is disposed in the first type of virtual machine, the architecture of the first type of virtual machine is not the same as the architecture of the virtual machine server, and the architecture of the second type of virtual machine is the same as the architecture of the virtual machine server.

6. The system according to claim 1, wherein the instruction conversion module is disposed in the second type of virtual machine, the architecture of the second type of virtual machine is not the same as the architecture of the virtual machine server, and the architecture of the first type of virtual machine is the same as the architecture of the virtual machine server.

7. A cloud game operating method, the method comprising:

acquiring an operation instruction sent by a cloud game management platform; the operation instruction is an instruction sent to the cloud game management platform by the terminal equipment;

when the framework corresponding to the operation instruction is determined not to be the target framework, the operation instruction is sent to an instruction conversion module, so that the instruction conversion module converts the operation instruction into a target instruction corresponding to the target framework; the target architecture is the architecture of a virtual machine server;

and sending the target instruction to the virtual machine server, so that the virtual machine server processes the target instruction, and sending a processing result to the terminal equipment, so that the terminal equipment displays the processing result.

8. The method of claim 7, further comprising:

and when determining that the architecture corresponding to the operation instruction is the target architecture, determining the operation instruction as the target instruction.

9. The method of claim 7, further comprising:

when the target instruction is determined to be a three-dimensional rendering instruction, sending the target instruction to a graphics resource server, enabling the graphics resource server to execute the target instruction, generating a target image, and sending the target image to the target virtual machine;

receiving the target image;

and sending the target image to the terminal equipment so as to enable the terminal equipment to display the target image.

10. The method of claim 7, further comprising, prior to the obtaining the operating instructions sent by the cloud gaming management platform:

receiving a starting instruction sent by the cloud game management platform; the starting instruction is an instruction sent by the cloud game management platform when the target virtual machine of the corresponding type is determined according to the target game starting request; the target game starting request is information sent to the cloud game management platform by the terminal equipment; the target game starting request carries starting information of a target game;

and responding to the starting instruction, and starting a target virtual application program corresponding to the target game.

Technical Field

The present disclosure relates to the field of virtual technologies, and in particular, to a cloud game operating system and method.

Background

The cloud games comprise hand games and end games. Aiming at the handtrip, a hardware carrier is provided for a physical Host CPU (Central Processing Unit) based on an ARM (advanced RISC machine) architecture, an Android virtual machine is provided by using a virtualization technology, and the handtrip is installed; for the end game, a hardware carrier needs to be provided by a physical Host CPU based on an X86(Intel X86) architecture, a windows or Linux virtual machine is provided by using a virtualization technology, and the end game is installed.

In the related art, as shown in fig. 1, for games under different CPU architectures, two servers need to be set, that is, for a game of an ARM architecture, an ARM server needs to be set, the ARM server provides Android virtual machines through a virtualization technology, and each virtual machine is installed with a corresponding game application; aiming at an end game of an X86 architecture, an X86 server is required to be arranged, windows or Linux virtual machines are provided on an X86 server through a virtualization technology, and a corresponding game application is installed in each virtual machine; and the GPU server at the rear end carries out hardware support of re-graphic rendering, so that the method can support both end games on X86 and hand games on Android.

However, in the above technology, the ARM server and the X86 server need to be set simultaneously to support the ARM application and the X86 application simultaneously, which results in a large hardware overhead.

Disclosure of Invention

The embodiment of the disclosure provides a cloud game running system and a cloud game running method, which can solve the problem of high hardware overhead in the prior art. The technical scheme is as follows:

according to a first aspect of the embodiments of the present disclosure, a cloud game running system is provided, which includes a cloud game management platform and a virtual machine server connected to the cloud game management platform; the virtual machine server is provided with at least one first type of virtual machine and at least one second type of virtual machine which are provided with virtual application programs, and the first type of virtual machine or the second type of virtual machine is provided with an instruction conversion module;

the cloud game management platform is used for receiving an operation instruction sent by the terminal equipment and sending the operation instruction to the target virtual machine;

the target virtual machine is used for sending the operating instruction to the instruction conversion module when determining that the architecture corresponding to the operating instruction is not the target architecture; the target architecture is the architecture of the virtual machine server;

the instruction conversion module is used for converting the operation instruction into a target instruction corresponding to the target architecture and sending the target instruction to the virtual machine server through the target virtual machine;

and the virtual machine server is used for processing the target instruction and sending a processing result to the terminal equipment so that the terminal equipment displays the processing result.

The cloud game running system comprises a cloud game management platform and a virtual machine server, wherein an instruction conversion module, a first type of virtual machine and a second type of virtual machine are arranged on the virtual machine server, when the cloud game management platform receives an operation instruction sent by a terminal device, the operation instruction is sent to a target virtual machine connected with the terminal device, when the target virtual machine determines that a framework corresponding to the operation instruction is not a target framework, the operation instruction is converted into a target instruction corresponding to the target framework through the instruction conversion module, and finally the target instruction is sent to the virtual machine server for processing. Therefore, no matter whether the architecture corresponding to the operation instruction is the same as that of the virtual machine server or not, the target instruction can be processed by adopting one virtual machine server, the number of the virtual machine servers is reduced, and the hardware overhead is saved.

In an embodiment, the target virtual machine is further configured to determine, when it is determined that the architecture corresponding to the operation instruction is the target architecture, the operation instruction as a target instruction, and send the target instruction to the virtual machine server.

In one embodiment, the system further comprises a graphics resource server, wherein the graphics resource server is connected with the virtual machine server;

the target virtual machine is further used for sending the target instruction to the graphics resource server when the target instruction is determined to be a three-dimensional rendering instruction;

the graphic resource server is used for executing the target instruction, generating a target image and sending the target image to the target virtual machine;

the target virtual machine is further configured to send the target image to the terminal device, so that the terminal device displays the target image.

In one embodiment, the cloud game management platform is further configured to receive a target game starting request sent by the terminal device; the target game starting request carries starting information of a target game, a target virtual machine of a corresponding type is determined according to the virtual machine information, and a starting instruction is sent to the target virtual machine;

and the target virtual machine is also used for responding to the starting instruction and starting a target virtual application program corresponding to the target game.

In one embodiment, the instruction conversion module is disposed in the first type of virtual machine, the architecture of the first type of virtual machine is not the same as the architecture of the virtual machine server, and the architecture of the second type of virtual machine is the same as the architecture of the virtual machine server.

In one embodiment, the instruction conversion module is disposed in the second type of virtual machine, the architecture of the second type of virtual machine is not the same as the architecture of the virtual machine server, and the architecture of the first type of virtual machine is the same as the architecture of the virtual machine server.

According to a second aspect of the embodiments of the present disclosure, there is provided a cloud game operating method, the method including:

acquiring an operation instruction sent by a cloud game management platform; the operation instruction is an instruction sent to the cloud game management platform by the terminal equipment;

when the framework corresponding to the operation instruction is determined not to be the target framework, the operation instruction is sent to an instruction conversion module, so that the instruction conversion module converts the operation instruction into a target instruction corresponding to the target framework; the target architecture is the architecture of a virtual machine server;

and sending the target instruction to the virtual machine server, so that the virtual machine server processes the target instruction, and sending a processing result to the terminal equipment, so that the terminal equipment displays the processing result.

The embodiment of the disclosure provides a cloud game running method, wherein a cloud game management platform sends an operation instruction to a target virtual machine connected with a terminal device when receiving the operation instruction sent by the terminal device, and the target virtual machine converts the operation instruction into a target instruction corresponding to a target architecture through an instruction conversion module when determining that the architecture corresponding to the operation instruction is not the target architecture, and finally sends the target instruction to a virtual machine server for processing. Therefore, no matter whether the architecture corresponding to the operation instruction is the same as that of the virtual machine server or not, the target instruction can be processed by adopting one virtual machine server, the number of the virtual machine servers is reduced, and the hardware overhead is saved.

In one embodiment, further comprising:

and when determining that the architecture corresponding to the operation instruction is the target architecture, determining the operation instruction as the target instruction.

In one embodiment, further comprising:

when the target instruction is determined to be a three-dimensional rendering instruction, sending the target instruction to a graphics resource server, enabling the graphics resource server to execute the target instruction, generating a target image, and sending the target image to the target virtual machine;

receiving the target image;

and sending the target image to the terminal equipment so as to enable the terminal equipment to display the target image.

In one embodiment, before the obtaining the operation instruction sent by the cloud game management platform, the method further includes:

receiving a starting instruction sent by the cloud game management platform; the starting instruction is an instruction sent by the cloud game management platform when the target virtual machine of the corresponding type is determined according to the target game starting request; the target game starting request is information sent to the cloud game management platform by the terminal equipment; the target game starting request carries starting information of a target game;

and responding to the starting instruction, and starting a target virtual application program corresponding to the target game.

It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.

Drawings

The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.

Fig. 1 is a schematic structural diagram of a cloud game system in the prior art;

fig. 2 is a schematic structural diagram of a cloud game running system provided in an embodiment of the present disclosure;

fig. 3 is a schematic structural diagram of a cloud game running system provided in an embodiment of the present disclosure;

fig. 4 is a schematic structural diagram of a cloud game running system provided in an embodiment of the present disclosure;

fig. 5 is a schematic structural diagram of a cloud game running system provided in an embodiment of the present disclosure;

fig. 6 is a flowchart of a cloud game running method provided by an embodiment of the present disclosure;

fig. 7 is a flowchart of a cloud game running method according to an embodiment of the present disclosure.

Detailed Description

Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.

The embodiment of the present disclosure provides a cloud game running system, as shown in fig. 2, the system includes a cloud game management platform 201 and a virtual machine server 202 connected to the cloud game management platform 201; the virtual machine server 202 is provided with at least one first type virtual machine 204 and at least one second type virtual machine 205, which are installed with virtual application programs, and the first type virtual machine 204 or the second type virtual machine 205 is provided with an instruction conversion module 203.

The cloud game management platform 201 is configured to receive an operation instruction sent by a terminal device, and send the operation instruction to a target virtual machine.

The target virtual machine is configured to send the operation instruction to the instruction conversion module 203 when it is determined that the architecture corresponding to the operation instruction is not the target architecture; the target architecture is the architecture of the virtual machine server 202.

The instruction conversion module 203 is configured to convert the operation instruction into a target instruction corresponding to the target architecture, and send the target instruction to the virtual machine server 202 through the target virtual machine.

The virtual machine server 202 is configured to process the target instruction, and send a processing result to the terminal device, so that the terminal device displays the processing result.

For example, a user may operate an opening interface on a terminal device for a target game according to a requirement of the user, so that the terminal device generates a corresponding operation instruction, and sends the operation instruction to the cloud game management platform 201, the cloud game management platform 201 sends the received operation instruction to a target virtual machine, the target virtual machine compares a framework corresponding to the operation instruction with a target framework when receiving the operation instruction, and when it is determined that the framework corresponding to the operation instruction is different from the target framework, it is determined that the framework corresponding to the operation instruction is not the target framework, the operation instruction is sent to the instruction conversion module 203, and the instruction conversion module 203 converts the operation instruction into a target instruction corresponding to the target framework; for example, if the architecture corresponding to the operation instruction is an ARM architecture, and the architecture of the virtual machine server 202 is an X86 architecture, the operation instruction is converted into a target instruction of an X86 architecture, and finally the target instruction is sent to the virtual machine server 202 through a target virtual machine, and when receiving the target instruction, the virtual machine server 202 processes the target instruction, so as to improve the processing capability of the virtual machine server 202 on instructions different from its own architecture, for example, if the architecture of the virtual machine server 202 is X86, and if the architecture of the operation instruction is an ARM architecture, the capability of the X86 virtual machine server on processing ARM instructions is improved; and finally, sending the processing result to the terminal equipment through the cloud game management platform 201, and displaying the received processing result by the terminal equipment.

It should be noted that the virtual machine server 202 serves as a Host of each virtual machine to provide all computing resources, such as CPU resources, memory resources, and storage resources; the virtual machine server 202 is also provided with a management unit of virtual machines, and a user of the management unit creates various virtual machines and virtualizes devices and resources on the various virtual machines.

It should be noted that the dotted line in fig. 2 indicates that the instruction conversion module 203 may be connected to the first type virtual machine 204 or the second type virtual machine 205.

It should be noted that the X86 architecture is a set of computer language instructions executed by a microprocessor, and refers to standard numbering abbreviations of an intel general computer column, which also identifies a set of general computer instruction sets; the ARM architecture, known as the Advanced RISC Machine (Advanced RISC Machine), is a 32-bit Reduced Instruction Set (RISC) processor architecture.

It should be noted that the architecture of the virtual machine server 202 and the architecture corresponding to the operation instruction may also be architectures other than the X86 architecture and the ARM architecture, which is not limited in this disclosure.

Further, the target virtual machine is further configured to determine, when it is determined that the architecture corresponding to the operation instruction is the target architecture, that the operation instruction is a target instruction, and send the target instruction to the virtual machine server 202.

For example, when it is determined that the architecture corresponding to the operation instruction is the same as the target architecture, the target virtual machine directly sends the operation instruction as the target instruction to the virtual machine server 202, the virtual machine server 202 processes the target instruction to obtain a processing result, and sends the processing result to the terminal device through the cloud game management platform 201, and the terminal device displays the received processing result. For example, the architecture corresponding to the operation instruction is the X86 architecture, and the target architecture is also the X86 architecture.

Further, as shown in fig. 3, the system further includes a graphics resource server 206, where the graphics resource server 206 is connected to the virtual machine server 202.

The target virtual machine is further configured to send the target instruction to the graphics resource server 206 when it is determined that the target instruction is a three-dimensional rendering instruction.

The graphics resource server 206 is configured to execute the target instruction, generate a target image, and send the target image to the target virtual machine.

The target virtual machine is further configured to send the target image to the terminal device, so that the terminal device displays the target image.

For example, the target game is generally a 3D game, the 3D game heavily depends on rendering of a GPU (Graphics Processing Unit), in order to enable a virtual machine corresponding to the terminal device to use the capability of the GPU, a Graphics resource server 206 is provided in the system, and the Graphics resource server 206 is a GPU server and mainly provides a rendering function, renders a received target instruction, and returns a target image obtained after rendering to the terminal device, thereby reducing the dependence of the terminal device on local GPU resources.

Further, the cloud game management platform 201 is further configured to receive a target game starting request sent by the terminal device; and the target game starting request carries starting information of a target game, a target virtual machine of a corresponding type is determined according to the virtual machine information, and a starting instruction is sent to the target virtual machine.

And the target virtual machine is also used for responding to the starting instruction and starting a target virtual application program corresponding to the target game.

Illustratively, when a user selects a certain game, that is, selects a target game, the terminal device obtains start information of the target game, packages the start information of the target game and identification information of the target game to generate a target game start request, and sends the target game start request to the cloud game management platform 201, upon receiving the target game start request, parses the start information to obtain start information of the target game, where the start information may be version information of a virtual machine supported by the target game or version identification information of a cloud game client, the cloud game management platform 201 determines a corresponding type of target virtual machine according to the virtual machine version information supported by the target game or the version identification information of the cloud game client, and sends a start instruction to the target virtual machine, so that the target virtual machine receives the start instruction, and starts the corresponding target virtual application.

Optionally, as shown in fig. 4, the instruction conversion module 203 is disposed in the first type of virtual machine 204, an architecture of the first type of virtual machine 204 is not the same as an architecture of the virtual machine server 202, and an architecture of the second type of virtual machine 205 is the same as the architecture of the virtual machine server 202.

For example, the architecture of the first type of virtual machine 204 is an android architecture, the architecture of the virtual machine server 202 is an X86 architecture, and the architecture of the second type of virtual machine 205 is an X86 architecture.

Optionally, as shown in fig. 5, the instruction conversion module 203 is disposed in the second type of virtual machine 205, an architecture of the second type of virtual machine 205 is not the same as an architecture of the virtual machine server 202, and an architecture of the first type of virtual machine 204 is the same as an architecture of the virtual machine server 202.

For example, the architecture of the first type of virtual machine 204 is an X86 architecture, the architecture of the virtual machine server 202 is an X86 architecture, and the architecture of the second type of virtual machine 205 is an android architecture.

It should be noted that, no matter the user runs the target game application on the computer or runs the target game application on the terminal such as the mobile phone, the user does not need to pay attention to which virtual machine the target game application belongs to, nor does it need to pay attention to what architecture instruction set the application is based on, and the instruction set of different architectures can be converted through the instruction conversion module 203, so that the operation instruction of the user can be unified, and the purpose of unifying heterogeneous virtual computing resources is achieved.

The embodiment of the disclosure provides a cloud game running system, which includes a cloud game management platform 201 and a virtual machine server 202, wherein an instruction conversion module 203, a first type of virtual machine 204 and a second type of virtual machine 205 are arranged on the virtual machine server 202, the cloud game management platform 201 sends an operation instruction to a target virtual machine connected with a terminal device when receiving the operation instruction sent by the terminal device, and when the target virtual machine determines that a framework corresponding to the operation instruction is not a target framework, the operation instruction is converted into a target instruction corresponding to the target framework through the instruction conversion module 203, and finally the target instruction is sent to the virtual machine server 202 for processing. In this way, no matter whether the architecture corresponding to the operation instruction is the same as that of the virtual machine server 202 or not, one virtual machine server 202 can be used for processing the target instruction, so that the number of the virtual machine servers 202 is reduced, and thus the hardware overhead is saved.

The embodiment of the present disclosure provides a cloud game running method, which is applied to the target virtual machine in the above embodiment, and as shown in fig. 6, the method includes the following steps:

step 601, obtaining an operation instruction sent by the cloud game management platform.

The operation instruction is an instruction sent to the cloud game management platform by the terminal equipment.

Step 602, when it is determined that the architecture corresponding to the operation instruction is not the target architecture, sending the operation instruction to an instruction conversion module, so that the instruction conversion module converts the operation instruction into a target instruction corresponding to the target architecture.

The target architecture is the architecture of a virtual machine server.

Step 603, sending the target instruction to the virtual machine server, so that the virtual machine server processes the target instruction, and sending a processing result to the terminal device, so that the terminal device displays the processing result.

The embodiment of the disclosure provides a cloud game running method, wherein a cloud game management platform sends an operation instruction to a target virtual machine connected with a terminal device when receiving the operation instruction sent by the terminal device, and the target virtual machine converts the operation instruction into a target instruction corresponding to a target architecture through an instruction conversion module when determining that the architecture corresponding to the operation instruction is not the target architecture, and finally sends the target instruction to a virtual machine server for processing. Therefore, no matter whether the architecture corresponding to the operation instruction is the same as that of the virtual machine server or not, the target instruction can be processed by adopting one virtual machine server, the number of the virtual machine servers is reduced, and the hardware overhead is saved.

The embodiment of the present disclosure provides a cloud game running method, which is applied to the target virtual machine in the above embodiment, and as shown in fig. 7, the method includes the following steps:

step 701, receiving a starting instruction sent by the cloud game management platform.

The starting instruction is an instruction sent by the cloud game management platform when a target virtual machine of a corresponding type is determined according to a target game starting request; the target game starting request is information sent to the cloud game management platform by the terminal equipment; the target game starting request carries starting information of the target game.

Illustratively, a user downloads a cloud game client on a terminal device, the cloud game client comprises a version for a computer and a version for a terminal such as a mobile phone, when the cloud game client is downloaded, the user logs in a cloud game management platform by using registered cloud game login information (account password information, fingerprint information, face information and the like) on an interface of the cloud game client, when the login is successful, the user selects a certain game on a related interface, for example, games such as hand games of 'wang x xi' and 'bao xi' night 'and' you 'and' so on, when the user selects a certain game, the user is the selected target game, the terminal device obtains starting information of the target game, packs the starting information of the target game and identification information of the target game, generates a target game starting request and sends the target game starting request to the cloud game management platform, when receiving a target game starting request, the cloud game management platform analyzes to obtain starting information of a target game, wherein the starting information can be virtual machine version information supported by the target game or version identification information of a cloud game client, the cloud game management platform determines a corresponding type of target virtual machine according to the virtual machine version information supported by the target game or the version identification information of the cloud game client, and sends a starting instruction to the target virtual machine so that the target virtual machine receives the starting instruction, and the starting instruction carries identification information of the target game; for example, if the cloud game client is a computer version and the target game is an end game, the architecture of the target virtual machine may be an X86 architecture, and the virtual machine of an X86 architecture may be win7, win10, or Linux distribution; the cloud game client is a terminal version such as a mobile phone, the target game is a hand game, and then the architecture of the target virtual machine is an android architecture, which can be an ARM architecture.

Step 702, responding to the starting instruction, starting a target virtual application program corresponding to the target game.

In an example, when the target virtual machine receives a start instruction, the start instruction is analyzed through internal management software to obtain identification information of the target game, the target game is determined according to the identification information of the target game, a target virtual application program corresponding to the target game is started, the target virtual machine starts the target virtual application program, the start interface is sent to the terminal device through the cloud game management platform, the terminal device displays the start interface, and subsequent operation of a user based on the start interface is facilitated.

The architecture of the target virtual machine is consistent with that of the terminal device, and the present disclosure is not limited to the form of the architecture.

And step 703, obtaining an operation instruction sent by the cloud game management platform.

The operation instruction is an instruction sent to the cloud game management platform by the terminal equipment.

For example, after the terminal device displays the start interface of the target game, the user may operate the start interface according to the own requirement, so that the terminal device generates a corresponding operation instruction and sends the operation instruction to the cloud game management platform, and the cloud game management platform sends the received operation instruction to the target virtual machine, so that the target virtual machine receives the operation instruction.

It should be noted that, according to the difference between the result determined by the architecture corresponding to the operation instruction and the result determined by the target architecture, the following steps are also different, and when the architecture corresponding to the operation instruction is determined to be the target architecture, step 706 and step 707 are executed; and when the architecture corresponding to the operation instruction is determined not to be the target architecture, executing step 704, step 705 and step 707.

Step 704, when it is determined that the architecture corresponding to the operation instruction is not the target architecture, sending the operation instruction to an instruction conversion module, so that the instruction conversion module converts the operation instruction into a target instruction corresponding to the target architecture.

The target architecture is the architecture of a virtual machine server.

For example, when the target virtual machine receives an operation instruction, comparing the architecture corresponding to the operation instruction with the target architecture, and when it is determined that the architecture corresponding to the operation instruction is different from the target architecture, indicating that the architecture corresponding to the operation instruction is not the target architecture, sending the operation instruction to the instruction conversion module, and converting the operation instruction into a target instruction corresponding to the target architecture by the instruction conversion module; for example, if the architecture of the operation command corresponds to ARM architecture and the architecture of the virtual machine server corresponds to X86 architecture, the operation command is converted into the target command of X86 architecture.

Step 705, sending the target instruction to the virtual machine server, so that the virtual machine server processes the target instruction, and sending a processing result to the terminal device, so that the terminal device displays the processing result.

For example, when the instruction conversion module converts the operation instruction into the target instruction, the target instruction is sent to the virtual machine server through the target virtual machine, and when the virtual machine server receives the target instruction, the target instruction is processed, so that the processing capability of the virtual machine server on the instruction different from the own architecture is improved, for example, the architecture of the virtual machine server is X86, and the architecture of the operation instruction is an ARM architecture, so that the capability of the X86 virtual machine server on processing the ARM instruction is improved; and finally, sending the processing result to the terminal equipment through the cloud game management platform, and displaying the received processing result by the terminal equipment.

Step 706, when it is determined that the architecture corresponding to the operation instruction is the target architecture, determining the operation instruction as a target instruction.

For example, when it is determined that the architecture corresponding to the operation instruction is the same as the target architecture, it indicates that the architecture of the terminal device is the same as that of the virtual machine server, at this time, the operation instruction is directly sent to the virtual machine server as the target instruction, the virtual machine server processes the target instruction to obtain a processing result, the processing result is sent to the terminal device through the cloud game management platform, and the terminal device displays the received processing result. For example, the architecture corresponding to the operation instruction is the X86 architecture, and the target architecture is also the X86 architecture.

And 707, when it is determined that the target instruction is a three-dimensional rendering instruction, sending the target instruction to a graphics resource server, so that the graphics resource server executes the target instruction, generates a target image, and sends the target image to the target virtual machine, so that the target virtual machine sends the target image to the terminal device, and the terminal device displays the target image.

For example, no matter the target instruction is an original operation instruction or an instruction obtained by converting the operation instruction, when the target virtual machine determines that the target instruction is a three-dimensional rendering instruction, the target virtual machine sends the three-dimensional rendering instruction to the graphics resource server, the graphics resource server renders data to be processed carried in the three-dimensional rendering instruction, sends a target image obtained after rendering to the target virtual machine, then sends the target image to the terminal device by the target virtual machine, and the terminal device decodes and displays the received target image, so that a user can see a target game picture aiming at the operation instruction.

The embodiment of the disclosure provides a cloud game running method, wherein a cloud game management platform sends an operation instruction to a target virtual machine connected with a terminal device when receiving the operation instruction sent by the terminal device, and the target virtual machine converts the operation instruction into a target instruction corresponding to a target architecture through an instruction conversion module when determining that the architecture corresponding to the operation instruction is not the target architecture, and finally sends the target instruction to a virtual machine server for processing; and when the framework corresponding to the operation instruction is determined to be the target framework, directly determining the operation instruction as the target instruction and sending the target instruction to the virtual machine server for processing. Therefore, no matter whether the architecture corresponding to the operation instruction is the same as that of the virtual machine server or not, the target instruction can be processed by adopting the virtual machine server, so that the unification of cloud game system architectures based on hand games and end games is realized, the number of the virtual machine servers is reduced, and the hardware overhead is saved.

Based on the cloud game operation method described in the embodiment corresponding to fig. 6, an embodiment of the present disclosure further provides a computer-readable storage medium, for example, the non-transitory computer-readable storage medium may be a Read Only Memory (ROM), a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like. The storage medium stores computer instructions for executing the cloud game running method described in the embodiment corresponding to fig. 6, and details are not repeated here.

It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.

Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种数据处理方法及装置

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!

技术分类