[go: up one dir, main page]

CN111870962A - A cloud game data processing method and system - Google Patents

A cloud game data processing method and system Download PDF

Info

Publication number
CN111870962A
CN111870962A CN202010543180.3A CN202010543180A CN111870962A CN 111870962 A CN111870962 A CN 111870962A CN 202010543180 A CN202010543180 A CN 202010543180A CN 111870962 A CN111870962 A CN 111870962A
Authority
CN
China
Prior art keywords
virtual machine
zero terminal
instruction
viewing
zero
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010543180.3A
Other languages
Chinese (zh)
Inventor
龙科
范志刚
卢涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Wanxiang Electronics Technology Co Ltd
Original Assignee
Xian Wanxiang Electronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Wanxiang Electronics Technology Co Ltd filed Critical Xian Wanxiang Electronics Technology Co Ltd
Priority to CN202010543180.3A priority Critical patent/CN111870962A/en
Publication of CN111870962A publication Critical patent/CN111870962A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/85Providing additional services to players
    • A63F13/86Watching games played by other players
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/30Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
    • A63F13/35Details of game servers
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本公开提供一种云游戏数据处理方法及系统,涉及游戏技术领域,能够解决目前的游戏观看方法无法实现云游戏多人观看的问题。具体技术方案为:第一虚拟机接收至少一个第二虚拟机发送的观看请求,观看请求包括与第二虚拟机对应的第二零终端标识,第一虚拟机与第一零终端对应;对观看请求进行解析,得到与第二虚拟机对应的第二零终端标识;发送添加指令给图像处理器,以使图像处理器根据添加指令建立第一虚拟机与每个第二零终端的对应关系,并根据对应关系将第一虚拟机对应的图像发送给第一零终端以及每个第二零终端,添加指令包括每个第二零终端标识。本发明用于进行云游戏的多人观看。

Figure 202010543180

The present disclosure provides a cloud game data processing method and system, which relate to the technical field of games and can solve the problem that the current game viewing method cannot realize multi-player viewing of cloud games. The specific technical scheme is as follows: the first virtual machine receives a viewing request sent by at least one second virtual machine, the viewing request includes a second zero terminal identifier corresponding to the second virtual machine, and the first virtual machine corresponds to the first zero terminal; requesting parsing to obtain a second zero terminal identifier corresponding to the second virtual machine; sending an addition instruction to the image processor, so that the image processor establishes a corresponding relationship between the first virtual machine and each second zero terminal according to the addition instruction, And according to the corresponding relationship, the image corresponding to the first virtual machine is sent to the first zero terminal and each second zero terminal, and the adding instruction includes the identifier of each second zero terminal. The present invention is used for multi-player viewing of cloud games.

Figure 202010543180

Description

一种云游戏数据处理方法及系统A cloud game data processing method and system

技术领域technical field

本公开涉及游戏技术领域,尤其涉及一种云游戏数据处理方法及系统。The present disclosure relates to the technical field of games, and in particular, to a cloud game data processing method and system.

背景技术Background technique

云游戏又可称为游戏点播,是一种以云计算技术为基础的在线游戏技术。云游戏技术使图形处理与数据运算能力相对有限的轻端设备能运行高品质游戏。游戏过程中的多人观看模式,是指用户能够以旁观者的角度观看其他用户的游戏过程,具有观看的自主性,非常方便,能够避免网吧里面围观游戏造成的拥堵。Cloud gaming, also known as game-on-demand, is an online gaming technology based on cloud computing technology. Cloud gaming technology enables light-end devices with relatively limited graphics processing and data computing capabilities to run high-quality games. The multiplayer viewing mode in the game process means that the user can watch the game process of other users from the perspective of a bystander.

目前,在使用本地主机联网的游戏中,在玩家用户许可的前提下,围观用户的本地主机可以通过互联网,获取玩家用户本地主机中的游戏数据,可以实现在围观用户的本地主机中观看玩家用户的游戏过程。但目前的游戏观看方法无法实现云游戏的多人观看。At present, in games that use the local host to connect to the Internet, under the premise of the player user's permission, the onlooker user's local host can obtain the game data in the player user's local host through the Internet, and it is possible to watch the player user in the onlooker user's local host. game process. However, the current game viewing method cannot realize multi-player viewing of cloud games.

发明内容SUMMARY OF THE INVENTION

本公开实施例提供一种云游戏数据处理方法及系统,能够解决目前的游戏观看方法无法实现云游戏多人观看的问题。所述技术方案如下:Embodiments of the present disclosure provide a cloud game data processing method and system, which can solve the problem that the current game viewing method cannot realize multiplayer viewing of cloud games. The technical solution is as follows:

根据本公开实施例的第一方面,提供一种云游戏数据处理方法,该方法包括:According to a first aspect of the embodiments of the present disclosure, a cloud game data processing method is provided, the method comprising:

第一虚拟机接收至少一个第二虚拟机发送的观看请求,所述观看请求包括与所述第二虚拟机对应的第二零终端标识,所述第一虚拟机与第一零终端对应;The first virtual machine receives a viewing request sent by at least one second virtual machine, where the viewing request includes a second zero terminal identifier corresponding to the second virtual machine, and the first virtual machine corresponds to the first zero terminal;

对所述观看请求进行解析,得到与所述第二虚拟机对应的第二零终端标识;Parsing the viewing request to obtain a second zero terminal identifier corresponding to the second virtual machine;

发送添加指令给图像处理器,以使所述图像处理器根据所述添加指令建立所述第一虚拟机与每个第二零终端的对应关系,并根据所述对应关系将所述第一虚拟机对应的图像发送给所述第一零终端以及每个所述第二零终端,所述添加指令包括每个所述第二零终端标识。Send an adding instruction to the image processor, so that the image processor establishes a corresponding relationship between the first virtual machine and each second zero terminal according to the adding instruction, and adds the first virtual machine according to the corresponding relationship. The image corresponding to the machine is sent to the first zero terminal and each of the second zero terminals, and the adding instruction includes an identifier of each of the second zero terminals.

本公开提供的方案,当玩家用户的第一零终端对应的第一虚拟机接收到观看请求时,对观看请求进行解析,得到围观用户的第二零终端标识,并发送添加指令给图像处理器,以便图像处理器根据添加指令建立的第一虚拟机与每个第二零终端的对应关系将第一虚拟机对应的图像发送给第一零终端以及每个第二零终端。多个围观用户可以通过第二零终端看到玩家用户的游戏画面,从而实现云游戏的多人观看,同时,由于围观用户的零终端无法操控第一虚拟机,因此也不会影响玩家用户的游戏体验。In the solution provided by the present disclosure, when the first virtual machine corresponding to the first zero terminal of the player user receives the viewing request, it parses the viewing request, obtains the second zero terminal identifier of the onlooker user, and sends an adding instruction to the image processor , so that the image processor sends the image corresponding to the first virtual machine to the first zero terminal and each second zero terminal according to the corresponding relationship between the first virtual machine and each second zero terminal established by the adding instruction. Multiple onlookers can see the game screen of the player user through the second zero terminal, so as to realize multi-player viewing of cloud games. At the same time, since the zero terminal of the onlooker user cannot control the first virtual machine, it will not affect the player user's game screen. gaming experience.

在一个实施例中,所述方法还包括:接收至少一个第二虚拟机发送的结束观看请求,所述结束观看请求包括与所述第二虚拟机对应的所述第二零终端标识;In one embodiment, the method further includes: receiving a viewing end request sent by at least one second virtual machine, where the viewing ending request includes the second zero terminal identifier corresponding to the second virtual machine;

对所述结束观看请求进行解析,得到与所述第二虚拟机对应的第二零终端标识;Parsing the end viewing request to obtain a second zero terminal identifier corresponding to the second virtual machine;

发送删除指令给所述图像处理器,以使所述图像处理器根据所述删除指令删除所述对应关系中的第二零终端,所述删除指令包括每个所述第二零终端标识。Send a deletion instruction to the image processor, so that the image processor deletes the second zero terminal in the corresponding relationship according to the deletion instruction, and the deletion instruction includes the identifier of each second zero terminal.

