CN111045715B - Cloud game hot updating method, system and readable storage medium - Google Patents

Cloud game hot updating method, system and readable storage medium Download PDF

Info

Publication number
CN111045715B
CN111045715B CN201911032330.8A CN201911032330A CN111045715B CN 111045715 B CN111045715 B CN 111045715B CN 201911032330 A CN201911032330 A CN 201911032330A CN 111045715 B CN111045715 B CN 111045715B
Authority
CN
China
Prior art keywords
file
updating
game
cloud game
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911032330.8A
Other languages
Chinese (zh)
Other versions
CN111045715A (en
Inventor
鲁圣鹏
许平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Migu Cultural Technology Co Ltd
China Mobile Communications Group Co Ltd
MIGU Interactive Entertainment Co Ltd
Original Assignee
Migu Cultural Technology Co Ltd
China Mobile Communications Group Co Ltd
MIGU Interactive Entertainment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Migu Cultural Technology Co Ltd, China Mobile Communications Group Co Ltd, MIGU Interactive Entertainment Co Ltd filed Critical Migu Cultural Technology Co Ltd
Priority to CN201911032330.8A priority Critical patent/CN111045715B/en
Publication of CN111045715A publication Critical patent/CN111045715A/en
Application granted granted Critical
Publication of CN111045715B publication Critical patent/CN111045715B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/77Game security or game management aspects involving data related to game devices or game servers, e.g. configuration data, software version or amount of memory
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention relates to the field of network communication, and discloses a cloud game hot updating method, a cloud game hot updating system and a readable storage medium. The hot updating method of the cloud game comprises the following steps: responding to a game starting instruction of a user side, and determining whether cloud games designated by the game instruction need to be updated or not; acquiring and executing an update file in response to determining that an update is required; comparing the files corresponding to the cloud games before updating and after updating, and screening the newly added files after updating; and generating a patch package according to the newly added file for updating by other servers. The embodiment provides a new cloud game heating mode, so that the entering time of the cloud game is ensured as much as possible, and meanwhile, the heating requirement on a server is met as much as possible.

Description

Cloud game hot updating method, system and readable storage medium
Technical Field
The embodiment of the invention relates to the field of network communication, in particular to a hot updating method, a hot updating system and a readable storage medium of a cloud game.
Background
Cloud gaming (Cloud gaming), which may also be referred to as game on demand, is an online gaming technology based on Cloud computing technology. Cloud gaming technology enables lightweight devices (thin) with relatively limited graphics processing and data computing capabilities to run high quality games. In a cloud game scenario, the game is not run in the player gaming terminal, but in a cloud server. In the running mode of the cloud game, all games are run at the server side, the rendered game pictures are compressed and then transmitted to a user through a network, the game pictures are specifically encoded in real time, and video streams are pushed to the client side. Correspondingly, at the client, the game device of the user does not need any high-end processor or display card, only needs basic video decompression capability, decodes and displays the audio and video stream when the cloud game is operated, and returns the user operation instruction to the cloud.
The basic idea of the thermal solution in the cloud game is to generate a thermal file and then update the thermal file by each game server. The strategy for generating the thermal file has a full-quantity file packaging scheme, packages all resource files as the thermal file, and uploads the thermal file to the thermal server. Among these, the update strategies for the hot files are mainly two: active pushing and automatic pulling. Actively pushing, namely pushing all the hot files to each server; automatic pulling is triggered by the user, pulling the hot file prior to play.
Massive games exist in the cloud game platform, the update frequency and update time of each game cannot be known, and a strategy for updating the games is manually configured, so that the workload is large and the timeliness is poor. As the scale of cloud gaming platforms increases, the number of hot games becomes a bottleneck for the overall system load. If the hot update cannot be accurately and timely extracted, the game experience of the user is seriously affected, the user is lost, and the product loses competitiveness.
If all games on all cloud game servers are heated up, because some games on some machines have a low probability of being scheduled, even after updating, they are not scheduled, which is equivalent to an invalid heating up, which consumes a lot of valuable server bandwidth resources. In contrast, if no service is heated, an automatic pulling strategy is adopted, and all users need to be heated when starting the game, so that the waiting time of the users for entering the game is prolonged, and the user experience is reduced.
Disclosure of Invention
The embodiment of the invention aims to provide a cloud game heat updating method and a server, and provides a new cloud game heat updating mode, so that the entering time of a cloud game is ensured as much as possible, and meanwhile, the heat more requirements on the server are met as much as possible.
In order to solve the above technical problems, an embodiment of the present invention provides a method for hot update of a cloud game, including: responding to a game starting instruction of a user side, and determining whether cloud games designated by the game instruction need to be updated or not; acquiring and executing an update file in response to determining that an update is required; comparing the files corresponding to the cloud games before updating and after updating, and screening the newly added files after updating; and generating a patch package according to the newly added file for updating by other servers.
The embodiment of the invention also provides a hot updating method of the cloud game, which comprises the following steps: in response to determining that a cloud game needs to be updated, obtaining a patch package corresponding to the cloud game, wherein the patch package comprises a file which is newly added during updating; and executing the patch package to update the cloud game.
The embodiment of the invention also provides a server, which comprises: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to perform: such as the cloud game hot update method described above.
Embodiments of the present invention also provide a computer-readable storage medium storing a computer program which, when executed by a processor, implements a method of hot updating a cloud game as described above.
The embodiment of the invention also provides a cloud game updating system, which comprises: a first server and a second server; the first server responds to a game starting instruction of a user side and executes: determining whether the cloud game designated by the game instruction needs to be updated; acquiring and executing an update file in response to determining that an update is required; comparing the files corresponding to the cloud games before updating and after updating, and screening the newly added files after updating; generating a patch package according to the newly added file for updating by the second server; the second server, in response to determining that a cloud of games needs to be updated, performs: obtaining a patch package corresponding to the cloud game, wherein the patch package comprises a file which is newly added during updating; and executing the patch package to update the cloud game.
Compared with the prior art, the embodiment of the invention has the main differences and effects that: based on the user demand, when the cloud game has a thermal demand, the user terminal which starts the game before interacts with the scheduled server, the scheduled server actively pulls the updated file to update, and the updated newly added file is screened out to form a patch package, and the patch package can be updated by other servers. According to the method and the device, after the thermal more demand is met, all servers are pushed automatically, the servers are scheduled according to the user demand, then the required patches for updating are generated, other servers acquire the patches instead of acquiring the complete updating file, the actual capacity of the acquired updating content is reduced, the network transmission pressure of the updating file is greatly reduced, and the method and the device are triggered by the user action, are more in line with the user demand, and are invalid in updating as far as possible. The embodiment provides a new cloud game heating mode, so that the entering time of the cloud game is ensured as much as possible, and meanwhile, the heating requirement on a server is met as much as possible.
As a further improvement, the newly added files after updating are screened out by comparing the files before updating with the files after updating in the following way: comparing the file state diagrams of the tree structures before and after updating; or by comparing the updated file list with the updated file list. Specific comparison methods are clear, so that the implementation process is simple and direct, and the popularization is easy.
As a further improvement, a file state diagram of a tree structure of a cloud game is acquired by: recording a root directory of the cloud game as a root node; traversing all files under the cloud game directory, and recording the file name or the identification number of the file as a leaf node; if a file is located in the root directory, a leaf node corresponding to the file is connected with the root node; if a file is not located in the root directory, the absolute path of the file is recorded and used as a non-leaf node between the leaf node corresponding to the file and the root node. The method for generating the file state diagram of the definite tree structure ensures that the file state diagram is generated accurately and quickly.
As a further improvement, if the file list is compared with the updated file list before updating, the file list includes: absolute path of the file, and/or modification time of the file. And further clearly determining the compared file parameters, so that the updated newly added file is more accurately obtained.
As a further improvement, the other servers are servers in a preset server group. And the range of other servers is defined, and network congestion possibly caused by whole-network pushing is avoided.
As a further improvement, the servers in the preset server group conform to: the starting frequency of the cloud game is higher than a threshold value. The server which definitely pushes actively is the server with higher starting probability of the cloud game, so that the server with higher starting probability obtains updated pushing preferentially.
As a further improvement, the starting frequency of the cloud game on a certain server is calculated by the following formula:wherein the P is i Representing the starting frequency of game i on server j, g i Representing the number of times game i opens on server j within a preset time period, said u j And indicating the number of registered users of the server j in the preset time. A calculation formula of the starting frequency is listed, so that the determination of the actively pushed server is simple and direct.
As a further improvement, it is determined that the cloud game specified by the game instruction needs to be updated by: a soft link is found indicating that an update file exists. The scheme determines whether the cloud game needs to be updated or not through soft links, and is clear and effective.
As a further improvement, after the patch package is generated, the method further comprises: and sending the patch package to a special server to push to the other servers. The proposal definitely carries out the pushing of the patch package by the special server, does not occupy the bandwidth of the server generating the patch package, is more beneficial to setting various pushing rules on the special server, and is convenient for the management and control of the updating process.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
Drawings
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which the figures of the drawings are not to be taken in a limiting sense, unless otherwise indicated.
FIG. 1 is a schematic diagram of a network architecture for cloud gaming operation in a first embodiment of the present invention;
FIG. 2 is a flowchart of a method of hot update of a cloud game in accordance with a first embodiment of the present invention;
fig. 3 is a file state diagram in a hot update method of a cloud game according to a first embodiment of the present invention;
FIG. 4 is a schematic diagram showing an alignment of file state diagrams in a method for hot update of a cloud game according to a first embodiment of the present invention;
FIG. 5 is a schematic diagram showing an alignment of file state diagrams in a method for hot update of a cloud game according to a first embodiment of the present invention;
FIG. 6 is a flow chart of a method of hot update of a cloud game in accordance with a second embodiment of the present invention;
fig. 7 is a schematic view of a server according to a fourth embodiment of the present invention;
fig. 8 is a flowchart of a method of hot update of a cloud game according to a sixth embodiment of the present invention;
fig. 9 is a schematic diagram of a thermal update system of a cloud game according to a seventh embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the following detailed description of the embodiments of the present invention will be given with reference to the accompanying drawings. However, those of ordinary skill in the art will understand that in various embodiments of the present invention, numerous technical details have been set forth in order to provide a better understanding of the present application. However, the technical solutions claimed in the present application can be implemented without these technical details and with various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not be construed as limiting the specific implementation of the present invention, and the embodiments can be mutually combined and referred to without contradiction.
A first embodiment of the present invention relates to a method of thermal updating of a cloud game.
The method for hot update of a cloud game in this embodiment may be applied to a server of the cloud game, and as shown in fig. 1, a network architecture for running the cloud game may include: the cloud game system comprises a cloud game server, a cloud platform and a user terminal. The cloud platform is used for providing game on-shelf management, cloud game update file management and the like for game providers, a thermal server, namely a server special for thermal service, is used for storing update files and the like, and a virtual machine are arranged on the cloud game server when a user requests a game and are used for running the cloud game. In practical application, the virtual machine may be equivalent to a virtual mobile phone, and relates to a mobile phone processing system and the like. Therefore, the original cloud game program running on the mobile phone side can conveniently run on the virtual and generate the video stream to be pushed to the user terminal side. The user terminal receives the pushed video stream and plays the video stream for enjoyment by the user.
As shown in fig. 2, the method for updating the cloud game according to the present embodiment specifically includes:
in step 201, in response to a game starting instruction from the user side, it is determined whether the cloud game specified by the game instruction needs to be updated.
Specifically, the game player operates from the user side, clicks a cloud game icon, sends out a game starting instruction, and sends the game starting instruction to a corresponding game server A according to the area mapping, namely the server A is scheduled. After receiving the instruction for starting the game, the game server analyzes the designated cloud game. Thereafter, a determination is made as to whether the cloud game requires an update. In this embodiment, the update confirmation may be performed according to a manner of searching for a soft link of the update file, where the soft link may be a flag in the thermal server for indicating whether the thermal file exists, and the soft link may also indicate a location where the thermal file exists, and in practical application, the soft link may be named as current. It can be seen that whether the cloud game needs to be updated or not is determined through soft links, and the cloud game is clear and effective.
In addition, in practical application, other ways may be used to determine whether the cloud game needs to be updated, which is not described herein.
In response to determining that an update is needed, an update file is obtained and executed, step 202.
Specifically, after the server finds the soft link on the hot update server, it determines that the cloud game needs to be updated, requests to download the update file, and after the downloading is completed, the update file can be executed to update the cloud game on the server, and the cloud game can be covered in a game catalog when updating. More specifically, the update file may be obtained from the game cloud platform, or may be obtained from a thermal update server.
Step 203, comparing the files corresponding to the cloud game before and after updating, and screening the newly added files after updating.
Specifically, in this embodiment, the file state diagrams of the tree structures before and after updating are compared, that is, the files before and after updating are compared by comparing the file state diagrams of the tree structures before and after updating, and the newly added files after updating are screened out. The file state diagram is shown in fig. 3, and includes: a leaf node 1 for recording a file name and/or an identification number; a non-leaf node 2 for recording a file path; and the root node 3 is used for recording the root directory of the cloud game. In addition, the tree structure does not include an archive path of the game. The identification number of the file can be MD5 (MD 5Message-digest algorithm) identification number, and for different files, the MD5 identification number is different, so that different files can be effectively distinguished by using MD5 to record the file, and when the files before and after updating use the same file name, the files can be distinguished, which is very accurate.
More specifically, when generating the file state diagram, the files and paths in the tree structure are created layer by traversing all the files under the game directory, so as to form a complete file state diagram. The specific steps may include: recording a root directory of the cloud game as a root node; traversing all files under the cloud game directory, and recording the file name or the identification number of the file as a leaf node; if a file is located in the root directory, the leaf node corresponding to the file is connected with the root node; if a file is not located in the root directory, the absolute path of the file is recorded and used as a non-leaf node between the leaf node corresponding to the file and the root node.
The following describes a procedure for determining an alignment by a file state diagram of a tree structure:
1. firstly, defining a difference state diagram D, wherein M1 is a file state diagram before updating, M2 is a file state diagram after updating, the root nodes of M1 and M2 are the same, the root node can be game id, and the root node of D is set to be game id.
2. Traversing M1 and M2 in a hierarchy way, and respectively obtaining node lists of M1 and M2 under the level h; comparing the differences of the two sets, and if the differences are the same, considering that the two sets are not changed; if not, the difference directory is considered, and the recursively traversing is continued to find the difference.
3. And storing the difference catalog into a state diagram D, and finally generating the difference state diagram D.
4. The tree height h of the difference state diagram D is determined.
5. If the height h of the fruit tree is larger than 1, the difference file is represented, and then the packed compression generation thermal file is generated according to the state diagram.
6. If the height h of the fruit tree is 0, no difference file exists, and no newly added file is determined.
Taking fig. 4 as an example, after comparing M1 and M2, the generated difference state diagram D has only one root node, and the height h=1 indicates that there is no difference, and no patch package is generated; taking fig. 5 as an example, after comparing M1 and M2, the generated difference state diagram D has a leaf node, and the leaf node stores an absolute path of the conf file; h=2 of this difference state diagram D can be known, so it is determined that there is a difference, and then the conf file is packaged as a patch package.
It should be noted that, the file state diagram before the update may be pre-stored, for example, generated after the game is installed, or generated before the update. The updated file state diagram may be generated after the updated file is executed, so as to avoid affecting the operation of the user on the cloud game, or may be generated when the user exits the cloud game for the next time. The generation time of the file state diagram is not limited herein.
And 204, generating a patch package according to the newly added file for updating by other servers.
Specifically, other servers may download the patch package for upgrades when the cloud game needs to be updated. More specifically, after the patch package is generated, other servers may be informed of the presence of the update file by sending a "hot-more broadcast" message.
It should be noted that, for a single server, a certain period of time is required from the acquisition of the update file to the generation of the patch package, so in practical application, a plurality of servers may generate patch packages successively, and at this time, in order to ensure the update effect, the patch package with the latest generation time may be set as the patch package for other servers to update.
In the embodiment, from the aspect of user demand, when a cloud game has a thermal demand, a user terminal which starts the game in advance interacts with a scheduled server, the scheduled server actively pulls an update file to update, and meanwhile, the updated newly added file is screened out to form a patch package, and the patch package can be updated by other servers. According to the method and the system, after the thermal more demand occurs, all servers are automatically pushed, the servers are scheduled according to the user demand, if the first user for starting the game triggers, the patch package required for updating is generated, other servers update the cloud game by using the patch package instead of acquiring the complete updating file, the actual capacity of the acquired updating content is reduced, the network transmission pressure of the updating file is greatly reduced, and the server is triggered by the user action, so that the method and the system more meet the user demand, and invalid updating is reduced as much as possible. The embodiment provides a new cloud game heating mode, so that the entering time of the cloud game is ensured as much as possible, and meanwhile, the heating requirement on a server is met as much as possible.
A second embodiment of the present invention relates to a method of thermal updating of a cloud game. The second embodiment is a further improvement over the first embodiment, and the main improvement is that: in the second embodiment, after generating the patch package, the patch package is sent to a dedicated server, and pushed to other servers by the dedicated server. The special server is used for pushing the patch package, so that the bandwidth of the server for generating the patch package is not occupied, various pushing rules are more favorably set on the special server, and the update process is convenient to manage and control.
As shown in fig. 6, a flowchart of a method for thermally updating a cloud game according to the present embodiment is specifically as follows:
steps 601 to 603 are similar to steps 201 to 203 in the first embodiment, and are not described here again.
Step 604, generating a patch package according to the newly added file.
Specifically, the method for generating the patch package in this step is similar to the method for generating the patch package in step 204 in the first embodiment, and will not be described herein.
Step 605, the patch package is sent to a dedicated server to push to other servers.
Specifically, the dedicated server may be, for example, a thermal update server, and after receiving the patch package, the thermal update server pushes the patch package to other servers according to the update rule, or the other servers request the thermal update server to download when the patch package needs to be updated.
More specifically, the other servers may be servers in a preset server group. In this embodiment, the preset server in the server group accords with: the start frequency of the cloud game is higher than a threshold value. The starting frequency of the cloud game on a certain server is determined through the scheduled frequency of the certain server and the probability of the game in the server being used. The specific formula is as follows:
wherein g in the above formula (1) i The method is characterized in that the number of times of opening the game i on the server j in the preset duration is represented, beta is taken as a server weight coefficient, the weight of the server in the whole system is reflected, and the calculation method of beta is shown in a formula (2), and u j The number of logged-in users of the server j in the preset time period is represented, and denominators in the formula (2) are total login times of all users.
Continuing to explain, the probability beta reflects the probability that the game server is scheduled, the probability that the probability is higher indicates that the probability that the game server is selected by a user is higher, and the game on the probability is kept in the latest version, so that the frequency of the whole system needing heat is reduced; the probability P reflects the evaluation rate of the game i which is scheduled on the machine j, the higher the evaluation rate is, the higher the game starting frequency is, and the more the number of times of heating the whole system can be remarkably reduced by actively pushing heat to the game of the type. The system heat can be more effectively improved, and the system load can be improved on the premise of ensuring the user experience.
From the above formulas (1) and (2), the following formulas are derived:
wherein P is i Representing the frequency of game i start-up on server j, g i Representing the number of times game i is opened on server j within a preset duration, u j Indicating the number of registered users of the server j in a preset time period.
In addition, in practical applications, the other servers may be manually set, for example, a server with vip authority, and the determination rules of the other servers are not listed here.
Continuing to explain, the hot-standby server pushes the server with high dispatching frequency preferentially, so that the server with high dispatching frequency can download and update the cloud game in idle time, and when the user dispatches, the cloud game with the latest version can be provided for the user directly, and the situation that the game is started for too long when the user starts is avoided. On the other hand, the server with lower dispatching frequency can actively acquire the update file for downloading when being dispatched, such as pulling the patch package from the thermal more server for downloading, or such as pulling the update file from the thermal more server for downloading.
Therefore, in the embodiment, the patch package is uploaded to the special server, and then the special server pushes the patch package, so that the bandwidth of the server generating the patch package is not occupied, various pushing rules are more favorably set on the special server, and the management and control of the updating process are facilitated. In addition, the server with high cloud game starting frequency is preferentially and actively pushed for updating, the server with low cloud game starting frequency is automatically pulled for updating, the two updating strategies are combined, the thermal more performance of the whole network is improved, the short-time massive thermal more pushing is reduced while the user demand is ensured, the possible network congestion is avoided, the server with high game starting frequency is updated when the user is idle as much as possible, the speed of the user when the user starts the game is improved, and the experience is improved.
A third embodiment of the present invention relates to a method of thermal updating of a cloud game. The third embodiment is similar to the first embodiment, with the main difference that: in the first embodiment, the comparison is performed by using a file state diagram, but in the present embodiment, the comparison is performed by using a file list to screen the updated and newly added file, and the mode of the file list is simple and clear, so that the storage space occupation is low.
Specifically, file lists before and after updating can be respectively generated by a full path enumeration mode in a cloud game file directory. More specifically, the comparison modes of the file list can be two modes:
firstly, the file list can comprise file names (or file identification numbers) and corresponding absolute paths, when the file names (or file identification numbers) and the corresponding absolute paths are compared, whether newly added files exist is determined according to the file list, if the newly added files exist, the corresponding absolute paths are found out to generate a difference list, and then a patch package is generated through the difference list.
And secondly, the file list can comprise file names (or file identification numbers), corresponding paths and corresponding modification times, and when the files are compared, the files are ordered according to the modification times, and because the modification times of the updated files are different from the original files, if the modification times are earlier, the files can be determined to be non-newly added files before the update times, and the modification times are later than the update times, the files can be determined to be newly added, so that patch packages are generated according to the newly added files. It can be found that in this way, after sorting, the number of files to be compared is small, and the execution process is simple.
Therefore, in the embodiment, the newly added files are screened out by using the file list comparison mode, and a plurality of comparison modes are provided, so that different comparison modes can be selected according to the requirements in the practical application of the embodiment, and the method is flexibly and variably applicable to different requirements.
A fourth embodiment of the present invention relates to a server, as shown in fig. 7, including:
at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to deploy the method of hot updating a cloud game as mentioned in the first or second embodiment.
Where the memory and the processor are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting the various circuits of the one or more processors and the memory together. The bus may also connect various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or may be a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor is transmitted over the wireless medium via the antenna, which further receives the data and transmits the data to the processor.
The processor is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And memory may be used to store data used by the processor in performing operations.
A fifth embodiment of the present invention relates to a non-volatile storage medium storing a computer-readable program for causing a computer to execute the method example of any one of the first to third embodiments described above.
A sixth embodiment of the present invention relates to a method of thermal updating of a cloud game.
The thermal updating method in the embodiment is applied to a cloud game server, and when an updating file exists in the cloud game on the server, but a corresponding user side does not send out a game starting instruction yet, the updating file is not triggered to be actively pulled, and after a patch package is generated, the cloud game is updated through the patch package. The flowchart is shown in fig. 8, and specifically includes the following steps:
in step 801, in response to determining that a cloud game needs to be updated, a patch package corresponding to the cloud game is obtained.
Specifically, the patch package includes a file that is newly added at the time of update. More specifically, the patch package is generated by: when a server updates the cloud game through the updated file, comparing the files corresponding to the updated cloud game before updating, and screening the updated newly added files; and generating a patch package according to the newly added file. It may be found that the patch package may be a patch package generated in any one of the hot update methods of the first to third embodiments described above.
Continuing with the description, the server in this embodiment determines that a cloud game needs to be updated according to the following manner: responsive to receiving a thermal more broadcast of the cloud game; or, responding to a starting instruction for the cloud game from the user side. It can be found that the server in this embodiment may use a passive push update mechanism to determine that update is required according to a thermal broadcast sent after the patch packet is received and generated; an active pulling updating mechanism can be adopted, and the patch package is actively pulled to update according to a starting instruction of a user.
Step 802, executing a patch package to update the cloud game.
Specifically, after the patch package is obtained, the method is executed to update the file of the cloud game, which is not described herein.
A seventh embodiment of the present invention relates to a thermal update system for a cloud game.
As shown in fig. 9, the cloud game heat update system according to the present embodiment includes: the first server and the second server, specifically, the second server may have a plurality of servers.
The first server responds to a game starting instruction of the user side and executes:
determining whether the cloud game specified by the game instruction needs to be updated;
acquiring and executing an update file in response to determining that an update is required;
comparing the files corresponding to the cloud games before updating and after updating, and screening the newly added files after updating;
generating a patch package according to the newly added file for updating by a second server;
the second server, in response to determining that a cloud game needs to be updated, performs:
obtaining a patch package corresponding to the cloud game, wherein the patch package comprises a newly added file during updating;
the patch package is executed to update the cloud game.
It should be further noted that, the thermal update system in this embodiment may further include a thermal update server, where after the first server generates the patch package, the patch package is sent to a dedicated thermal update server, and then the thermal update server pushes the patch package to the second server. In practical application, the number of the second servers may be more, and when the thermal more servers push, a partial range may be selected to push preferentially, and other delayed pushing is performed, even not pushing is performed, so that possible network congestion is avoided.
Those skilled in the art will appreciate that all or part of the steps in implementing the methods of the embodiments described above may be implemented by a program stored in a storage medium, where the program includes several instructions for causing a device (which may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps in the methods of the embodiments described herein. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples of carrying out the invention and that various changes in form and details may be made therein without departing from the spirit and scope of the invention.

Claims (10)

1. A method for thermally updating a cloud game, comprising:
responding to a game starting instruction of a user side, and determining whether cloud games designated by the game instruction need to be updated or not;
acquiring and executing an update file in response to determining that an update is required;
comparing the files corresponding to the cloud games before updating and after updating, and screening the newly added files after updating;
and generating a patch package according to the newly added file for updating by other servers.
2. The method for hot updating a cloud game according to claim 1, wherein the updated newly added files are screened out by comparing the files before updating with the files after updating in the following manner:
comparing the file state diagrams of the tree structures before and after updating; or,
by comparing the updated file list with the updated file list.
3. The method for hot update of a cloud game according to claim 2, wherein the file state diagram of the tree structure of the cloud game is acquired by:
recording a root directory of the cloud game as a root node;
traversing all files under the cloud game directory, and recording the file name or the identification number of the file as a leaf node;
if a file is located in the root directory, a leaf node corresponding to the file is connected with the root node;
if a file is not located in the root directory, the absolute path of the file is recorded and used as a non-leaf node between the leaf node corresponding to the file and the root node.
4. The method of claim 1, wherein the frequency at which the other servers initiate the cloud game is above a threshold.
5. The method of claim 4, wherein the starting frequency of the cloud game on a server is calculated by the following formula:
wherein the saidRepresenting the starting frequency of game i on server j, said +.>Representing the number of times game i is opened on server j within a preset period of time, said +.>And indicating the number of registered users of the server j in the preset time.
6. The method of claim 1, wherein the cloud game specified by the game instruction is determined to need to be updated by:
a soft link is found indicating that an update file exists.
7. A method for thermally updating a cloud game, comprising:
in response to determining that a cloud game needs to be updated, acquiring a patch package corresponding to the cloud game, which is generated by the cloud game thermal updating method according to any one of claims 1 to 6, wherein the patch package comprises a file newly added during updating;
and executing the patch package to update the cloud game.
8. The method of hot updating a cloud game of claim 7, wherein the patch package is generated by:
when a server updates the cloud game through the updated file, comparing the file corresponding to the cloud game before updating and the file corresponding to the cloud game after updating, and screening the newly added file after updating;
and generating a patch package according to the newly added file.
9. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the method of hot updating a cloud game according to any one of claims 1 to 6 or the method of hot updating a cloud game according to any one of claims 7 to 8.
10. A cloud gaming update system, comprising: a first server and a second server;
the first server responds to a game starting instruction of a user side and executes:
determining whether the cloud game designated by the game instruction needs to be updated;
acquiring and executing an update file in response to determining that an update is required;
comparing the files corresponding to the cloud games before updating and after updating, and screening the newly added files after updating;
generating a patch package according to the newly added file for updating by the second server;
the second server, in response to determining that a cloud of games needs to be updated, performs:
obtaining a patch package corresponding to the cloud game, wherein the patch package comprises a file which is newly added during updating;
and executing the patch package to update the cloud game.
CN201911032330.8A 2019-10-28 2019-10-28 Cloud game hot updating method, system and readable storage medium Active CN111045715B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911032330.8A CN111045715B (en) 2019-10-28 2019-10-28 Cloud game hot updating method, system and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911032330.8A CN111045715B (en) 2019-10-28 2019-10-28 Cloud game hot updating method, system and readable storage medium

Publications (2)

Publication Number Publication Date
CN111045715A CN111045715A (en) 2020-04-21
CN111045715B true CN111045715B (en) 2024-02-23

Family

ID=70232845

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911032330.8A Active CN111045715B (en) 2019-10-28 2019-10-28 Cloud game hot updating method, system and readable storage medium

Country Status (1)

Country Link
CN (1) CN111045715B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111694583B (en) * 2020-05-08 2023-12-19 广州微算互联信息技术有限公司 Cloud game updating method, cloud game updating system and storage medium
CN112596772A (en) * 2020-12-15 2021-04-02 上海米哈游网络科技股份有限公司 Server updating method and device, electronic equipment and storage medium
CN112686002B (en) * 2020-12-25 2024-06-07 珠海西山居数字科技有限公司 File processing method and device
CN112732317B (en) * 2021-01-11 2024-05-17 珠海金山数字网络科技有限公司 Method, device and medium for accelerating packet discharging speed of Unity-based 3D project
CN113900681A (en) * 2021-08-13 2022-01-07 西安万像电子科技有限公司 Zero-terminal software updating method, electronic device and storage medium
CN114917577B (en) * 2022-06-07 2024-08-09 北京蔚领时代科技有限公司 Cloud game data updating method and device, electronic equipment and storage medium
CN115309434A (en) * 2022-10-12 2022-11-08 北京蔚领时代科技有限公司 Cloud game service end batch updating system
CN116339791B (en) * 2023-05-31 2023-09-01 海马云(天津)信息技术有限公司 Cloud application updating method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103002010A (en) * 2012-10-29 2013-03-27 北京奇虎科技有限公司 Method, device and system for updating data based on incremental data
CN106933630A (en) * 2017-03-09 2017-07-07 百度在线网络技术(北京)有限公司 A kind of client side upgrading method, device, equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103002010A (en) * 2012-10-29 2013-03-27 北京奇虎科技有限公司 Method, device and system for updating data based on incremental data
CN106933630A (en) * 2017-03-09 2017-07-07 百度在线网络技术(北京)有限公司 A kind of client side upgrading method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN111045715A (en) 2020-04-21

Similar Documents

Publication Publication Date Title
CN111045715B (en) Cloud game hot updating method, system and readable storage medium
CN105511889B (en) Universal game version increment updating system and method
CN112822050B (en) Method and apparatus for deploying network slices
CN111054067B (en) Game archive file storage method, electronic device and storage medium
EP3873066A1 (en) Method for managing resource state information, and resource downloading system
CN104052803A (en) Decentralized distributed rendering method and system
CN108307198A (en) flow service node dispatching method, device and scheduling node
WO2006046486A1 (en) Resource management system, resource information providing method, and program
CN110933036B (en) Cloud game service system and server
GB2528672A (en) Push-based transmission of resources and correlated network quality estimation
CN101626304A (en) Method for realizing multimedia instant play under P2P protocol and device thereof
CN112311874B (en) Media data processing method and device, storage medium and electronic equipment
US20140115098A1 (en) Methods, systems, and media for stored content distribution and access
CN111443985A (en) Method and equipment for instantiating virtual network function
CN114143371B (en) Screen projection method and device, storage medium and electronic equipment
CN106254561A (en) The real-time offline download method of a kind of Internet resources file and system
WO2018233190A1 (en) Media segment downloading method, terminal, and computer readable storage medium
CN107844597B (en) Game application management method, electronic device and computer readable medium
CN111935242A (en) Data transmission method, device, server and storage medium
CN111212087A (en) Method, device, equipment and storage medium for determining login server
CN115054912A (en) Cloud game resource scheduling method, client, equipment and storage medium
CN109348256B (en) Data transmission method and server
CN101958934B (en) Electronic program guide incremental content synchronization method, device and system
CN115002495A (en) Animation processing method and device
CN110166834B (en) Data playing method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant