Game data processing method, system and equipment and computer medium
Through differentiated virtual disk technology, the game resource data of cloud game servers is processed, and the problem of low data recovery efficiency of cloud game servers is solved, achieving fast and efficient data recovery and stability of multi-user access.
Patent Information
- Application Number
- CN202310506284.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-06
- Publication Date
- 2024-11-08
AI Technical Summary
In the field of cloud gaming technology, the game resource data of cloud gaming servers is easily modified after being shared and used by multiple people, resulting in the missing or unavailable game functions. The existing recovery methods are inefficient and the frequent operation of de-mounting failed.
Using differential virtual disk technology, the changes and non-change operation instructions of game resource data are processed separately, and the virtual disk and differential virtual disk are created to store data, ensuring that the data recovery does not affect other users' access, and reducing the unhook and hanging of virtual disks Load operation.
It greatly shortens the recovery time of game resource data, improves recovery efficiency, avoids failures in data recovery process, and improves user experience.
Smart Images

Figure CN118903833A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of cloud gaming technology, and in particular to a game data processing method, system, device, and computer medium. Background Art
[0002] In the related technology, in the field of cloud gaming technology, user terminals can interact with cloud gaming servers for gaming data. During the process of users using the cloud gaming servers, the gaming resource data in the cloud gaming servers are easily modified manually. Since the cloud gaming servers can be shared by multiple people, when other users enter the game next time, the gaming resource data may have been deleted or modified, resulting in the loss of some gaming functions or even the unavailability of the game.
[0003] In order to restore the changes made by the user to the game resource data in the game disk mounted on the cloud game server after the user exits the game, that is, to restore the game disk to its initial state, the cloud hard disk mode can be used. In the cloud hard disk mode, the game resource data of the cloud game server takes effect after being changed by the user and is no longer applicable to other users. Therefore, before other users access the game resource data through the cloud game server, the cloud game server needs to unmount the current game disk whose game resource data has been changed, and then remount a new game disk containing the original game resource data that has not been changed, resulting in a long recovery time for the game resource data, and frequent unmounting and mounting of the hard disk will also result in some restoration failures, and the efficiency of game resource data recovery is low. Summary of the invention
[0004] The present application provides a game data processing method, system, device and computer medium to shorten the recovery time of game resource data of a target game and improve the efficiency of game resource data recovery.
[0005] In a first aspect, an embodiment of the present application provides a game data processing method, which is applied to a cloud game server, including: obtaining an operation instruction of a first terminal for a target game; when the instruction type of the operation instruction is an instruction to change the first game resource data of the target game, using a first difference virtual disk to process the operation instruction; when the instruction type is an instruction not to change the first game resource data, using the first virtual disk to process the operation instruction; wherein the first virtual disk is a virtual disk determined by the cloud game server based on the first game resource data after the first game resource data is obtained, the first difference virtual disk is created by the cloud game server based on the first virtual disk, the first virtual disk is used to store the first game resource data, the first difference virtual disk is used to store the change operation data of the first terminal on the first game resource data, and the first game resource data includes relevant data for displaying the game screen of the target game.
[0006] In a second aspect, an embodiment of the present application provides a game data management system, including: a game management server, used to obtain first game resource data of a target game, and send the first game resource data to a cloud game server, the first game resource data including relevant data for displaying a game screen of the target game; a cloud game server, used to obtain an operation instruction of a first terminal for the target game; when the instruction type of the operation instruction is an instruction to change the first game resource data, the operation instruction is processed using a first difference virtual disk; when the instruction type is an instruction not to change the first game resource data, the operation instruction is processed using the first virtual disk; the cloud game server is also used to: determine the corresponding first virtual disk based on the first game resource data, and create a first difference virtual disk corresponding to the first virtual disk, the first virtual disk being used to store the first game resource data, and the first difference virtual disk being used to store the change operation data of the first terminal on the first game resource data.
[0007] In a third aspect, an embodiment of the present application provides a game data processing device, including: a first acquisition unit, used to acquire an operation instruction of a first terminal for a target game; a processing unit, used to use a first difference virtual disk to process the operation instruction when the instruction type of the operation instruction is an instruction to change the first game resource data of the target game; when the instruction type is an instruction not to change the first game resource data, use the first virtual disk to process the operation instruction; wherein the first virtual disk is a virtual disk determined by the cloud game server based on the first game resource data after the cloud game server acquires the first game resource data, the first difference virtual disk is created by the cloud game server based on the first virtual disk, the first virtual disk is used to store the first game resource data, the first difference virtual disk is used to store the change operation data of the first terminal on the first game resource data, and the first game resource data includes relevant data for displaying the game screen of the target game.
[0008] In a fourth aspect, an embodiment of the application provides an electronic device, the electronic device comprising a processor and a memory, wherein a computer program is stored in the memory, and the processor executes the aforementioned methods by calling the computer program stored in the memory.
[0009] In a fifth aspect, an embodiment of the application provides a computer-readable storage medium, which stores a computer program, and the computer program is suitable for loading by a processor to execute the aforementioned methods.
[0010] In the solution provided by the present application, the cloud game server can obtain the operation instruction of the first terminal for the target game; when the instruction type of the operation instruction is an instruction to change the first game resource data of the target game, the operation instruction is processed using the first difference virtual disk; when the instruction type is an instruction not to change the first game resource data, the operation instruction is processed using the first virtual disk; wherein the first virtual disk is a virtual disk determined by the cloud game server based on the first game resource data after the first game resource data is obtained, the first difference virtual disk is created by the cloud game server based on the first virtual disk, the first virtual disk is used to store the first game resource data, the first difference virtual disk is used to store the change operation data of the first terminal on the first game resource data, the first game resource data includes a solution for displaying relevant data of the game screen of the target game, after the first game resource data of the target data is obtained, the first virtual disk corresponding to the first game resource data is determined locally, and the first virtual difference disk for storing the change operation data of the first terminal on the first game resource data is created, the change operation of the first terminal on the first game resource data will not affect the first game resource data, and other terminals can still access the original, unchanged first game resource data when accessing the first game resource data through the cloud game server. When the first game resource data in the cloud game server is accessed by multiple terminals, the cloud game server does not need to repeatedly unmount and remount the virtual disk containing the first game resource data, which greatly shortens the recovery time of the first game resource data and improves the efficiency of game data recovery. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0012] Figure 1a This is a schematic diagram of the structure of a cloud gaming service system involved in an embodiment of the present application;
[0013] Figure 1b A scenario diagram of another cloud gaming service system provided in an embodiment of the present application;
[0014] Figure 1c A schematic diagram of a target game login page provided in an embodiment of the present application;
[0015] Figure 1d A schematic diagram of the architecture of a game data management system provided in an embodiment of the present application;
[0016] Figure 1eA schematic diagram of the architecture of a game data management system provided in an embodiment of the present application;
[0017] Figure 1f A scenario diagram of another game data management system provided in an embodiment of the present application;
[0018] Figure 2a A flowchart of a method for processing game data provided by an embodiment of the present application;
[0019] Figure 2b A scenario diagram of a game data management system provided in an embodiment of the present application;
[0020] Figure 3 A flowchart of another method for processing game data provided by an embodiment of the present application;
[0021] Figure 4 A flowchart of another method for processing game data provided by an embodiment of the present application;
[0022] Figure 5 A flowchart of another method for processing game data provided by an embodiment of the present application;
[0023] Figure 6 A schematic block diagram of a game data processing device provided in an embodiment of the present application;
[0024] Figure 7 A schematic block diagram of a game data processing device provided in an embodiment of the present application;
[0025] Figure 8 A schematic block diagram of a game data processing device provided in an embodiment of the present application;
[0026] Fig. 9 It is a schematic block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0028] It should be understood that in the embodiment of the present invention, "B corresponding to A" means that B is associated with A. In one implementation, B can be determined based on A. However, it should also be understood that determining B based on A does not mean determining B based only on A, and B can also be determined based on A and / or other information.
[0029] In the description of the present application, unless otherwise specified, “plurality” means two or more than two.
[0030] In addition, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.
[0031] The solution of this application can be applied to various scenarios such as cloud gaming technology and data distribution technology.
[0032] The embodiments of the present application provide a method, system, device and computer medium for processing game data. Specifically, each game data processing method of the embodiments of the present application can be executed by a computer device, wherein the computer device can be a terminal or a server. The terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart TV, a smart speaker, a wearable smart device, a smart car terminal and other devices, and the terminal can also include a client, which can be a video client, a browser client or an instant messaging client. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms.
[0033] For example, when the method is run on a server, it can be a cloud game. Cloud gaming, also known as gaming on demand, is an online gaming technology based on cloud computing technology. Cloud gaming technology enables thin clients with relatively limited graphics processing and data computing capabilities to run high-quality games. In a cloud gaming scenario, the game is not run on the player's game terminal, but on a cloud server, and the cloud server renders the game scene into a video and audio stream, which is transmitted to the player's game terminal over the network. The player's game terminal does not need to have powerful graphics computing and data processing capabilities, but only needs to have basic streaming media playback capabilities and the ability to obtain player input commands and send them to the cloud server.
[0034] First, some nouns or terms that appear in the description of the embodiments of the present application are explained as follows:
[0035] VHD stands for Virtual Hard Disk, and its Chinese name is virtual hard disk. VHD should actually be called VHD technology or VHD function, which is a technology that can virtualize a VHD file into a hard disk. A VHD file can be virtualized into a hard disk, in which operations can be performed like in a real hard disk: reading, writing, creating partitions, and formatting. With the increase of enterprise workloads in virtual environments and the improvement of performance requirements, the virtual hard disk (VHD) format needs to adapt to these changes. VHDX is a new version of the VHD format, which is designed to handle current and future workloads. Compared with the old VHD format, VHDX has a larger storage capacity. It also provides data corruption protection during power failures and optimizes the structural alignment of dynamic disks and differential disks to prevent performance degradation on new large-sector physical disks.
[0036] P2P (Peer-to-peer network), that is, peer-to-peer computer network, is a distributed application architecture that distributes tasks and workloads among peers. It is a networking or network form formed by the peer computing model at the application layer. Participants in the network share some of their hardware resources (processing power, storage capacity, network connection capacity, printers, etc.). These shared resources provide services and content through the network and can be directly accessed by other peer nodes (Peer) without going through an intermediate entity. Participants in this network are both providers (Server) of resources, services and content, and acquirers (Client) of resources, services and content.
[0037] COS (Cloud Object Storage) is a distributed storage service that stores massive files. Users can store and view data at any time through the network. COS enables all users to use a highly scalable, low-cost, reliable and secure data storage service.
[0038] WebRTC (Web Real-Time Communication) is an API (Application Programming Interface) that supports web browsers for real-time voice or video conversations. WebRTC implements web-based video conferencing, with the goal of achieving real-time communication capabilities through simple JavaScript provided by the browser.
[0039] SDK, Software Development Kit, software development kit, is generally a collection of development tools for building application software for a specific software package, software framework, hardware platform, operating system, etc. Software development tools broadly refer to a collection of related documents, examples and tools that assist in the development of a certain type of software.
[0040] Mounting is the process by which the operating system makes computer files and directories on a storage device (such as a hard disk, CD-ROM, or shared resource) accessible to users through the computer's file system.
[0041] Cloud Object Storage (COS) is a distributed storage service for storing massive files, with the advantages of high scalability, low cost, reliability and security.
[0042] The trunking communication system is a mobile communication system used for group dispatching and commanding communication, and is mainly used in the field of professional mobile communications. The available channels of the system can be shared by all users of the system, and it has the function of automatic channel selection. It is a multi-purpose and high-efficiency wireless dispatching communication system that shares resources, shares costs, and uses channel equipment and services.
[0043] BT (BitTorrent) is a file distribution protocol that identifies content through URL (Uniform Resource Locator) and integrates seamlessly with the Internet. Its advantage is that the downloaders of a file are constantly uploading data to each other while downloading, so that the file source (which can be a server source or a personal source, generally referring to the first seeder or the first publisher of the seed) can support a large number of downloaders downloading at the same time with a very limited increase in load. Therefore, there is also a saying in P2P transmission methods such as BT that "the more people download, the faster the download speed".
[0044] Cloud Block Storage (CBS) is a highly available, highly reliable, low-cost, customizable block storage device that can be used as an independent scalable hard disk for cloud servers, providing efficient and reliable storage devices for cloud server instances (such as cloud game servers). Cloud disks provide persistent storage at the data block level and are usually used as primary storage devices for data that requires frequent and fine-grained updates (such as file systems, databases, etc.). They are highly available, reliable, and high-performance.
[0045] A distributed system is a software system built on a network. Because of the characteristics of software, a distributed system has a high degree of cohesion and transparency. Therefore, the difference between a network and a distributed system lies more in high-level software (especially the operating system) rather than hardware.
[0046] Through research, the inventors found that in the field of cloud gaming technology, cloud hard drives usually run some large-scale games, and the game capacity is mostly tens of GB or even hundreds of GB. These games have high requirements on the performance of cloud hard drives, and the IO and throughput of cloud hard drives will affect the reading and running of game content, which is prone to lag, and the use of high-performance cloud hard drives will also increase the overall cost.
[0047] In the related technology, in the field of cloud gaming technology, user terminals can interact with cloud gaming servers for gaming data. When different user terminals interact with the cloud gaming server, the cloud gaming server needs to unmount the mounted cloud hard disk and remount a new cloud hard disk. The recovery time of gaming resource data is long, the efficiency of gaming data recovery is low, and due to frequent unmounting and mounting operations, some restoration failures of the cloud hard disk may occur.
[0048] Moreover, when a cloud game needs to be updated, the cloud game server needs to be idle or actively isolated, and the update operation can only be performed when the cloud game server is not in use, which has great limitations.
[0049] The present application provides a solution to the aforementioned technical problem, which is described in detail below.
[0050] Figure 1a This is a schematic diagram of the architecture of a cloud gaming service system provided in one embodiment of the present application. The cloud gaming service system may specifically include: a first terminal 10, a scheduling management server 20, and a cloud gaming server cluster 30. The cloud gaming server cluster 30 includes multiple cloud gaming servers 31. Among them:
[0051] The first terminal 10 is used to display the game screen of the target game or the first game resource data of the target game through a client or a browser, and respond to the user's operation instruction, wherein the first game resource data includes relevant data for displaying the game screen of the target game, and specifically may include a game folder, a game configuration file, etc. The first game resource data may also include response data made according to the user's operation on the game screen, such as image data, sound data, etc.
[0052] The first terminal 10 can download and install the application of the target game, and the first terminal 10 can be used to display a graphical user interface and interact with the user through the graphical user interface. Specifically, the first terminal 10 can display the graphical user interface to the user in a variety of ways, for example, it can be rendered and displayed on the display screen of the terminal, or the graphical user interface can be presented through holographic projection. For example, the first terminal 10 may include a touch screen and a processor, the touch screen is used to present the graphical user interface and receive the operation instructions generated by the user acting on the graphical user interface, the graphical user interface includes the game screen of the target game, and the processor is used to run the target game, generate a graphical user interface, respond to the operation instructions, and control the display of the graphical user interface on the touch screen.
[0053] The scheduling management server 20 is used to manage the cloud game server cluster 30 and allocate a target cloud game server that provides game services of the target game to the first terminal 10, wherein the target cloud game server is any one of the multiple cloud game servers 31.
[0054] Specifically, the scheduling management server 20 can allocate a target cloud game server that provides game services of the target game to the first terminal 10 through its own scheduling module.
[0055] In some embodiments, the calling management server 20 may determine, based on information obtained from the game management server, a cloud gaming server in the cloud gaming server cluster 30 that is deployed with the first game resource data of the target game.
[0056] The target cloud game server is deployed with the first game resource data of the target game, and provides the game service for the target game to the user. When the target cloud game server provides the game service for the target game to the user, the game can be run in the corresponding directory.
[0057] In some embodiments, the target cloud game server sends corresponding data in the first game resource data in the first virtual disk to the first terminal 10 in response to the screen display instruction for the target game sent by the first terminal 10.
[0058] In some embodiments, at least some of the aforementioned multiple cloud gaming servers include the aforementioned first game resource data.
[0059] In some embodiments, the cloud gaming server cluster 30 may also include a cloud gaming server that does not contain the first game resource data but contains game resource data different from the target game.
[0060] The plurality of cloud game servers 31 included in the cloud game server cluster 30 can obtain various data, for example, game resource data of various games, in a peer-to-peer network manner. Figure 1b As shown, the above system may also include a game manufacturer server 40.
[0061] In some embodiments, the user logs in to the cloud gaming platform through the first terminal 10 and selects a target game (such as Figure 1c After the game 1 in the game is downloaded, the first terminal 10 sends an access request to the game manufacturer server 40, wherein the access request includes the game information of the target game, and the game information includes an identifier for uniquely identifying the target game. After the game manufacturer server 40 obtains the access request, it sends an allocation request to the scheduling management server 20 to request the allocation of the machine corresponding to the access request, that is, the target cloud game server. The scheduling management server 20 determines the machine status of each cloud game server 31 according to the heartbeat information uploaded by each cloud game server 31 in the cloud game server cluster 30 managed by it. Among them, the machine status is used to indicate whether the cloud game server 31 is idle and the machine performance, and the machine performance may include the processing capacity of the machine, the remaining storage space, etc. The scheduling management server 20 can use the cloud game server with the first game resource data of the target game deployed, which is in an idle state and has the highest machine performance as the target cloud game server, and feed back the machine information of the target cloud game server to the game manufacturer server 40, and the game manufacturer server 40 sends the machine information of the target cloud game server to the first terminal 10. After receiving the machine information of the target cloud game server, the first terminal 10 connects to the target cloud game server based on the machine information.
[0062] In some embodiments, the machine information of the aforementioned target cloud gaming server may include a device identifier, a network address, a port number, etc. The first terminal 10 establishes a communication connection (such as a direct connection channel) with the target cloud gaming server based on the device information. The target cloud gaming server may call a web instant messaging interface (such as WebRTC) to send the first game resource data of the target game to the first terminal 10. The first terminal 10 may display the first game resource data or the game screen of the target game through a client (such as a browser). The user may operate the first game resource data or the game screen of the target game on the first terminal 10, for example, change the first game resource data or enter the next level in the operation game screen.
[0063] After the target cloud game server is connected to the first terminal 10, it provides the game service of the target game to the user.
[0064] After the target cloud gaming server establishes a connection with the first terminal 10, the user's operations on the first terminal 10 can be transmitted to the target cloud gaming server through the session. The target cloud gaming server can transmit the game screen of the target game to the cloud gaming SDK of the first terminal 10 through cloud encoding streaming, and the cloud gaming SDK displays it to the user through decoding.
[0065] In some embodiments, if there are no idle cloud game servers in the cloud game server cluster 30, a queue can be placed and then allocated when there are idle cloud game servers.
[0066] In the present application, the cloud game server 31 can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The first terminal 10 can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, a car-mounted smart terminal, etc., but is not limited to this. The first terminal 10, the scheduling management server 20, and the cloud game server cluster 30 can be directly or indirectly connected by wired or wireless communication, and this application does not limit this.
[0067] Furthermore, an embodiment of the present application also provides a game data management system, the system comprising: a game management server and a cloud game server, wherein:
[0068] The game management server is used to obtain first game resource data of the target game and send the first game resource data to the cloud game server, where the first game resource data includes relevant data for displaying a game screen of the target game;
[0069] A cloud game server is used to obtain operation instructions for a target game from a first terminal; when the instruction type of the operation instruction is an instruction to change first game resource data, the operation instruction is processed using a first difference virtual disk; when the instruction type is an instruction not to change the first game resource data, the operation instruction is processed using the first virtual disk; the cloud game server is also used to: determine the corresponding first virtual disk based on the first game resource data, and create a first difference virtual disk corresponding to the first virtual disk, the first virtual disk is used to store the first game resource data, and the first difference virtual disk is used to store the change operation data of the first terminal on the first game resource data.
[0070] In some embodiments, the aforementioned first terminal is used to display the game screen of the target game or the first game resource data of the target game through a client or a browser, and respond to the user's operation instructions, wherein the first game resource data includes relevant data for displaying the game screen of the target game, which may specifically include a game folder, a game configuration file, etc. The first game resource data may also include response data made according to the user's operation on the game screen, such as image data, sound data, etc.
[0071] In some optional embodiments, the system further includes a cache server, which is used to: after downloading the first game resource data from the game management server, distribute the first game resource data to the cloud game server. The cache server is also used to: clear the data of the historical game version in the first game resource data, and use the first game resource data containing the latest game version as the final data sent to the cloud game server.
[0072] In some embodiments, the cloud game server in the aforementioned game data management system may be one of the cloud game servers in a cloud game server cluster. Specifically, Figure 1d The following is a schematic diagram of the architecture of a game data management system provided in one embodiment of the present application. The game data management system includes: a game management server 50 and a cloud game server cluster 30, wherein:
[0073] The game management server 50 is used to obtain the first game resource data of the target game, and send the first game resource data to the cloud game server cluster 30. The first game resource data includes relevant data for displaying the game screen of the target game; the first game resource data may specifically include a game folder, a game configuration file, etc. The first game resource data may also include response data made according to the user's operation on the game screen, such as image data, sound data, etc.
[0074] The cloud game server cluster 30 includes multiple cloud game servers, each cloud game server is used to obtain first game resource data, determine the corresponding first virtual disk based on the first game resource data, and create a first difference virtual disk corresponding to the first virtual disk, the first virtual disk is used to store the first game resource data, and the first difference virtual disk is used to store the change operation data of the first terminal on the first game resource data.
[0075] The difference virtual disks mentioned in this application refer to virtual hard disks, which are used to store and manage changes made to another virtual hard disk or its parent virtual hard disk. It is only used to store, manage and restore changes or modifications applied to virtual hard disks in a virtual environment.
[0076] The cloud game server is also used to: obtain operation instructions for the target game from the first terminal; when the instruction type of the operation instruction is an instruction to change the first game resource data of the target game, use the first difference virtual disk to process the operation instruction; when the instruction type is an instruction not to change the first game resource data, use the first virtual disk to process the operation instruction.
[0077] In some embodiments, the cloud game server cluster 30 also includes a cache server 32 , which is used to distribute the first game resource data to multiple cloud game servers 31 after downloading the first game resource data from the game management server 50 .
[0078] The multiple cloud game servers 31 included in the cloud game server cluster 30 can obtain various data, such as game resource data of various games, in a peer-to-peer network manner.
[0079] Among them, the cache server 32 is also used to: clear the data of historical game versions in the first game resource data, and use the first game resource data containing the latest game version as the final data sent to multiple cloud game servers 31.
[0080] In some embodiments, further Figure 1e As shown, the game data management system further includes an object storage server 60. In this case,
[0081] The game management server 50 is used to obtain the first game resource data of the target game and upload the first game resource data to the object storage server 60. The first game resource data includes relevant data for displaying the game screen of the target game; the first game resource data may specifically include a game folder, a game configuration file, etc. The first game resource data may also include response data made according to the user's operation on the game screen, such as image data, sound data, etc.
[0082] The object storage server 60 is used to send the first game resource data to the cloud game server cluster 30;
[0083] In some embodiments, multiple cloud game servers 31 obtain the first game resource data in a peer-to-peer network manner, wherein the first game resource data is a BT file.
[0084] In some other optional embodiments, such as Figure 1f As shown, the aforementioned game management server 50 and object storage server 60 may also belong to the aforementioned cloud game service system, or the aforementioned first terminal 10, scheduling management server 20, and game manufacturer server 40 may belong to the aforementioned game data management system. Specifically, see Figure 1f In this case:
[0085] The first terminal 10 is used to display the game screen of the target game or the first game resource data of the target game through a client or a browser, and respond to the user's operation instruction, wherein the first game resource data includes relevant data for displaying the game screen of the target game, and specifically may include a game folder, a game configuration file, etc. The first game resource data may also include response data made according to the user's operation on the game screen, such as image data, sound data, etc.
[0086] The scheduling management server 20 is used to manage the cloud game server cluster 30 and allocate a target cloud game server that provides game services of the target game to the first terminal 10, wherein the target cloud game server is any one of the multiple cloud game servers 31.
[0087] The game management server 50 is used to obtain the first game resource data of the target game and upload the first game resource data to the object storage server 60 .
[0088] The object storage server 60 is used to send the first game resource data to the cloud game server cluster 30.
[0089] The cloud game server cluster 30 includes multiple cloud game servers 31, each cloud game server 31 is used to obtain first game resource data, determine the corresponding first virtual disk based on the first game resource data, and create a first difference virtual disk corresponding to the first virtual disk, the first virtual disk is used to store the first game resource data, and the first difference virtual disk is used to store the change operation data of the first terminal on the first game resource data.
[0090] The cloud game server 31 is also used to: obtain operation instructions for the target game from the first terminal 10; when the instruction type of the operation instruction is an instruction to change the first game resource data of the target game, use the first difference virtual disk to process the operation instruction; when the instruction type is an instruction not to change the first game resource data, use the first virtual disk to process the operation instruction.
[0091] Specifically, the scheduling management server 20 can allocate a target cloud game server that provides game services of the target game to the first terminal 10 through its own scheduling module.
[0092] The calling management server 20 can determine the cloud game server in the cloud game server cluster 30 that has the first game resource data of the target game deployed therein based on the information obtained from the game management server 50 .
[0093] The target cloud game server is deployed with the first game resource data of the target game, and provides the game service for the target game to the user. When the target cloud game server provides the game service for the target game to the user, the game can be run in the corresponding directory.
[0094] In some embodiments, the target cloud game server sends corresponding data in the first game resource data in the first virtual disk to the first terminal 10 in response to the screen display instruction for the target game sent by the first terminal 10.
[0095] At least some of the aforementioned multiple cloud game servers include the aforementioned first game resource data.
[0096] The cloud game server cluster 30 may also include a cloud game server that does not contain the first game resource data but contains game resource data different from the target game.
[0097] The multiple cloud game servers 31 included in the cloud game server cluster 30 can obtain various data, such as game resource data of various games, in a peer-to-peer network manner.
[0098] The user can log in to the cloud gaming platform through the first terminal 10 and select the target game (such as Figure 1c After the game 1 in the game is downloaded, the first terminal 10 sends an access request to the game manufacturer server 40, wherein the access request includes the game information of the target game, and the game information includes an identifier for uniquely identifying the target game. After the game manufacturer server 40 obtains the access request, it sends an allocation request to the scheduling management server 20 to request the allocation of the machine corresponding to the access request, that is, the target cloud game server. The scheduling management server 20 determines the machine status of each cloud game server 31 according to the heartbeat information uploaded by each cloud game server 31 in the cloud game server cluster 30 managed by it. Among them, the machine status is used to indicate whether the cloud game server 31 is idle and the machine performance, and the machine performance may include the processing capacity of the machine, the remaining storage space, etc. The scheduling management server 20 can use the cloud game server with the first game resource data of the target game deployed, which is in an idle state and has the highest machine performance as the target cloud game server, and feed back the machine information of the target cloud game server to the game manufacturer server 40, and the game manufacturer server 40 sends the machine information of the target cloud game server to the first terminal 10. After receiving the machine information of the target cloud game server, the first terminal 10 connects to the target cloud game server based on the machine information.
[0099] In some embodiments, the machine information of the aforementioned target cloud gaming server may include a device identifier, a network address, a port number, etc. The first terminal 10 establishes a communication connection (such as a direct connection channel) with the target cloud gaming server based on the device information. The target cloud gaming server may call a web instant messaging interface (such as WebRTC) to send the first game resource data of the target game to the first terminal 10. The first terminal 10 may display the first game resource data or the game screen of the target game through a client (such as a browser). The user may operate the first game resource data or the game screen of the target game on the first terminal 10, for example, change the first game resource data or enter the next level in the operation game screen.
[0100] After the target cloud game server is connected to the first terminal 10, it provides the game service of the target game to the user.
[0101] After the target cloud gaming server establishes a connection with the first terminal 10, the user's operations on the first terminal 10 can be transmitted to the target cloud gaming server through the session. The target cloud gaming server can transmit the game screen of the target game to the cloud gaming SDK of the first terminal 10 through cloud encoding streaming, and the cloud gaming SDK displays it to the user through decoding.
[0102] In some embodiments, if there are no idle cloud game servers in the cloud game server cluster 30, a queue can be placed and then allocated when there are idle cloud game servers.
[0103] In some embodiments, the cloud game server cluster 30 also includes a cache server 32 , which is used to distribute the first game resource data to multiple cloud game servers 31 after downloading the first game resource data from the game management server 50 .
[0104] Among them, the cache server 32 is also used to: clear the data of historical game versions in the first game resource data, and use the first game resource data containing the latest game version as the final data sent to multiple cloud game servers 31.
[0105] In this embodiment, the interaction between the game management server 50, the object storage server 60, and the cloud game server cluster 30 is described in detail in the following embodiments.
[0106] Figure 2a This is a flowchart of a method for processing game data provided by an embodiment of the present application. The method for processing game data may be applicable to any of the aforementioned cloud game servers 31, such as a target cloud game server. The method may include the following S201-S202:
[0107] S201, obtaining an operation instruction of a first terminal for a target game;
[0108] In some embodiments, the operation instruction for the target game may be an operation instruction triggered by the user on the game page of the first terminal.
[0109] S202, when the instruction type of the operation instruction is an instruction for changing the first game resource data of the target game, the operation instruction is processed using the first difference virtual disk; when the instruction type is an instruction for not changing the first game resource data, the operation instruction is processed using the first virtual disk;
[0110] The first virtual disk is a virtual disk determined by the cloud game server based on the first game resource data after acquiring the first game resource data of the target game. The first difference virtual disk is created by the cloud game server based on the first virtual disk. The first virtual disk is used to store the first game resource data. The first difference virtual disk is used to store the change operation data of the first terminal on the first game resource data. The first game resource data includes relevant data for displaying the game screen of the target game, which may specifically include game folders, game configuration files, etc. The first game resource data may also include response data made according to the user's operation on the game screen, such as image data, sound data, etc.
[0111] When the cloud game server in the present application provides game services for the first terminal, the first game resource data needs to be accessed by the first terminal in a virtual disk file format. Based on this, the above method further includes: determining the first virtual disk based on the first game resource data; wherein:
[0112] When the first game resource data is a virtual disk file, determining the first virtual disk based on the first game resource data includes: mounting the virtual disk file locally as the first virtual disk;
[0113] When the first game resource data is not a virtual disk file, determining the first virtual disk based on the first game resource data includes: creating a first virtual disk corresponding to the first game resource data.
[0114] In some embodiments, see Figure 2b As shown, the first game resource data obtained by the cloud game server can be Figure 2b After obtaining the original game resource data of the target game, the game management server 50 in the game data management system shown creates a second virtual disk corresponding to the original game resource data, and can mount the second virtual disk locally, thereby generating a virtual disk file corresponding to the original game resource data, i.e., the first game resource data. At this time, the first game resource data is a virtual disk file. The game management server 50 uploads the first game resource data to the object storage server 60, so that the object storage server 60 sends the first game resource data to the cloud game server cluster 30, thereby enabling the cloud game server to obtain the first game resource data.
[0115] In some other embodiments, the first game resource data acquired by the cloud game server may also refer to the original game resource data of the target game. Figure 2b After obtaining the original game resource data of the target game, the game management server 50 in the game data management system shown directly uses the original game resource data as the first game resource data and uploads the first game resource data to the object storage server 60. At this time, the first game resource data is not a virtual disk file.
[0116] In some embodiments, the first game resource data may include multiple versions of game data, such as Figure 2b The game data for version 1 and version 2 in the game.
[0117] In some optional embodiments, when the operation instruction is an instruction for operating the first game resource data, the instruction type of the operation instruction is determined to be an instruction for changing the first game resource data.
[0118] In some optional embodiments, when the operation instruction is an instruction for operating a game screen, the instruction type of the operation instruction is determined to be an instruction that does not change the first game resource data.
[0119] In some embodiments, the operation instruction of the first terminal in the present application refers to an operation instruction triggered by a user on the first terminal side.
[0120] In some embodiments, the operation instruction for the target game is an operation on the folder and configuration file included in the first game resource data. For example, when adding, deleting or modifying a folder / file, the type of the operation instruction is an instruction for operating the first game resource data. At this time, the instruction type of the operation instruction is determined to be an instruction for changing the first game resource data of the target game, and it is determined to use the first difference virtual disk to process the operation instruction. Through this solution, the operation of the first terminal on the first game resource data can be isolated from the first virtual disk storing the first game resource data, so as to prevent the first game resource data in the first virtual disk from being modified.
[0121] Among them, after the first terminal operates on the first game resource data, the corresponding data change result will be displayed on the first terminal. For example, if new data is added, the new data will be displayed in the application interface of the client of the first terminal. For another example, if data is deleted, the effect of deleting the data will be displayed in the application interface of the client of the first terminal. For the first terminal, what is displayed is the effect of the data change. However, on the cloud game server side, the data change behavior made by the first terminal will not take effect on the first game resource data in the first virtual disk, but will use the first difference virtual disk to process the change operation of the first terminal.
[0122] In some embodiments, the operation instruction for the target game is an operation on the game screen of the target game, such as triggering an instruction to enter the next game level, or re-entering the current level. The type of the operation instruction is an instruction to operate the game screen of the target game. At this time, the instruction type of the operation instruction is determined to be an instruction that does not change the first game resource data, and it is determined that the operation instruction is processed using the first virtual disk.
[0123] In some embodiments, processing the operation instruction using the first virtual disk may include: determining the second game resource data corresponding to the operation instruction, acquiring the second game resource data from the first virtual disk, and sending the second game resource data to the first terminal, so that the first terminal can display the game screen triggered by the operation instruction according to the second game resource data. The second game resource data is part of the first game resource data. When the operation instruction is a trigger instruction for the user to enter the last level of the target game, the second game resource data includes the scene map data, character data, props data, etc. required for the last level.
[0124] In some optional embodiments, the operation instruction is processed using the first difference virtual disk, including the following S1-S2:
[0125] S1, generating a record of changes made by an operation instruction to first game resource data;
[0126] In some embodiments, the change record may include one or more of a change type, a change object, and change data. Specifically, the change type may include adding data, deleting data, or modifying data. For example, if the change type is adding data, the change record may include a new record and the specific new data content.
[0127] S2. Store the change record in the first difference virtual disk.
[0128] In some optional embodiments, the change record is change operation data of the first terminal on the first game resource data.
[0129] In some optional embodiments, the method further includes the following S01-S02:
[0130] S01, in response to an exit instruction of a first terminal for a target game, destroying a first difference virtual disk;
[0131] In some embodiments, when the user exits the target game, the first terminal can send an exit instruction for the target game to the cloud gaming server. In response to the exit instruction for the target game from the first terminal, the cloud gaming server can destroy the first difference virtual disk. By destroying the first difference virtual disk, the change record can be cleared. Since the data change made by the user does not take effect on the data in the first virtual disk, the first game resource data in the first virtual disk is not modified, and the data recovery efficiency is relatively high.
[0132] S02: Create a second difference virtual disk corresponding to the first virtual disk, where the second difference virtual disk is used to store the change operation data of the second terminal on the first game resource data.
[0133] After destroying the first difference virtual disk, the cloud game server can also create a second difference virtual disk corresponding to the first virtual disk. The second difference virtual disk can be used to process the change record corresponding to the change operation made to the first game resource data of the target game by the second terminal when the current user or other users use the target game next time. The second terminal can be the same as or different from the first terminal. This solution can improve the speed of the current user or other users using the target game next time and improve the user experience.
[0134] In some embodiments, when the first terminal obtains an exit instruction for the target game, the cloud game server may choose not to destroy the first difference virtual disk, but to format the first difference virtual disk, that is, to clear the change record of the current user to the first game resource data of the target game, wherein the formatted first difference virtual disk is used to store the change operation data of the second terminal to the first game resource data.
[0135] Specifically, the formatted first difference virtual disk is used to record the change operation data made to the first game resource data of the target game after the current user or other users start the target game next time. The second terminal can be the same as or different from the first terminal. Through this solution, the first difference virtual disk can be reused, avoiding the complicated operation of repeatedly destroying the difference virtual disk in the local data disk and creating a new difference virtual disk, further improving the data processing efficiency.
[0136] In some embodiments, before destroying or formatting the first difference virtual disk, the cloud gaming server may read the change record stored in the first difference virtual disk, and send the read change record and the currently logged-in user account to the cache server or object management server, or the game management server, so that the first game resource data can be persistently stored and can be used for purposes such as tracing the source.
[0137] In some embodiments, after the cloud gaming server obtains the first game resource data, it can perform game-related configuration and soft link path settings, such as adapting the resolution, bit rate, and screen size of the first terminal, and creating a game directory.
[0138] Through the solution provided by the present application, the cloud gaming server can obtain an operation instruction for a target game from the first terminal; when the instruction type of the operation instruction is an instruction to change the first game resource data of the target game, the operation instruction is processed using the first difference virtual disk; when the instruction type is an instruction not to change the first game resource data, the operation instruction is processed using the first virtual disk; wherein the first virtual disk is a virtual disk determined based on the first game resource data after the cloud gaming server obtains the first game resource data of the target game, the first difference virtual disk is created by the cloud gaming server based on the first virtual disk, the first virtual disk is used to store the first game resource data, and the first difference virtual disk is used to store the first game resource data. The disk is used to store the change operation data of the first terminal on the first game resource data. The first game resource data includes a scheme for displaying relevant data of the game screen of the target game. After obtaining the first game resource data of the target data, the cloud game server locally determines the first virtual disk corresponding to the first game resource data, and creates a first virtual difference disk for storing the change operation data of the first terminal on the first game resource data. The change operation of the first terminal on the first game resource data will not affect the first game resource data. When other terminals access the first game resource data through the cloud game server, they can still access the original, unchanged first game resource data. When the first game resource data in the cloud game server is accessed by multiple terminals, the cloud game server does not need to repeatedly unmount and remount the virtual disk storing the first game resource data, which greatly shortens the recovery time of the first game resource data and has a high efficiency in game data recovery.
[0139] Figure 3 The flowchart of a method for processing game data provided by an embodiment of the present application is as follows. The method for processing game data can be applied to the aforementioned object storage server 60. The method may include the following S301-S302:
[0140] S301. Obtain first game resource data of a target game from a game management server, where the first game resource data includes relevant data for displaying a game screen of the target game, and specifically may include a game folder, a game configuration file, etc. The first game resource data may also include response data made according to a user's operation on the game screen, such as image data, sound data, etc.
[0141] S302: Send the first game resource data to the cloud game server;
[0142] Among them, the aforementioned cloud game server can be one of the cloud game servers in the cloud game server cluster, and the object storage server 60 can send the first game resource data to the cloud game server by sending the first game resource data to the cloud game server cluster.
[0143] Among them, the cloud game server cluster includes multiple cloud game servers, and the cloud game server is used to obtain the operation instructions of the first terminal for the target game; when the instruction type of the operation instruction is an instruction to change the first game resource data, the operation instruction is processed using the first difference virtual disk; when the instruction type is an instruction not to change the first game resource data, the operation instruction is processed using the first virtual disk; the cloud game server is also used to: determine the corresponding first virtual disk based on the first game resource data, and create a first difference virtual disk corresponding to the first virtual disk, the first virtual disk is used to store the first game resource data, and the first difference virtual disk is used to store the change operation data of the first terminal on the first game resource data.
[0144] In some optional embodiments, multiple cloud game servers obtain the first game resource data in a peer-to-peer network manner.
[0145] In some optional embodiments, after the cache server in the cloud game server cluster downloads the first game resource data from the object storage server, it distributes the first game resource data to multiple cloud game servers.
[0146] In some optional embodiments, each cloud game server may obtain part of the first game resource data from the first game resource data, and obtain the remaining part of the first game resource data from other cloud game servers.
[0147] In some optional embodiments, after obtaining the first game resource data, the cache server in the present application may also clear the data of historical game versions in the first game resource data, and use the first game resource data containing the latest game version as the final data sent to multiple cloud game servers.
[0148] The specific implementation of this method can be found in the above content and will not be repeated here.
[0149] It should be understood that the above content is merely an example of the present application and should not be construed as a limitation to the present application.
[0150] Figure 4 The following is a flowchart of a method for processing game data provided by an embodiment of the present application. The method for processing game data can be applied to the aforementioned game management server 50. The method may include the following S401-S402:
[0151] S401, obtaining first game resource data of a target game, the first game resource data including relevant data for displaying a game screen of the target game; the first game resource data may specifically include a game folder, a game configuration file, etc. The first game resource data may also include response data made according to a user's operation on the game screen, such as image data, sound data, etc.;
[0152] In some embodiments, the game management server can determine the first game resource data through the game file uploaded by the relevant personnel, and the game file can be a game file of a newly added game or an update file for the game resource data of the original game. The game file includes the original game resource data.
[0153] In some embodiments, after obtaining the original game resource data of the target game, the game management server creates a second virtual disk corresponding to the original game resource data, and can mount the second virtual disk locally to generate a virtual disk file corresponding to the original game resource data, namely the first game resource data.
[0154] In some embodiments, the game management server may locally create a second virtual disk based on the original game resource data, wherein the capacity of the second virtual disk matches the size of the target game.
[0155] After the game management server creates the second virtual disk, it can mount the second virtual disk locally, obtain the disk number information of the second virtual disk, and initialize the second virtual disk based on the disk number information.
[0156] After the game management server 50 mounts the second virtual disk locally, it creates a new partition in the second virtual disk, copies the original game resource data into the partition, and generates the first game resource data. The second virtual disk can be regarded as a parent virtual disk.
[0157] In other embodiments, after acquiring the original game resource data of the target game, the game management server directly uses the original game resource data as the first game resource data.
[0158] S402: Upload the first game resource data to the object storage server, so that the object storage server can send the first game resource data to the cloud game server.
[0159] Among them, the aforementioned cloud game server can be one of the cloud game servers in a cloud game server cluster, and the object storage server can send the first game resource data to the cloud game server by sending the first game resource data to the cloud game server cluster.
[0160] Among them, the cloud game server cluster includes multiple cloud game servers, and the cloud game server is used to obtain the operation instructions of the first terminal for the target game; when the instruction type of the operation instruction is an instruction to change the first game resource data, the operation instruction is processed using the first difference virtual disk; when the instruction type is an instruction not to change the first game resource data, the operation instruction is processed using the first virtual disk; the cloud game server is also used to: determine the corresponding first virtual disk based on the first game resource data, and create a first difference virtual disk corresponding to the first virtual disk, the first virtual disk is used to store the first game resource data, and the first difference virtual disk is used to store the change operation data of the first terminal on the first game resource data.
[0161] In the application, the game management server can package the original game resource data into the created parent virtual disk, and then distribute the first game resource data to the cloud game server through P2P distribution technology. After obtaining the first game resource data, the cloud game server creates a first difference virtual disk for storing change operations on the first game resource data. When the user exits the cloud game, it only needs to destroy and recreate the first virtual difference disk. This not only completes the protection of the first game resource data, but also realizes the rapid recovery of the first game resource data. There is no need for frequent operations to unhook and mount the hard disk. The efficiency of game data recovery is high, which also improves the user experience.
[0162] Furthermore, the first game resource data in the present application can be distributed via P2P, which greatly improves the distribution speed.
[0163] The following is a further description of the scheme in conjunction with another flow chart of the data processing method. Figure 5 As shown, the method includes S1-S10, wherein:
[0164] The game management server 50 is used to execute the following S1-S2:
[0165] S1. Obtain first game resource data of a target game;
[0166] S2, uploading the first game resource data to the object storage server 60;
[0167] The object management server 60 is used to execute the following S3:
[0168] S3, sending the first game resource data to the target cloud game server;
[0169] The first terminal 10 is used to execute the following S4:
[0170] S4, sending an access request, wherein the access request is sent by the first terminal 10 to the game manufacturer server 40;
[0171] The game manufacturer server 40 is used to execute the following S5:
[0172] S5. Sending an allocation request to request allocation of the machine corresponding to the access request, ie, the target cloud gaming server, wherein the allocation request is sent to the scheduling management server 20 after the game manufacturer server 40 receives the access request;
[0173] The target cloud gaming server is used to execute the following S6:
[0174] S6. Reporting heartbeat, wherein the heartbeat is reported to the scheduling management server 20;
[0175] The scheduling management server 20 is also used to execute the following S7-S8:
[0176] S7. Determine the target cloud gaming server based on the heartbeat;
[0177] S8. Send the machine information of the target cloud game server, which is sent by the scheduling management server 20 to the game manufacturer server 40;
[0178] The game manufacturer server 40 is also used to execute the following S9:
[0179] S9. Send the machine information of the target cloud game server, the machine information is sent by the game manufacturer server 40 to the first terminal 10;
[0180] The first terminal 10 is used to perform the following S10:
[0181] S10. Connect to the target cloud game server according to the machine information of the target cloud game server.
[0182] The specific implementation of this method can be found in the above content and will not be repeated here.
[0183] The preferred embodiments of the present application are described in detail above in conjunction with the accompanying drawings. However, the present application is not limited to the specific details in the above embodiments. Within the technical concept of the present application, the technical solution of the present application can be subjected to a variety of simple modifications, and these simple modifications all belong to the protection scope of the present application. For example, the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present application will not further explain various possible combinations. For another example, the various different embodiments of the present application can also be arbitrarily combined, as long as they do not violate the ideas of the present application, they should also be regarded as the contents disclosed in the present application.
[0184] Figure 6 A schematic block diagram of a game data processing device provided in one embodiment of the present application, the game data processing device comprising:
[0185] A first acquisition unit 61 is used to acquire an operation instruction of the first terminal for a target game;
[0186] The processing unit 62 is used to process the operation instruction using the first difference virtual disk when the instruction type of the operation instruction is an instruction to change the first game resource data of the target game; and to process the operation instruction using the first virtual disk when the instruction type is an instruction not to change the first game resource data;
[0187] Among them, the first virtual disk is a virtual disk determined by the cloud game server based on the first game resource data after obtaining the first game resource data of the target game. The first difference virtual disk is created by the cloud game server based on the first virtual disk. The first virtual disk is used to store the first game resource data. The first difference virtual disk is used to store the change operation data of the first terminal on the first game resource data. The first game resource data includes relevant data for displaying the game screen of the target game.
[0188] In some embodiments, the aforementioned game data processing device is further used to: determine a first virtual disk based on the first game resource data;
[0189] When the first game resource data is a virtual disk file, the cloud game server is used to determine the first virtual disk based on the first game resource data, specifically to: mount the virtual disk file locally as the first virtual disk;
[0190] When the first game resource data is not a virtual disk file, the cloud game server is used to determine the first virtual disk based on the first game resource data, specifically to: create a first virtual disk corresponding to the first game resource data.
[0191] In some embodiments, the aforementioned game data processing device is further used for:
[0192] When the operation instruction is an instruction for operating the first game resource data, it is determined that the instruction type of the operation instruction is an instruction for changing the first game resource data.
[0193] In some embodiments, the aforementioned game data processing device is further used for:
[0194] When the operation instruction is an instruction for operating the game screen, it is determined that the instruction type of the operation instruction is an instruction that does not change the first game resource data.
[0195] In some embodiments, when the processing unit 62 is used to process the operation instruction using the first difference virtual disk, it is specifically used to:
[0196] Generate a record of changes made by the operation instruction to the first game resource data;
[0197] The change record is stored in the first difference virtual disk.
[0198] In some embodiments, the aforementioned game data processing device is further used to: in response to an exit instruction of the first terminal for the target game, destroy the first difference virtual disk;
[0199] A second difference virtual disk corresponding to the first virtual disk is created, and the second difference virtual disk is used to store the change operation data of the second terminal on the first game resource data.
[0200] In some embodiments, the aforementioned game data processing device is also used to: format the first difference virtual disk in response to the first terminal's exit instruction for the target game, wherein the formatted first difference virtual disk is used to store the second terminal's change operation data on the first game resource data.
[0201] In some embodiments, the aforementioned game data processing device is further used to: in response to a screen display instruction for a target game sent by the first terminal, send corresponding data in the first game resource data to the first terminal.
[0202] Figure 7 A schematic block diagram of another game data processing device provided in an embodiment of the present application, the game data processing device comprising:
[0203] A second acquisition unit 71 is used to acquire first game resource data of a target game from a game management server, where the first game resource data includes relevant data for displaying a game screen of the target game;
[0204] A sending unit 72, configured to send the first game resource data to a cloud game server;
[0205] Among them, the aforementioned cloud game server can be one of the cloud game servers in a cloud game server cluster, and the first game resource data can be sent to the cloud game server by sending the first game resource data to the cloud game server cluster.
[0206] Among them, the cloud game server cluster includes multiple cloud game servers, and the cloud game server is used to obtain the operation instructions of the first terminal for the target game; when the instruction type of the operation instruction is an instruction to change the first game resource data, the operation instruction is processed using the first difference virtual disk; when the instruction type is an instruction not to change the first game resource data, the operation instruction is processed using the first virtual disk; the cloud game server is also used to: determine the corresponding first virtual disk based on the first game resource data, and create a first difference virtual disk corresponding to the first virtual disk, the first virtual disk is used to store the first game resource data, and the first difference virtual disk is used to store the change operation data of the first terminal on the first game resource data.
[0207] Figure 8 A schematic block diagram of another game data processing device provided in an embodiment of the present application, the game data processing device comprising:
[0208] A third acquisition unit 81 is used to acquire first game resource data of a target game;
[0209] An uploading unit 82 is used to upload the first game resource data to the object storage server, so that the object storage server sends the first game resource data to the cloud game server, where the first game resource data includes relevant data for displaying the game screen of the target game;
[0210] Among them, the aforementioned cloud game server can be one of the cloud game servers in a cloud game server cluster, and the object storage server can send the first game resource data to the cloud game server by sending the first game resource data to the cloud game server cluster.
[0211] Among them, the cloud game server cluster includes multiple cloud game servers, and the cloud game server is used to obtain the operation instructions of the first terminal for the target game; when the instruction type of the operation instruction is an instruction to change the first game resource data, the operation instruction is processed using the first difference virtual disk; when the instruction type is an instruction not to change the first game resource data, the operation instruction is processed using the first virtual disk; the cloud game server is also used to: determine the corresponding first virtual disk based on the first game resource data, and create a first difference virtual disk corresponding to the first virtual disk, the first virtual disk is used to store the first game resource data, and the first difference virtual disk is used to store the change operation data of the first terminal on the first game resource data.
[0212] It should be understood that Figure 6-Figure 8 The embodiments in the method embodiment may correspond to each other, and similar descriptions may refer to the method embodiment. To avoid repetition, they will not be repeated here. And Figure 6-Figure 8 The aforementioned and other operations and / or functions of each module in the embodiments are respectively for implementing the above method embodiments, and for the sake of brevity, they are not repeated here.
[0213] The above text describes the game management server, object storage server, and cloud game server in this application from the perspective of functional modules in combination with the accompanying drawings. Figure 6-Figure 8In the embodiments, the functional modules can be implemented in the form of hardware, can be implemented in the form of software instructions, or can be implemented by a combination of hardware and software modules. Specifically, the steps of the method embodiments in the embodiments of the present application can be completed by the hardware integrated logic circuit and / or software instructions in the processor, and the steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor, or a combination of hardware and software modules in the decoding processor. Optionally, the software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory, and completes the steps in the above method embodiments in combination with its hardware.
[0214] Fig. 9 It is a schematic block diagram of an electronic device provided in an embodiment of the present application, and the electronic device is used to execute the above method embodiment.
[0215] like Fig. 9 As shown, the electronic device includes a processor and a memory, wherein a computer program is stored in the memory, and the processor executes the methods in the aforementioned embodiments by calling the computer program stored in the memory.
[0216] For example, the processor 92 may be configured to execute the above method steps according to instructions in the computer program 93 .
[0217] In some embodiments of the present application, the processor 92 may include but is not limited to:
[0218] General-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
[0219] In some embodiments of the present application, the memory 91 includes but is not limited to:
[0220] Volatile memory and / or non-volatile memory. Among them, the non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM) or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus random access memory (DR RAM).
[0221] In some embodiments of the present application, the computer program 93 may be divided into one or more modules, which are stored in the memory 91 and executed by the processor 92 to complete the methods provided by the present application. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program 93 in the electronic device.
[0222] like Fig. 9 As shown, the electronic device may further include:
[0223] The transceiver 94 may be connected to the processor 92 or the memory 91 .
[0224] The processor 92 may control the transceiver 94 to communicate with other devices, specifically, to send information or data to other devices, or to receive information or data sent by other devices. The transceiver 94 may include a transmitter and a receiver. The transceiver 94 may further include an antenna, and the number of antennas may be one or more.
[0225] It should be understood that the various components in the electronic device are connected via a bus system, wherein the bus system includes not only a data bus but also a power bus, a control bus and a status signal bus.
[0226] According to one aspect of the present application, a computer storage medium is provided. The computer-readable storage medium stores a computer program. The computer program is suitable for being loaded by a processor to execute the method of the above method embodiment.
[0227] The embodiment of the present application also provides a computer program product including instructions, which, when executed by a computer, enables the computer to perform the method of the above method embodiment.
[0228] According to another aspect of the present application, a computer program product or computer program is provided, the computer program product or computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the method of the above method embodiment.
[0229] In other words, when implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a server, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server, or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disc (digital video disc, DVD)), or a semiconductor medium (e.g., a solid state drive (solid state disk, SSD)), etc.
[0230] Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0231] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the module is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0232] The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. For example, each functional module in each embodiment of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0233] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for processing game data, characterized in that: Applied to cloud gaming servers, including: Obtaining an operation instruction of the first terminal for the target game; When the instruction type of the operation instruction is an instruction to change the first game resource data of the target game, the operation instruction is processed by using the first difference virtual disk; When the instruction type is an instruction that does not change the first game resource data, the operation instruction is processed using the first virtual disk; Among them, the first virtual disk is a virtual disk determined by the cloud game server based on the first game resource data after obtaining the first game resource data, the first difference virtual disk is created by the cloud game server based on the first virtual disk, the first virtual disk is used to store the first game resource data, the first difference virtual disk is used to store the change operation data of the first terminal on the first game resource data, and the first game resource data includes relevant data for displaying the game screen of the target game.
2. The method according to claim 1, characterized in that The method further includes: determining the first virtual disk based on the first game resource data; When the first game resource data is a virtual disk file, determining the first virtual disk based on the first game resource data includes: mounting the virtual disk file locally as the first virtual disk; When the first game resource data is not a virtual disk file, determining the first virtual disk based on the first game resource data includes: creating a first virtual disk corresponding to the first game resource data.
3. The method according to any one of claims 1 to 2, characterized in that: When the operation instruction is an instruction for operating the first game resource data, the instruction type is determined to be an instruction for changing the first game resource data.
4. The method according to claim 1, characterized in that: When the operation instruction is an instruction for operating the game screen, the instruction type is determined to be an instruction that does not change the first game resource data.
5. The method according to claim 1, characterized in that Processing the operation instruction using the first difference virtual disk includes: Generate a record of changes made by the operation instruction to the first game resource data; The change record is stored in the first difference virtual disk.
6. The method according to claim 1, characterized in that The method further comprises: In response to an exit instruction from the first terminal for the target game, destroying the first difference virtual disk; A second difference virtual disk corresponding to the first virtual disk is created, where the second difference virtual disk is used to store change operation data of the second terminal on the first game resource data.
7. The method according to claim 1, characterized in that The method further comprises: In response to the exit instruction of the first terminal for the target game, the first difference virtual disk is formatted, wherein the formatted first difference virtual disk is used to store the change operation data of the second terminal on the first game resource data.
8. The method according to claim 1, characterized in that The method further comprises: In response to the screen display instruction for the target game sent by the first terminal, corresponding data in the first game resource data is sent to the first terminal.
9. A game data management system, characterized in that: include: A game management server, configured to obtain first game resource data of a target game, and send the first game resource data to a cloud game server, wherein the first game resource data includes relevant data for displaying a game screen of the target game; The cloud game server is used to obtain an operation instruction of the first terminal for the target game; when the instruction type of the operation instruction is an instruction to change the first game resource data, the operation instruction is processed by using the first difference virtual disk; When the instruction type is an instruction that does not change the first game resource data, the operation instruction is processed using the first virtual disk; The cloud game server is also used to: determine the corresponding first virtual disk based on the first game resource data, and create the first difference virtual disk corresponding to the first virtual disk, the first virtual disk is used to store the first game resource data, and the first difference virtual disk is used to store the change operation data of the first terminal on the first game resource data.
10. The system according to claim 9, characterized in that The system also includes a cache server, which is used to distribute the first game resource data to the cloud game server after downloading the first game resource data from the game management server.
11. The system according to claim 10, characterized in that The cache server is also used for: The data of historical game versions in the first game resource data are cleared, and the first game resource data containing the latest game version is used as the final data sent to the cloud game server.
12. A game data processing device, characterized in that: include: A first acquisition unit, configured to acquire an operation instruction of the first terminal for a target game; a processing unit, configured to process the operation instruction using the first difference virtual disk when the instruction type of the operation instruction is an instruction to change the first game resource data of the target game; When the instruction type is an instruction that does not change the first game resource data, the operation instruction is processed using the first virtual disk; Among them, the first virtual disk is a virtual disk determined by the cloud game server based on the first game resource data after obtaining the first game resource data, the first difference virtual disk is created by the cloud game server based on the first virtual disk, the first virtual disk is used to store the first game resource data, the first difference virtual disk is used to store the change operation data of the first terminal on the first game resource data, and the first game resource data includes relevant data for displaying the game screen of the target game.
13. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein a computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 8 by calling the computer program stored in the memory.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor to execute the method according to any one of claims 1 to 8.