在一个实施例中,所述方法还包括:接收所述第一零终端发送的授权指令,并根据所述授权指令,开启观看权限。In one embodiment, the method further includes: receiving an authorization instruction sent by the first zero terminal, and enabling viewing permission according to the authorization instruction.

在一个实施例中,所述方法还包括:接收所述第一零终端发送的操控信息;根据所述操控信息生成绘图指令,并发送给所述图像处理器,以便所述图像处理器根据所述绘图指令生成所述第一虚拟机对应的图像。In one embodiment, the method further includes: receiving manipulation information sent by the first zero terminal; generating a drawing instruction according to the manipulation information, and sending it to the image processor, so that the image processor can The drawing instruction generates an image corresponding to the first virtual machine.

根据本公开实施例的第二方面,提供一种云游戏数据处理方法,该方法包括:According to a second aspect of the embodiments of the present disclosure, a cloud game data processing method is provided, the method comprising:

图像处理器接收第一虚拟机发送的添加指令,所述添加指令为上述添加指令;The image processor receives an addition instruction sent by the first virtual machine, where the addition instruction is the above-mentioned addition instruction;

根据所述添加指令建立所述第一虚拟机与每个第二零终端的对应关系;establishing a corresponding relationship between the first virtual machine and each second zero terminal according to the adding instruction;

根据所述对应关系,将所述第一虚拟机对应的图像发送给第一零终端以及每个所述第二零终端。According to the corresponding relationship, the image corresponding to the first virtual machine is sent to the first zero terminal and each of the second zero terminal.

在一个实施例中,所述方法还包括:接收所述第一虚拟机发送的删除指令,所述删除指令包括每个所述第二零终端标识;In one embodiment, the method further includes: receiving a deletion instruction sent by the first virtual machine, where the deletion instruction includes each of the second zero terminal identifiers;

根据所述删除指令删除所述对应关系中的所述第二零终端。The second null terminal in the corresponding relationship is deleted according to the deletion instruction.

进一步的,所述根据所述对应关系,将所述第一虚拟机对应的图像发送给第一零终端以及每个所述第二零终端,具体为:Further, according to the corresponding relationship, the image corresponding to the first virtual machine is sent to the first zero terminal and each of the second zero terminals, specifically:

接收所述第一虚拟机发送的绘图指令,根据所述绘图指令执行渲染任务,生成所述第一虚拟机对应的图像;receiving a drawing instruction sent by the first virtual machine, performing a rendering task according to the drawing instruction, and generating an image corresponding to the first virtual machine;

对所述图像进行编码,得到编码数据;Encoding the image to obtain encoded data;

将所述编码数据发送给所述第一零终端和每个所述第二零终端。The encoded data is sent to the first null terminal and each of the second null terminals.

根据本公开实施例的第三方面,提供一种云游戏数据处理方法,该方法包括:According to a third aspect of the embodiments of the present disclosure, a cloud game data processing method is provided, the method comprising:

第二虚拟机接收第二零终端发送的观看指令,所述观看指令包括第一虚拟机标识;The second virtual machine receives a viewing instruction sent by the second zero terminal, where the viewing instruction includes the first virtual machine identifier;

对所述观看指令进行解析,得到所述第一虚拟机标识;Parsing the viewing instruction to obtain the first virtual machine identifier;

根据所述第一虚拟机标识,发送观看请求给第一虚拟机。Send a viewing request to the first virtual machine according to the first virtual machine identifier.

在一个实施例中,接收所述第二零终端发送的结束观看指令,所述结束观看指令包括所述第一虚拟机标识。In one embodiment, a viewing ending instruction sent by the second zero terminal is received, where the viewing ending instruction includes the first virtual machine identifier.

根据本公开实施例的第三方面,提供一种云游戏数据处理系统,该系统包括:According to a third aspect of the embodiments of the present disclosure, a cloud game data processing system is provided, and the system includes:

云服务器,多个零终端以及图像处理器,所述云服务器包括至少两个虚拟机,所述虚拟机与所述零终端一一对应;A cloud server, a plurality of zero terminals and an image processor, the cloud server includes at least two virtual machines, and the virtual machines are in one-to-one correspondence with the zero terminals;

其中,第一虚拟机用于执行实施例第一方面所述的方法,第二虚拟机用于执行实施例第三方面所述的方法,图像处理器用于执行实施例第二方面所述的方法。The first virtual machine is used to execute the method described in the first aspect of the embodiment, the second virtual machine is used to execute the method described in the third aspect of the embodiment, and the image processor is used to execute the method described in the second aspect of the embodiment. .

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.

图1是本公开实施例提供的一种云游戏数据处理方法的流程图;1 is a flowchart of a cloud game data processing method provided by an embodiment of the present disclosure;

图2是本公开实施例提供的一种云游戏数据处理方法的流程图;FIG. 2 is a flowchart of a cloud game data processing method provided by an embodiment of the present disclosure;

图3是本公开实施例提供的一种云游戏数据处理方法的流程图;3 is a flowchart of a cloud game data processing method provided by an embodiment of the present disclosure;

图4是本公开实施例提供的一种云游戏数据处理系统的框图;4 is a block diagram of a cloud game data processing system provided by an embodiment of the present disclosure;

图5是本公开实施例提供的一种云游戏数据处理的应用场景示意图;5 is a schematic diagram of an application scenario of cloud game data processing provided by an embodiment of the present disclosure;

图6是本公开实施例提供的一种云游戏数据处理的虚拟机和零终端的对应关系图。FIG. 6 is a corresponding relationship diagram between a virtual machine and a zero terminal for cloud game data processing provided by an embodiment of the present disclosure.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的系统和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this disclosure. Rather, they are merely examples of systems and methods consistent with some aspects of the present disclosure as recited in the appended claims.

本公开实施例提供一种云游戏数据处理方法,如图1所示,该方法包括以下步骤:An embodiment of the present disclosure provides a cloud game data processing method. As shown in FIG. 1 , the method includes the following steps:

101、第一虚拟机接收至少一个第二虚拟机发送的观看请求。101. The first virtual machine receives a viewing request sent by at least one second virtual machine.

其中,虚拟机部署在云服务器中,虚拟机和零终端对应,第一虚拟机对应玩家用户的零终端,第二虚拟机对应围观用户的零终端。The virtual machine is deployed in the cloud server, the virtual machine corresponds to the zero terminal, the first virtual machine corresponds to the zero terminal of the player user, and the second virtual machine corresponds to the zero terminal of the onlooker user.

在实际应用中,在第一虚拟机接收观看请求之前,第一虚拟机开启了对外开放的游戏观看权限。In an actual application, before the first virtual machine receives the viewing request, the first virtual machine enables the game viewing permission open to the outside world.

具体的,玩家用户可以通过第一零终端向第一虚拟机发送某一游戏的启动游戏观看权限的开启指令,第一虚拟机根据开启指令,打开该游戏的对外观看权限,这样围观用户就能够在游戏列表中,看到玩家用户开启了游戏的观看权限,围观用户通过第二零终端,可以点击观看游戏列表中该玩家用户对应的按钮,向第二虚拟机发送观看指令。Specifically, the player user can send a command to activate the game viewing permission of a certain game to the first virtual machine through the first zero terminal, and the first virtual machine opens the external viewing permission of the game according to the opening command, so that the onlooker user can In the game list, seeing that the player user has enabled the viewing permission of the game, the onlooker user can click the button corresponding to the player user in the watch game list through the second zero terminal to send a viewing instruction to the second virtual machine.

第二虚拟机接收到围观用户通过第二零终端发送的观看指令,获取观看指令中第一虚拟机的标识,第二虚拟机根据第一虚拟机标识,找到第一虚拟机并向第一虚拟机发送观看请求,观看请求包括至少一个第二零终端的标识,以便第一虚拟机知道该向哪个围观用户的零终端发送游戏画面。The second virtual machine receives the viewing instruction sent by the onlooker user through the second zero terminal, obtains the identifier of the first virtual machine in the viewing instruction, and the second virtual machine finds the first virtual machine according to the first virtual machine identifier The viewing request includes the identifier of at least one second zero terminal, so that the first virtual machine knows which onlooker user's zero terminal to send the game screen to.

102、第一虚拟机对观看请求进行解析,得到第二虚拟机对应的第二零终端标识,并发送添加指令给图像处理器。102. The first virtual machine parses the viewing request, obtains a second zero terminal identifier corresponding to the second virtual machine, and sends an adding instruction to the image processor.

其中,图像处理器可以为图像处理器(GPU POOL),图像处理器中包括GPU芯片,管理模块和发送模块。The image processor may be an image processor (GPU POOL), and the image processor includes a GPU chip, a management module and a sending module.

在实际应用中,第一虚拟机接收到观看请求,从中解析出围观用户使用的第二零终端的地址,将第二零终端的地址添加到添加指令中,并将添加指令发送给图像处理器的管理模块,以便图像处理器根据添加指令建立第一虚拟机与每个第二零终端的对应关系,并根据对应关系将第一虚拟机对应的图像发送给第一零终端以及每个第二零终端。In practical applications, the first virtual machine receives the viewing request, parses the address of the second zero terminal used by the onlooker user, adds the address of the second zero terminal to the adding instruction, and sends the adding instruction to the image processor The management module, so that the image processor establishes the corresponding relationship between the first virtual machine and each second zero terminal according to the addition instruction, and sends the image corresponding to the first virtual machine to the first zero terminal and each second zero terminal according to the corresponding relationship. Zero terminal.

具体的,图像处理器的管理模块在接收到添加指令并从中解析出第二零终端的地址后,建立第二零终端的地址与第一虚拟机的对应关系。图像处理器的管理模块中的第一虚拟机对应两种零终端的地址,一个是第一虚拟机对应的第一零终端的地址,一个是第二零终端的地址。Specifically, the management module of the image processor establishes a correspondence between the address of the second zero terminal and the first virtual machine after receiving the adding instruction and parsing the address of the second zero terminal therefrom. The first virtual machine in the management module of the image processor corresponds to addresses of two zero terminals, one is the address of the first zero terminal corresponding to the first virtual machine, and the other is the address of the second zero terminal.

其中,第一零终端的地址在用户通过第一零终端登录第一虚拟机时已经建立好的。需要说明的是,在游戏观看中,围观用户可以为多个,因此图像处理器的管理模块的对应关系中,第二零终端可以为多个,其对应关系如图2所示。The address of the first zero terminal has been established when the user logs in to the first virtual machine through the first zero terminal. It should be noted that in game viewing, there may be multiple onlookers, so in the corresponding relationship of the management module of the image processor, there may be multiple second zero terminals, and the corresponding relationship is shown in FIG. 2 .

第一零终端获取玩家用户的操控信息,并将操控信息发送给第一虚拟机,第一虚拟机根据玩家用户的操控信息,生成绘图指令,并将绘图指令发送给图像处理器,有图像处理器根据绘图指令生成对应的图像。The first zero terminal acquires the manipulation information of the player user, and sends the manipulation information to the first virtual machine, and the first virtual machine generates a drawing instruction according to the manipulation information of the player user, and sends the drawing instruction to the image processor, which has image processing. The generator generates the corresponding image according to the drawing instruction.

在实际应用中,操控信息包括第一零终端连接的输入设备生成的信息,其中输入设备包括鼠标、键盘和操控手柄等。In a practical application, the manipulation information includes information generated by an input device connected to the first zero terminal, where the input device includes a mouse, a keyboard, a joystick, and the like.

图像处理器接收到第一虚拟机的绘图指令执行渲染任务,生成绘图指令期望生成的图像,该图像可以为游戏画面,并对图像进行编码,生成编码数据,之后,图像处理器根据事先建立的对应关系,获取第一虚拟机对应的第一零终端和第二零终端的地址,并将至少一个第二零终端的地址和第一零终端的地址发送给图像处理器的发送模块。The image processor receives the drawing instruction of the first virtual machine to perform the rendering task, and generates an image expected to be generated by the drawing instruction, which can be a game screen, encodes the image, and generates encoded data. Corresponding relationship, the addresses of the first zero terminal and the second zero terminal corresponding to the first virtual machine are obtained, and the address of at least one second zero terminal and the address of the first zero terminal are sent to the sending module of the image processor.

图像处理器的发送模块将编码数据发送给第一零终端和第二零终端,第一零终端和第二零终端分别对编码数据进行解码,得到图像,并通过显示器显示给围观用户和玩家用户,若围观用户为多个,则发送模块会将编码数据发送给多个围观用户的零终端,这样玩家用户和围观用户均能够看到游戏画面,可以实现多人共同观看游戏画面。The sending module of the image processor sends the encoded data to the first zero terminal and the second zero terminal, and the first zero terminal and the second zero terminal respectively decode the encoded data to obtain an image, which is displayed to the onlookers and player users through the display , if there are multiple onlookers, the sending module will send the encoded data to the zero terminals of multiple onlookers, so that both player users and onlookers can see the game screen, and multiple people can watch the game screen together.

其中,围观用户使用的零终端只有接受第一虚拟机的编码数据的功能,不能对第一虚拟机进行操控,也就是说,围观用户通过第二零终端只能看到第一虚拟机上运行的游戏的显示画面,但无法对第一虚拟机进行操控,这样不会在实现游戏观看的同时,也不会影响玩家用户对游戏的正常操控。Among them, the zero terminal used by the onlooker user only has the function of accepting the encoded data of the first virtual machine, and cannot control the first virtual machine, that is to say, the onlooker user can only see the running on the first virtual machine through the second zero terminal The display screen of the game is displayed, but the first virtual machine cannot be controlled, so that the game viewing will not be realized, and the normal control of the game by the player and user will not be affected.

103、第一虚拟机接收至少一个第二虚拟机发送的结束观看请求。103. The first virtual machine receives a viewing end request sent by at least one second virtual machine.

其中结束观看指令包括第一虚拟机标识。当围观用户不再需要观看玩家用户的游戏画面时,可以通过第二零终端向第二虚拟机发送结束观看指令,第二虚拟机根据结束观看指令中的第一虚拟机标识,确定玩家用户的第一虚拟机,进而向第一虚拟机发送结束观看请求。The instruction for ending viewing includes a first virtual machine identifier. When the onlooker user no longer needs to watch the game screen of the player user, the second zero terminal can send an end viewing instruction to the second virtual machine, and the second virtual machine determines the player user's game screen according to the first virtual machine identifier in the end viewing instruction The first virtual machine further sends a viewing end request to the first virtual machine.

结束观看请求携带围观用户使用的第二零终端的地址,以便玩家用户的第一虚拟机知道该停止向哪个零终端发送游戏画面。The end viewing request carries the address of the second zero terminal used by the onlooker user, so that the first virtual machine of the player user knows which zero terminal to stop sending the game screen to.

104、第一虚拟机对结束观看请求进行解析,得到每个第二零终端标识并发送删除指令给图像处理器。104. The first virtual machine parses the viewing end request, obtains the identifier of each second zero terminal, and sends a deletion instruction to the image processor.

玩家用户的第一虚拟机接收到结束观看请求,并对结束观看请求进行解析得到围观用户使用的第二零终端的地址,并将第二零终端的地址添加到删除指令中发送给图像处理器,以便图像处理器能够停止将玩家用户的第一虚拟机下发的渲染指令生成的图像的编码数据发送给围观用户的零终端。The first virtual machine of the player user receives the end viewing request, parses the end viewing request to obtain the address of the second zero terminal used by the onlooker user, and adds the address of the second zero terminal to the delete instruction and sends it to the image processor , so that the image processor can stop sending the encoded data of the image generated by the rendering instruction issued by the first virtual machine of the player user to the zero terminal of the onlooker user.

图像处理器的管理模块在接收到删除指令后,从删除指令中解析出第二零终端的地址,图像处理器的管理模块根据第二零终端的地址,从第一虚拟机与零终端的对应关系中,删除第二零终端的地址,这样,第一虚拟机的绘图指令生成的图像的编码数据,就不会再发送给第二零终端,围观用户也就不会在观看的玩家用户的游戏画面,观看游戏结束。After receiving the deletion instruction, the management module of the image processor parses the address of the second zero terminal from the deletion instruction. In the relationship, delete the address of the second zero terminal, so that the encoded data of the image generated by the drawing instruction of the first virtual machine will not be sent to the second zero terminal, and the onlookers will not be watching the player users. Game screen, watch the game over.

本公开提供的方案,当玩家用户的第一零终端对应的第一虚拟机接收到观看请求时,对观看请求进行解析,得到围观用户的第二零终端标识,并发送添加指令给图像处理器,以便图像处理器根据添加指令建立的第一虚拟机与每个第二零终端的对应关系将第一虚拟机对应的图像发送给第一零终端以及每个第二零终端。多个围观用户可以通过第二零终端看到玩家用户的游戏画面,从而实现云游戏的多人观看,同时,由于围观用户的零终端无法操控第一虚拟机,因此也不会影响玩家用户的游戏体验。In the solution provided by the present disclosure, when the first virtual machine corresponding to the first zero terminal of the player user receives the viewing request, it parses the viewing request, obtains the second zero terminal identifier of the onlooker user, and sends an adding instruction to the image processor , so that the image processor sends the image corresponding to the first virtual machine to the first zero terminal and each second zero terminal according to the corresponding relationship between the first virtual machine and each second zero terminal established by the adding instruction. Multiple onlookers can see the game screen of the player user through the second zero terminal, so as to realize multi-player viewing of cloud games. At the same time, since the zero terminal of the onlooker user cannot control the first virtual machine, it will not affect the player user's game screen. gaming experience.

基于上述图1对应的实施例提供的云游戏数据处理方法,本公开另一实施例提供一种云游戏数据处理方法,该方法可以应用于云游戏数据处理系统,该处理系统包括零终端设备,虚拟机和图像处理器。本实施例以图像处理器处理云游戏数据进行说明,并不代表本公开局限于此。如图2所示,本实施例提供的云游戏数据处理方法包括以下步骤:Based on the cloud game data processing method provided by the embodiment corresponding to FIG. 1, another embodiment of the present disclosure provides a cloud game data processing method, which can be applied to a cloud game data processing system, and the processing system includes a zero terminal device, Virtual machines and image processors. This embodiment is described with the image processor processing cloud game data, which does not mean that the present disclosure is limited to this. As shown in FIG. 2 , the cloud game data processing method provided by this embodiment includes the following steps:

201、图像处理器接收第一虚拟机发送的添加指令。201. The image processor receives an adding instruction sent by a first virtual machine.

在实际应用中,第一虚拟机接收到观看请求,从中解析出围观用户使用的第二零终端的地址,将第二零终端的地址添加到添加指令中,并将添加指令发送给图像处理器的管理模块。In practical applications, the first virtual machine receives the viewing request, parses the address of the second zero terminal used by the onlooker user, adds the address of the second zero terminal to the adding instruction, and sends the adding instruction to the image processor management module.

202、图像处理器根据添加指令建立第一虚拟机与每个第二零终端的对应关系。202. The image processor establishes a corresponding relationship between the first virtual machine and each second zero terminal according to the adding instruction.

图像处理器的管理模块在接收到添加指令并从中解析出第二零终端的地址后,建立第二零终端的地址与第一虚拟机的对应关系。图像处理器的管理模块中的第一虚拟机对应两种零终端的地址,一个是第一虚拟机对应的第一零终端的地址,一个是第二零终端的地址。The management module of the image processor establishes a correspondence between the address of the second zero terminal and the first virtual machine after receiving the adding instruction and parsing the address of the second zero terminal therefrom. The first virtual machine in the management module of the image processor corresponds to addresses of two zero terminals, one is the address of the first zero terminal corresponding to the first virtual machine, and the other is the address of the second zero terminal.

其中,第一零终端的地址在用户通过第一零终端登录第一虚拟机时已经建立好的。需要说明的是,在游戏观看中,围观用户可以为多个,因此图像处理器的管理模块的对应关系中,第二零终端可以为多个。The address of the first zero terminal has been established when the user logs in to the first virtual machine through the first zero terminal. It should be noted that, in game viewing, there may be multiple onlookers, so in the corresponding relationship between the management modules of the image processor, there may be multiple second zero terminals.

203、图像处理器根据对应关系,将第一虚拟机对应的图像发送给第一零终端以及每个第二零终端。203. The image processor sends the image corresponding to the first virtual machine to the first zero terminal and each second zero terminal according to the corresponding relationship.

第一零终端获取玩家用户的操控信息,并将操控信息发送给第一虚拟机,第一虚拟机根据玩家用户的操控信息,生成绘图指令,并将绘图指令发送给图像处理器,有图像处理器根据绘图指令生成对应的图像。The first zero terminal acquires the manipulation information of the player user, and sends the manipulation information to the first virtual machine, and the first virtual machine generates a drawing instruction according to the manipulation information of the player user, and sends the drawing instruction to the image processor, which has image processing. The generator generates the corresponding image according to the drawing instruction.

通常情况下,操控信息包括第一零终端连接的输入设备生成的信息,其中输入设备包括鼠标、键盘和操控手柄等。Generally, the manipulation information includes information generated by an input device connected to the first zero terminal, where the input device includes a mouse, a keyboard, a joystick, and the like.

图像处理器接收到第一虚拟机的绘图指令执行渲染任务,生成绘图指令期望生成的图像,该图像可以为游戏画面,并对图像进行编码,生成编码数据,之后,图像处理器根据事先建立的对应关系,获取第一虚拟机对应的第一零终端和第二零终端的地址,并将至少一个第二零终端的地址和第一零终端的地址发送给图像处理器的发送模块。The image processor receives the drawing instruction of the first virtual machine to perform the rendering task, and generates an image expected to be generated by the drawing instruction, which can be a game screen, encodes the image, and generates encoded data. Corresponding relationship, the addresses of the first zero terminal and the second zero terminal corresponding to the first virtual machine are obtained, and the address of at least one second zero terminal and the address of the first zero terminal are sent to the sending module of the image processor.

图像处理器的发送模块将编码数据发送给第一零终端和第二零终端,第一零终端和第二零终端分别对编码数据进行解码,得到图像,并通过显示器显示给围观用户和玩家用户,若围观用户为多个,则发送模块会将编码数据发送给多个围观用户的零终端,这样玩家用户和围观用户均能够看到游戏画面,可以实现多人共同观看游戏画面。The sending module of the image processor sends the encoded data to the first zero terminal and the second zero terminal, and the first zero terminal and the second zero terminal respectively decode the encoded data to obtain an image, which is displayed to the onlookers and player users through the display , if there are multiple onlookers, the sending module will send the encoded data to the zero terminals of multiple onlookers, so that both player users and onlookers can see the game screen, and multiple people can watch the game screen together.

其中,围观用户使用的零终端只有接受第一虚拟机的编码数据的功能,不能对第一虚拟机进行操控,也就是说,围观用户通过第二零终端只能看到第一虚拟机上运行的游戏的显示画面,但无法对第一虚拟机进行操控,这样不会在实现游戏观看的同时,也不会影响玩家用户对游戏的正常操控。Among them, the zero terminal used by the onlooker user only has the function of accepting the encoded data of the first virtual machine, and cannot control the first virtual machine, that is to say, the onlooker user can only see the running on the first virtual machine through the second zero terminal The display screen of the game is displayed, but the first virtual machine cannot be controlled, so that the game viewing will not be realized, and the normal control of the game by the player and user will not be affected.

204、图像处理器接收第一虚拟机发送的删除指令。204. The image processor receives the deletion instruction sent by the first virtual machine.

其中,删除指令中包括每个第二零终端标识,当玩家用户的第一虚拟机接收到结束观看请求,并对结束观看请求进行解析得到围观用户使用的第二零终端的地址,并将第二零终端的地址添加到删除指令中发送给图像处理器,以便图像处理器能够停止将玩家用户的第一虚拟机下发的渲染指令生成的图像的编码数据发送给围观用户的零终端。Wherein, the deletion instruction includes the identifier of each second zero terminal, when the first virtual machine of the player user receives the end viewing request, and parses the end viewing request to obtain the address of the second zero terminal used by the onlooker user, and assigns the first virtual machine to the viewing end request. The address of the second terminal is added to the delete instruction and sent to the image processor, so that the image processor can stop sending the encoded data of the image generated by the rendering instruction issued by the first virtual machine of the player user to the zero terminal of the onlooker user.

205、图像处理器根据删除指令删除对应关系中的第二零终端。205. The image processor deletes the second zero terminal in the corresponding relationship according to the deletion instruction.

图像处理器的管理模块在接收到删除指令后,从删除指令中解析出第二零终端的地址,图像处理器的管理模块根据第二零终端的地址,从第一虚拟机与零终端的对应关系中,删除第二零终端的地址,这样,第一虚拟机的绘图指令生成的图像的编码数据,就不会再发送给第二零终端,围观用户也就不会在观看的玩家用户的游戏画面,观看游戏结束。After receiving the deletion instruction, the management module of the image processor parses the address of the second zero terminal from the deletion instruction. In the relationship, delete the address of the second zero terminal, so that the encoded data of the image generated by the drawing instruction of the first virtual machine will not be sent to the second zero terminal, and the onlookers will not be watching the player users. Game screen, watch the game over.

本公开实施例还提供一种云游戏数据处理方法,该方法可以应用于云游戏数据处理系统,该处理系统包括零终端设备,虚拟机和图像处理器。本实施例以第二虚拟机处理云游戏数据进行说明,并不代表本公开局限于此。如图3所示,本实施例提供的云游戏数据处理方法包括以下步骤:Embodiments of the present disclosure also provide a cloud game data processing method, which can be applied to a cloud game data processing system, where the processing system includes a zero terminal device, a virtual machine, and an image processor. This embodiment is described with the second virtual machine processing cloud game data, which does not mean that the present disclosure is limited to this. As shown in FIG. 3 , the cloud game data processing method provided by this embodiment includes the following steps:

301、第二虚拟机接收第二零终端发送的观看指令,并对观看指令进行解析,得到第一虚拟机标识。301. The second virtual machine receives the viewing instruction sent by the second zero terminal, and parses the viewing instruction to obtain the first virtual machine identifier.

玩家用户可以通过第一零终端向第一虚拟机发送某一游戏的启动游戏观看权限的开启指令,第一虚拟机根据开启指令,打开该游戏的对外观看权限,这样围观用户就能够在游戏列表中,看到玩家用户开启了游戏的观看权限,围观用户通过第二零终端,可以点击观看游戏列表中该玩家用户对应的按钮,向第二虚拟机发送观看指令。The player user can send a command to start the game viewing permission of a game to the first virtual machine through the first zero terminal, and the first virtual machine opens the external viewing permission of the game according to the opening command, so that the onlookers can list the game. , see that the player user has enabled the viewing permission of the game, the onlooker user can click the button corresponding to the player user in the watch game list through the second zero terminal, and send a viewing instruction to the second virtual machine.

第二虚拟机接收到围观用户通过第二零终端发送的观看指令,获取观看指令中第一虚拟机的标识The second virtual machine receives the viewing instruction sent by the onlooker user through the second zero terminal, and obtains the identifier of the first virtual machine in the viewing instruction

302、第二虚拟机根据第一虚拟机标识,发送观看请求给第一虚拟机。302. The second virtual machine sends a viewing request to the first virtual machine according to the first virtual machine identifier.

第二虚拟机根据第一虚拟机标识,找到第一虚拟机并向第一虚拟机发送观看请求,观看请求包括至少一个第二零终端的标识,以便第一虚拟机知道该向哪个围观用户的零终端发送游戏画面。According to the identifier of the first virtual machine, the second virtual machine finds the first virtual machine and sends a viewing request to the first virtual machine, where the viewing request includes the identifier of at least one second zero terminal, so that the first virtual machine knows which onlooker user to send to. Zero terminal sends game screen.

303、第二虚拟机接收第二零终端发送的结束观看指令,并对结束观看指令进行解析,得到第一虚拟机标识。303. The second virtual machine receives the viewing end instruction sent by the second zero terminal, and parses the viewing ending instruction to obtain the first virtual machine identifier.

304、第二虚拟机根据第一虚拟机标识,发送结束观看请求给第一虚拟机。304. The second virtual machine sends a viewing end request to the first virtual machine according to the first virtual machine identifier.

当围观用户不再需要观看玩家用户的游戏画面时,可以通过第二零终端向第二虚拟机发送结束观看指令,第二虚拟机根据结束观看指令中的第一虚拟机标识,确定玩家用户的第一虚拟机,进而向第一虚拟机发送结束观看请求。When the onlooker user no longer needs to watch the game screen of the player user, the second zero terminal can send an end viewing instruction to the second virtual machine, and the second virtual machine determines the player user's game screen according to the first virtual machine identifier in the end viewing instruction The first virtual machine further sends a viewing end request to the first virtual machine.

基于上述实施例中所描述的云游戏数据处理方法,下述为本公开系统实施例,可以用于执行本公开方法实施例。Based on the cloud game data processing method described in the foregoing embodiments, the following system embodiments of the present disclosure can be used to execute the method embodiments of the present disclosure.

本公开实施例提供一种云游戏数据处理系统,如图4所示,该云游戏数据处理系统40包括:云服务器401、多个零终端402和图像处理器403;An embodiment of the present disclosure provides a cloud game data processing system. As shown in FIG. 4 , the cloud game data processing system 40 includes: a cloud server 401, multiple zero terminals 402, and an image processor 403;

其中,云服务器包括至少一个虚拟机4011,虚拟机4011与零终端402一一对应;图像处理器包括GPU芯片4031、管理模块4032和发送模块4033。参考图4所示,以云游戏数据处理系统包括四个零终端,分别为零终端X、零终端A、零终端B和零终端C,云服务器包括四个虚拟机,分别为VMX、VMA、VMB和VMC其中,零终端A对应的虚拟机为VMA,零终端B对应的虚拟机为VMB,零终端C对应的虚拟机为VMC,零终端X对应的虚拟机为VMX。The cloud server includes at least one virtual machine 4011 , and the virtual machine 4011 corresponds to the zero terminal 402 one-to-one; the image processor includes a GPU chip 4031 , a management module 4032 and a sending module 4033 . Referring to Figure 4, the cloud game data processing system includes four zero terminals, namely zero terminal X, zero terminal A, zero terminal B and zero terminal C, and the cloud server includes four virtual machines, namely VMX, VMA, Among VMB and VMC, the virtual machine corresponding to zero terminal A is VMA, the virtual machine corresponding to zero terminal B is VMB, the virtual machine corresponding to zero terminal C is VMC, and the virtual machine corresponding to zero terminal X is VMX.

下面,以零终端A为围观终端,零终端X为玩家终端,对应的虚拟机为VM X,图像处理器为GPU POOL为例,本实施例所提供的云游戏数据处理流程如下:In the following, taking zero terminal A as the onlooker terminal, zero terminal X as the player terminal, the corresponding virtual machine as VM X, and the image processor as GPU POOL as an example, the cloud game data processing flow provided by this embodiment is as follows:

VM A接收零终端A发送的启动游戏观看指令,启动游戏观看指令携带玩家用户使用的零终端对应的VM X的VM标识。The VM A receives the start game viewing instruction sent by the zero terminal A, and the initiating game viewing instruction carries the VM identifier of the VM X corresponding to the zero terminal used by the player user.

其中,VM X需要事先开启某一游戏的游戏观看的权限,具体的,玩家用户通过零终端X,向VM X发送某一游戏的启动游戏观看权限的开启指令,VM X打开该游戏的游戏观看的权限,这样,围观用户就能够在观看游戏列表中,看到该玩家用户开启了该游戏的观看权限。围观用户可以通过所使用的零终端,点击观看游戏列表中该玩家用户对应的按钮,向零终端对应的VM发送游戏观看指令。Among them, VM X needs to enable the game viewing permission of a certain game in advance. Specifically, the player user sends a command to activate the game viewing permission of a game to VM X through the zero terminal X, and VM X enables the game viewing of the game. In this way, the onlooker user can see that the player user has enabled the viewing permission of the game in the watch game list. The onlooker user can click the button corresponding to the player user in the watch game list through the zero terminal used, and send a game viewing instruction to the VM corresponding to the zero terminal.

可以理解的,启动游戏观看指令携带玩家用户使用的零终端对应的VM X的VM标识。这样,VM A才能知道确定玩家用户的VM,进而向该VM X发送游戏观看请求。It can be understood that the start game viewing instruction carries the VM identifier of the VM X corresponding to the zero terminal used by the player user. In this way, VM A can know the VM of the determined player user, and then send a game viewing request to the VM X.

VM A接收并解析启动游戏观看指令,获取玩家用户的VM标识,向VM标识对应的VMX发送游戏观看请求,游戏观看请求携带零终端A的地址。VM A receives and parses the instruction to start the game viewing, obtains the VM ID of the player user, and sends a game viewing request to the VMX corresponding to the VM ID, and the game viewing request carries the address of Zero Terminal A.

其中,VM A接收到围观用户通过零终端A发送的启动游戏观看指令,该指令中获取玩家用户使用的零终端X对应的VM X的VM标识;接下来,VM A根据VM标识找到VM X,并向VMX发送游戏观看请求,游戏观看请求中携带围观用户使用的零终端A的地址,以便VM X知道该向哪个零终端发送游戏画面。Among them, VM A receives the start game viewing instruction sent by the onlooker user through the zero terminal A, and the instruction obtains the VM identifier of the VM X corresponding to the zero terminal X used by the player user; next, VM A finds the VM X according to the VM identifier, A game viewing request is sent to the VMX, and the game viewing request carries the address of the zero terminal A used by the onlooker user, so that the VMX knows which zero terminal to send the game screen to.

游戏玩家的VM X从接收到的游戏观看请求中解析出零终端A的地址,向GPU POOL的管理模块发送添加指令,添加指令中携带零终端A的地址。The game player's VM X parses the address of the zero terminal A from the received game viewing request, and sends an add instruction to the management module of the GPU POOL, and the add instruction carries the address of the zero terminal A.

其中,游戏玩家使用的零终端X对应的VM X接收到游戏观看请求,并从中解析出围观用户使用的零终端A的地址;将零终端A的地址添加到添加指令中,并将添加指令发送给GPU POOL的管理模块,以便GPU POOL能够将VM X下发的渲染指令生成的图像的编码数据发送给零终端A。Among them, the VM X corresponding to the zero terminal X used by the game player receives the game viewing request, and parses the address of the zero terminal A used by the onlooker user from it; adds the address of the zero terminal A to the adding instruction, and sends the adding instruction To the management module of the GPU POOL, so that the GPU POOL can send the encoded data of the image generated by the rendering instruction issued by the VM X to the zero terminal A.

GPU POOL的管理模块在接收到添加指令并从中解析出零终端A的地址之后,建立零终端A的地址与VM X的对应关系。After the management module of the GPU POOL receives the add instruction and parses out the address of the zero terminal A, it establishes the corresponding relationship between the address of the zero terminal A and the VM X.

可以理解的,管理模块中VM X对应两个零终端的地址,一个是VM X对应的零终端X的地址,一个是零终端A的地址。其中,零终端X的地址在用户通过零终端X登录VM X时已经建立好的。It can be understood that VM X in the management module corresponds to the addresses of two zero terminals, one is the address of zero terminal X corresponding to VM X, and the other is the address of zero terminal A. The address of Zero Terminal X has been established when the user logs in to VM X through Zero Terminal X.

需要说明的是,管理模块建立的对应关系中,除零终端X的地址,其他均为围观玩家的零终端的地址。It should be noted that, in the corresponding relationship established by the management module, except for the address of the zero terminal X, the others are the addresses of the zero terminal of the onlookers.

可以理解的,如果有多个围观玩家,那么,管理模块可以建立VM X与多个零终端的地址的对应关系。比如,围观玩家A使用零终端A,围观玩家B使用零终端B,围观玩家C使用零终端C,那么,如图6所示,可以建立VM X与零终端A的地址、零终端B的地址以及零终端C的地址的对应关系其中,VM X与零终端X的对应关系是零终端X的地址在用户通过零终端X登录VM X时已经建立好的,对应关系中的零终端地址,除零终端X的地址,其他均为围观玩家的零终端的地址。It can be understood that, if there are multiple onlookers, the management module can establish a correspondence between the addresses of VM X and multiple zero terminals. For example, onlooker player A uses zero terminal A, onlooker player B uses zero terminal B, and onlooker player C uses zero terminal C, then, as shown in Figure 6, the addresses of VM X and zero terminal A and the address of zero terminal B can be established and the corresponding relationship between the addresses of zero terminal C. Among them, the corresponding relationship between VM X and zero terminal X is that the address of zero terminal X has been established when the user logs in to VM X through zero terminal X. The zero terminal address in the corresponding relationship is divided by The address of the zero terminal X, the others are the addresses of the zero terminal of the onlookers.

零终端X获取玩家用户的操控事件,将操控事件发送给VM X;VM X获取用户的操控事件,根据操控事件生成绘图指令,并将绘图指令发送到GPU POOL。Zero terminal X obtains the manipulation events of the player user and sends the manipulation events to VM X; VM X obtains the manipulation events of the user, generates drawing commands according to the manipulation events, and sends the drawing commands to the GPU POOL.

其中,玩家用户通过零终端X,操控VM X上运行的游戏;零终端X获取用户的操控事件并将操控事件发送给对应的VM X;VM X根据接收到的操控事件,生成绘图指令,并将绘图指令发送给GPU POOL,由GPU POOL根据绘图指令生成对应的图像。Among them, the player user controls the game running on the VM X through the zero terminal X; the zero terminal X obtains the user's manipulation events and sends the manipulation events to the corresponding VM X; the VM X generates drawing instructions according to the received manipulation events, and Send the drawing instruction to the GPU POOL, and the GPU POOL will generate the corresponding image according to the drawing instruction.

通常情况下,零终端连接的输入设备包括键盘鼠标等,当然,还可以连接操控手柄;操控事件包括键鼠事件等其他输入设备生成的信息。Usually, the input devices connected to the zero terminal include a keyboard and mouse, and of course, a joystick can also be connected; the manipulation events include information generated by other input devices such as keyboard and mouse events.

GPU POOL根据接收到的绘图指令执行渲染任务,生成图像;对图像进行编码,得到编码数据。The GPU POOL performs rendering tasks according to the received drawing instructions to generate images; encodes the images to obtain encoded data.

其中,GPU POOL根据VM X下发的绘图指令执行渲染任务,生成绘图指令期望生成的图像,该图像可以为游戏画面,以及对图像进行编码,生成编码数据。The GPU POOL executes the rendering task according to the drawing instruction issued by the VM X, generates an image expected to be generated by the drawing instruction, and the image can be a game screen, and encodes the image to generate encoded data.

GPU POOL的管理模块根据事先建立的VM X与零终端的地址的对应关系,获取零终端A的地址和零终端X的地址,并将零终端A的地址和零终端X的地址发送给发送模块。The management module of GPU POOL obtains the address of zero terminal A and zero terminal X according to the corresponding relationship between VM X and zero terminal address established in advance, and sends the address of zero terminal A and zero terminal X to the sending module .

其中,GPU POOL在生成编码数据之后,管理模块根据建立的VM X与零终端的地址的对应关系,获取VM X对应的零终端A的地址和零终端X地址,并将零终端A的地址和零终端X地址发送给发送模块。Among them, after the GPU POOL generates the encoded data, the management module obtains the address of the zero terminal A and the zero terminal X address corresponding to the VM X according to the established correspondence between the VM X and the address of the zero terminal, and combines the address of the zero terminal A with the address of the zero terminal. The zero terminal X address is sent to the sending module.

如果有多个围观用户,根据如图6所示的对应关系,则管理模块将VM X对应的零终端A的地址、零终端C的地址、零终端B的地址和零终端X地址均发送给发送模块。If there are multiple onlookers, according to the correspondence shown in Figure 6, the management module sends the address of zero terminal A, zero terminal C, zero terminal B and zero terminal X address corresponding to VM X to send module.

发送模块将编码数据发送给零终端A和零终端X;零终端A和零终端X分别对编码数据进行解码,得到图像,并通过显示器显示给围观用户和玩家用户。The sending module sends the encoded data to zero terminal A and zero terminal X; zero terminal A and zero terminal X respectively decode the encoded data to obtain an image, which is displayed to onlookers and player users through the display.

其中,发送模块将编码数据发送给玩家用户的零终端X和围观用户的零终端A;零终端在接收到编码数据之后,经解码得到图像,并显示在显示器上。若围观用户为多个,则发送模块会将编码数据发送给多个围观用户的零终端,这样,玩家用户和围观用户均能够看到游戏画面,可以实现多人共同观看游戏画面。The sending module sends the encoded data to the zero terminal X of the player user and the zero terminal A of the onlooker user; after receiving the encoded data, the zero terminal obtains an image after decoding and displays it on the display. If there are multiple onlookers, the sending module will send the encoded data to the zero terminals of multiple onlookers, so that both player users and onlookers can see the game screen, and multiple people can watch the game screen together.

需要说明的是,围观用户使用的零终端A只有接收VM X的编码数据的功能,不能到VMX进行操控,也就是说,围观用户通过零终端只能看到VM X上运行的游戏的显示界面,但无法对VM X进行操控,这样不会影响玩家用户对游戏的正常操控。It should be noted that the zero terminal A used by the onlooker user only has the function of receiving the encoded data of VM X, and cannot be controlled by the VMX. That is to say, the onlooker user can only see the display interface of the game running on the VM X through the zero terminal. , but cannot control the VM X, which will not affect the normal control of the game by the player.

VM A接收零终端A发送的结束游戏观看指令,结束游戏观看指令携带玩家用户使用的零终端对应的VM X的VM标识。The VM A receives the end game viewing instruction sent by the zero terminal A, and the end game viewing instruction carries the VM identifier of the VM X corresponding to the zero terminal used by the player user.

在本步骤中,当围观用户A不再需要观看玩家用户的游戏画面时,可以通过零终端A,向VM A发送结束游戏观看指令。可以理解的,游戏观看指令携带玩家用户使用的零终端对应的VM X的VM标识。这样,VM A才能知道确定玩家用户的VM,进而向该VM X发送结束游戏观看请求。In this step, when the onlooker user A no longer needs to watch the game screen of the player user, the zero terminal A may send an end game viewing instruction to the VM A. It can be understood that the game viewing instruction carries the VM identifier of the VM X corresponding to the zero terminal used by the player user. In this way, VM A can know the VM of the determined player user, and then send an end game viewing request to the VM X.

VM A接收并解析结束游戏观看指令,获取玩家用户的VM标识,向VM标识对应的VMX发送结束游戏观看请求,结束游戏观看请求携带零终端A的地址。VM A receives and parses the end game viewing instruction, obtains the VM identifier of the player user, and sends an end game viewing request to the VMX corresponding to the VM identifier, and the end game viewing request carries the address of zero terminal A.

其中,VM A接收到围观用户通过零终端A发送的结束游戏观看指令,该指令中获取玩家用户使用的零终端X对应的VM X的VM标识;接下来,VM A根据VM标识找到VM X,并向VMX发送结束游戏观看请求,结束游戏观看请求中携带围观用户使用的零终端A的地址,以便VM X知道该停止向哪个零终端发送游戏画面。Among them, VM A receives the end game viewing instruction sent by the onlooker user through Zero Terminal A, and the instruction obtains the VM identifier of VM X corresponding to Zero Terminal X used by the player user; next, VM A finds VM X according to the VM identifier, Send an end game viewing request to the VMX, and the end game viewing request carries the address of the zero terminal A used by the onlooker user, so that the VMX knows which zero terminal to stop sending the game screen to.

游戏玩家的VM X从接收到的结束游戏观看请求中解析出零终端A的地址,向GPUPOOL的管理模块发送删除指令,删除指令携带零终端A的地址。The game player's VM X parses the address of the zero terminal A from the received end game viewing request, and sends a deletion instruction to the management module of the GPUPOOL, and the deletion instruction carries the address of the zero terminal A.

其中,游戏玩家使用的零终端X对应的VM X接收到结束游戏观看请求,并从中解析出围观用户使用的零终端A的地址;将零终端A的地址添加到删除指令中并发送给GPU POOL的管理模块,以便GPU POOL能够停止将VMX下发的渲染指令生成的图像的编码数据发送给零终端A。Among them, the VM X corresponding to the zero terminal X used by the game player receives the end game viewing request, and parses the address of the zero terminal A used by the onlookers from it; adds the address of the zero terminal A to the delete instruction and sends it to the GPU POOL The management module, so that the GPU POOL can stop sending the encoded data of the image generated by the rendering instruction issued by the VMX to the zero terminal A.

GPU POOL的管理模块在接收到删除指令之后,从删除指令中解析出零终端A的地址;管理模块根据零终端A的地址,从VMX与零终端的地址的对应关系中,删除零终端A的地址。After receiving the delete command, the management module of GPU POOL parses the address of zero terminal A from the delete command; the management module deletes the address of zero terminal A from the corresponding relationship between VMX and zero terminal addresses according to the address of zero terminal A. address.

这样,VMX的绘图指令生成的图像的编码数据,就不会再发送给零终端A,这样,围观用户A也就不会观看到玩家用户的游戏画面,观看游戏结束。In this way, the encoded data of the image generated by the VMX drawing instruction will not be sent to the zero terminal A, so that the onlooker user A will not watch the game screen of the player user and watch the game end.

基于上述实施例中所描述的一种云游戏数据处理方法,本公开实施例还提供一种计算机可读存储介质,例如,非临时性计算机可读存储介质可以是只读存储器(英文:ReadOnly Memory,ROM)、随机存取存储器(英文:Random Access Memory,RAM)、CD-ROM、磁带、软盘和光数据存储装置等。该存储介质上存储有计算机指令,用于执行上述实施例中所描述的云游戏数据处理方法,此处不再赘述。Based on the cloud game data processing method described in the foregoing embodiments, the embodiments of the present disclosure further provide a computer-readable storage medium, for example, the non-transitory computer-readable storage medium may be a read-only memory (English: ReadOnly Memory). , ROM), random access memory (English: Random Access Memory, RAM), CD-ROM, magnetic tape, floppy disk and optical data storage devices, etc. The storage medium stores computer instructions for executing the cloud game data processing method described in the above embodiments, which will not be repeated here.

本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or techniques in the technical field not disclosed by the present disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A data processing method of a cloud game is characterized by comprising the following steps:
a first virtual machine receives a viewing request sent by at least one second virtual machine, wherein the viewing request comprises a second zero terminal identifier corresponding to the second virtual machine, and the first virtual machine corresponds to a first zero terminal;
analyzing the viewing request to obtain a second zero terminal identification corresponding to the second virtual machine;
and sending an adding instruction to an image processor so that the image processor establishes a corresponding relation between the first virtual machine and each second zero terminal according to the adding instruction, and sends an image corresponding to the first virtual machine to the first zero terminal and each second zero terminal according to the corresponding relation, wherein the adding instruction comprises an identifier of each second zero terminal.
2. The method of claim 1, further comprising:
receiving an end watching request sent by at least one second virtual machine, wherein the end watching request comprises a second zero terminal identification corresponding to the second virtual machine;
analyzing the viewing ending request to obtain a second zero terminal identification corresponding to the second virtual machine;
and sending a deleting instruction to the image processor so that the image processor deletes the second zero terminals in the corresponding relationship according to the deleting instruction, wherein the deleting instruction comprises the identification of each second zero terminal.
3. The method of claim 1, further comprising:
and receiving an authorization instruction sent by the first zero terminal, and opening the watching permission according to the authorization instruction.
4. The method of claim 1, further comprising:
receiving control information sent by the first zero terminal;
and generating a drawing instruction according to the control information, and sending the drawing instruction to the image processor, so that the image processor can generate an image corresponding to the first virtual machine according to the drawing instruction.
5. A data processing method of a cloud game is characterized by comprising the following steps:
the image processor receives an adding instruction sent by the first virtual machine, wherein the adding instruction is the adding instruction of any one of claims 1-4;
establishing a corresponding relation between the first virtual machine and each second zero terminal according to the adding instruction;
and sending the image corresponding to the first virtual machine to a first zero terminal and each second zero terminal according to the corresponding relation.
6. The method of claim 5, further comprising:
receiving a deleting instruction sent by the first virtual machine, wherein the deleting instruction comprises each second zero terminal identifier;
and deleting the second zero terminal in the corresponding relation according to the deleting instruction.
7. The method according to claim 5, wherein the sending the image corresponding to the first virtual machine to the first zero terminal and each of the second zero terminals according to the correspondence relationship specifically includes:
receiving a drawing instruction sent by the first virtual machine, executing a rendering task according to the drawing instruction, and generating an image corresponding to the first virtual machine;
encoding the image to obtain encoded data;
and transmitting the coded data to the first zero terminal and each second zero terminal.
8. A data processing method of a cloud game is characterized by comprising the following steps:
the second virtual machine receives a viewing instruction sent by a second zero terminal, wherein the viewing instruction comprises a first virtual machine identifier;
analyzing the viewing instruction to obtain the first virtual machine identifier;
and sending a viewing request to the first virtual machine according to the first virtual machine identifier.
9. The method of claim 8, further comprising:
receiving a viewing ending instruction sent by the second zero terminal, wherein the viewing ending instruction comprises the first virtual machine identifier;
analyzing the ending instruction to obtain the first virtual machine identifier;
and sending a viewing ending request to the first virtual machine according to the first virtual machine identifier.
10. A cloud gaming data processing system, the system comprising: the cloud server comprises at least two virtual machines, and the virtual machines correspond to the zero terminals one to one;
wherein the first virtual machine is adapted to perform the method of any of claims 1 to 4, the second virtual machine is adapted to perform the method of any of claims 8 and 9, and the image processor is adapted to perform the method of any of claims 5 to 7.
CN202010543180.3A 2020-06-15 2020-06-15 A cloud game data processing method and system Pending CN111870962A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010543180.3A CN111870962A (en) 2020-06-15 2020-06-15 A cloud game data processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010543180.3A CN111870962A (en) 2020-06-15 2020-06-15 A cloud game data processing method and system

Publications (1)

Publication Number Publication Date
CN111870962A true CN111870962A (en) 2020-11-03

Family

ID=73157543

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010543180.3A Pending CN111870962A (en) 2020-06-15 2020-06-15 A cloud game data processing method and system

Country Status (1)

Country Link
CN (1) CN111870962A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113577757A (en) * 2021-08-02 2021-11-02 西安万像电子科技有限公司 Game data processing method, electronic device and storage medium
CN113923253A (en) * 2021-10-12 2022-01-11 西安万像电子科技有限公司 A virtual machine image transmission method, electronic device and storage medium
CN115033321A (en) * 2022-05-23 2022-09-09 阿里巴巴(中国)有限公司 Interaction method, electronic device and storage medium
WO2024234822A1 (en) * 2023-05-18 2024-11-21 腾讯科技(深圳)有限公司 Cloud game interaction method and apparatus, computer device, and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110263333A1 (en) * 2010-04-21 2011-10-27 Konami Digital Entertainment Co., Ltd. Game system, game system control method, and recording medium
CN102932327A (en) * 2012-07-17 2013-02-13 上海金图信息科技有限公司 Method and system for communicating zero-terminal equipment and desktop virtual machine
CN107281756A (en) * 2017-05-05 2017-10-24 武汉斗鱼网络科技有限公司 A kind of method and apparatus for game of forming a team
CN107847802A (en) * 2015-08-10 2018-03-27 索尼互动娱乐股份有限公司 Information processor and watching request sending method
CN108043033A (en) * 2018-02-01 2018-05-18 网易(杭州)网络有限公司 Watch method and storage medium in games system
CN108491174A (en) * 2018-02-01 2018-09-04 西安万像电子科技有限公司 Picture transmission method, apparatus and system
CN110585734A (en) * 2019-09-08 2019-12-20 北京智明星通科技股份有限公司 Mobile game fighting method, device and server
US20200009458A1 (en) * 2017-03-31 2020-01-09 Bandai Namco Entertainment Inc. Computer system, viewer terminal, method for controlling live watching, and program

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110263333A1 (en) * 2010-04-21 2011-10-27 Konami Digital Entertainment Co., Ltd. Game system, game system control method, and recording medium
CN102932327A (en) * 2012-07-17 2013-02-13 上海金图信息科技有限公司 Method and system for communicating zero-terminal equipment and desktop virtual machine
CN107847802A (en) * 2015-08-10 2018-03-27 索尼互动娱乐股份有限公司 Information processor and watching request sending method
US20200009458A1 (en) * 2017-03-31 2020-01-09 Bandai Namco Entertainment Inc. Computer system, viewer terminal, method for controlling live watching, and program
CN107281756A (en) * 2017-05-05 2017-10-24 武汉斗鱼网络科技有限公司 A kind of method and apparatus for game of forming a team
CN108043033A (en) * 2018-02-01 2018-05-18 网易(杭州)网络有限公司 Watch method and storage medium in games system
CN108491174A (en) * 2018-02-01 2018-09-04 西安万像电子科技有限公司 Picture transmission method, apparatus and system
CN110585734A (en) * 2019-09-08 2019-12-20 北京智明星通科技股份有限公司 Mobile game fighting method, device and server

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113577757A (en) * 2021-08-02 2021-11-02 西安万像电子科技有限公司 Game data processing method, electronic device and storage medium
CN113577757B (en) * 2021-08-02 2024-05-28 西安万像电子科技有限公司 Game data processing method, electronic equipment and storage medium
CN113923253A (en) * 2021-10-12 2022-01-11 西安万像电子科技有限公司 A virtual machine image transmission method, electronic device and storage medium
CN115033321A (en) * 2022-05-23 2022-09-09 阿里巴巴(中国)有限公司 Interaction method, electronic device and storage medium
WO2024234822A1 (en) * 2023-05-18 2024-11-21 腾讯科技(深圳)有限公司 Cloud game interaction method and apparatus, computer device, and storage medium

Similar Documents

Publication Publication Date Title
JP7066784B2 (en) Game state related to cloud gaming Save, transfer and resume
CN111870962A (en) A cloud game data processing method and system
US20230032554A1 (en) Data processing method and apparatus, and storage medium
US9965253B2 (en) Methods and systems for generation and execution of miniapp of computer application served by cloud computing system
US10623500B2 (en) Remote desktop sharing and collaboration via image scanning
CN108525299B (en) System and method for enhancing computer applications for remote services
CN109091861B (en) Interactive control method in game, electronic device and storage medium
EP2750032B1 (en) Methods and systems for generation and execution of miniapp of computer application served by cloud computing system
WO2022048677A1 (en) Vr application design method and system based on cloud mobile phone
CN111991813B (en) Method and device for logging in game, electronic equipment and storage medium
KR20140036220A (en) Web-browser based desktop and application remoting solution
US11372658B2 (en) Cross-device mulit-monitor setup for remote desktops via image scanning
US11148051B2 (en) Virtual reality environment multiplatform adaptive system
WO2015081907A1 (en) Role object management method, device, and server
CN113766504B (en) Communication connection method, device, server, terminal equipment, system and medium
KR20220159968A (en) Conference handling method and system using avatars
WO2024037110A9 (en) Data processing method and apparatus, device, and medium
CN112799801A (en) Method, device, equipment and medium for drawing simulation mouse pointer
CN111494955B (en) Character interaction method, device, server and medium based on game
CN111672132B (en) Game control method, game control device, server, and storage medium
CN112221127A (en) Multi-point control method and device for cloud games
CN116363286A (en) Game processing method, game processing device, storage medium and program product
CN113577759B (en) Game data processing method, electronic equipment and storage medium
CN112295233A (en) Control right transfer method and system
CN112516591A (en) Information interaction method and device in game, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20201103

RJ01 Rejection of invention patent application after publication