Game acceleration method, device, server and storage medium

文档序号:427731 发布日期:2021-12-24 浏览:5次 中文

阅读说明:本技术 游戏加速方法、装置、服务器及存储介质 (Game acceleration method, device, server and storage medium ) 是由 汪晨 于 2021-09-09 设计创作,主要内容包括:本申请涉及互联网技术领域,本申请实施例公开了一种游戏加速方法、装置、服务器及存储介质,该方法包括:接收电子设备发送的针对目标游戏的游戏加速请求,游戏加速请求携带电子设备的第一网络参数;确定电子设备对应的数据中转设备,该数据中转设备与电子设备之间通过局域网实现通信;确定数据中转设备的第二网络参数;获取第一目标游戏数据;根据第一网络参数和第二网络参数将第一目标游戏数据配置为第一游戏数据和第二游戏数据;将第一游戏数据发送给电子设备;将第二游戏数据发送给数据中转设备,再指示数据中转设备通过局域网将第二游戏数据转发给电子设备。采用本申请实施例可以实现游戏加速。(The application relates to the technical field of internet, and the embodiment of the application discloses a game acceleration method, a game acceleration device, a server and a storage medium, wherein the method comprises the following steps: receiving a game acceleration request aiming at a target game sent by electronic equipment, wherein the game acceleration request carries a first network parameter of the electronic equipment; determining data transfer equipment corresponding to the electronic equipment, wherein the data transfer equipment and the electronic equipment realize communication through a local area network; determining a second network parameter of the data transfer equipment; acquiring first target game data; configuring the first target game data into first game data and second game data according to the first network parameters and the second network parameters; transmitting the first game data to the electronic device; and sending the second game data to the data transfer equipment, and then indicating the data transfer equipment to transfer the second game data to the electronic equipment through the local area network. By adopting the embodiment of the application, the game acceleration can be realized.)

1. A game acceleration method applied to a server, the method comprising:

receiving a game acceleration request aiming at a target game sent by electronic equipment, wherein the game acceleration request carries a first network parameter of the electronic equipment;

determining data transfer equipment corresponding to the electronic equipment, wherein the data transfer equipment and the electronic equipment realize communication through a local area network;

determining a second network parameter of the data transfer equipment;

acquiring first target game data;

configuring the first target game data into first game data and second game data according to the first network parameter and the second network parameter;

sending the first game data to the electronic device;

and sending the second game data to the data transfer equipment, and then instructing the data transfer equipment to transfer the second game data to the electronic equipment through the local area network.

2. The method of claim 1, wherein configuring the first target game data into first game data and second game data according to the first network parameter and the second network parameter comprises:

determining a first evaluation value of a first data transmission link between the server and the electronic equipment according to the first network parameter;

determining a second evaluation value of a second data transmission link between the server and the data transfer equipment according to the second network parameter;

determining a target distribution proportion coefficient according to the first evaluation value and the second evaluation value;

configuring the first target game data into the first game data and the second game data according to the target allocation proportion coefficient.

3. The method according to claim 1 or 2, wherein the determining of the data relay device corresponding to the electronic device includes:

acquiring M devices of a local area network where the electronic device is located, wherein M is a positive integer;

determining the network rate of each device in the M devices to obtain M network rates;

and selecting the equipment corresponding to the maximum value of the M network rates as the data transfer equipment.

4. The method of claim 1 or 2, wherein the obtaining first target game data comprises:

acquiring target hardware parameters and a target user level of the electronic equipment;

determining a first data distribution amount corresponding to the target user level according to a mapping relation between a preset user level and the data distribution amount;

determining a target device score corresponding to the target hardware parameter;

determining a target capability coefficient corresponding to the target equipment score according to a preset mapping relation between the equipment score and the capability coefficient;

determining a second data distribution amount according to the target capacity coefficient and the first data distribution amount;

and acquiring the first target game data according to the second data distribution amount.

5. The method according to claim 1 or 2, characterized in that the method further comprises:

and receiving third game data sent by the data transfer equipment and fourth game data sent by the electronic equipment, wherein the third game data and the fourth game data are configured by the electronic equipment according to the game data uploaded by the electronic equipment as required.

6. A game acceleration apparatus applied to a server, the apparatus comprising: a receiving unit, a first determining unit, a second determining unit, an obtaining unit, a configuring unit, a first sending unit and a second sending unit, wherein,

the receiving unit is used for receiving a game acceleration request aiming at a target game and sent by electronic equipment, wherein the game acceleration request carries a first network parameter of the electronic equipment;

the first determining unit is configured to determine a data transfer device corresponding to the electronic device, where the data transfer device and the electronic device implement communication through a local area network;

the second determining unit is configured to determine a second network parameter of the data transfer device;

the acquisition unit is used for acquiring first target game data;

the configuration unit is used for configuring the first target game data into first game data and second game data according to the first network parameters and the second network parameters;

the first sending unit is used for sending the first game data to the electronic equipment;

the second sending unit is configured to send the second game data to the data transfer device, and then instruct the data transfer device to forward the second game data to the electronic device through the local area network.

7. The apparatus according to claim 6, wherein, in said configuring the first target game data into first game data and second game data according to the first network parameter and the second network parameter, the configuring unit is specifically configured to:

determining a first evaluation value of a first data transmission link between the server and the electronic equipment according to the first network parameter;

determining a second evaluation value of a second data transmission link between the server and the data transfer equipment according to the second network parameter;

determining a target distribution proportion coefficient according to the first evaluation value and the second evaluation value;

configuring the first target game data into the first game data and the second game data according to the target allocation proportion coefficient.

8. The apparatus according to claim 6 or 7, wherein, in the aspect of determining the data relay device corresponding to the electronic device, the first determining unit is specifically configured to:

acquiring M devices of a local area network where the electronic device is located, wherein M is a positive integer;

determining the network rate of each device in the M devices to obtain M network rates;

and selecting the equipment corresponding to the maximum value of the M network rates as the data transfer equipment.

9. A server, comprising a processor, a memory for storing one or more programs and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-5.

10. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-5.

Technical Field

The application relates to the technical field of internet, in particular to a game acceleration method, a game acceleration device, a server and a storage medium.

Background

With the rapid development of internet technologies and electronic devices (such as mobile phones, tablet computers, and the like), electronic devices have become an integral part of the life of users, and at present, more and more online games are deeply favored by users, but sometimes, due to the limitation of network speed, the game experience is not good, and therefore, the problem of how to accelerate the game needs to be solved urgently.

Disclosure of Invention

The embodiment of the application provides a game acceleration method, a game acceleration device, a server and a storage medium, and the game acceleration can be realized.

In a first aspect, an embodiment of the present application provides a game acceleration method, which is applied to a server, and the method includes:

receiving a game acceleration request aiming at a target game sent by electronic equipment, wherein the game acceleration request carries a first network parameter of the electronic equipment;

determining data transfer equipment corresponding to the electronic equipment, wherein the data transfer equipment and the electronic equipment realize communication through a local area network;

determining a second network parameter of the data transfer equipment;

acquiring first target game data;

configuring the first target game data into first game data and second game data according to the first network parameter and the second network parameter;

sending the first game data to the electronic device;

and sending the second game data to the data transfer equipment, and then instructing the data transfer equipment to transfer the second game data to the electronic equipment through the local area network.

In a second aspect, an embodiment of the present application provides a game acceleration apparatus, which is applied to a server, and the apparatus includes: a receiving unit, a first determining unit, a second determining unit, an obtaining unit, a configuring unit, a first sending unit and a second sending unit, wherein,

the receiving unit is used for receiving a game acceleration request aiming at a target game and sent by electronic equipment, wherein the game acceleration request carries a first network parameter of the electronic equipment;

the first determining unit is configured to determine a data transfer device corresponding to the electronic device, where the data transfer device and the electronic device implement communication through a local area network;

the second determining unit is configured to determine a second network parameter of the data transfer device;

the acquisition unit is used for acquiring first target game data;

the configuration unit is used for configuring the first target game data into first game data and second game data according to the first network parameters and the second network parameters;

the first sending unit is used for sending the first game data to the electronic equipment;

the second sending unit is configured to send the second game data to the data transfer device, and then instruct the data transfer device to forward the second game data to the electronic device through the local area network.

In a third aspect, an embodiment of the present application provides a server, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in the first aspect of the embodiment of the present application.

In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program enables a computer to perform some or all of the steps described in the first aspect of the embodiment of the present application.

In a fifth aspect, embodiments of the present application provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to perform some or all of the steps as described in the first aspect of the embodiments of the present application. The computer program product may be a software installation package.

The embodiment of the application has the following beneficial effects:

it can be seen that, in the game acceleration method, apparatus, server, and storage medium described in the embodiments of the present application, a game acceleration request for a target game sent by an electronic device is received, where the game acceleration request carries a first network parameter of the electronic device, a data relay device corresponding to the electronic device is determined, communication between the data relay device and the electronic device is implemented through a local area network, a second network parameter of the data relay device is determined, first target game data is obtained, the first target game data is configured into first game data and second game data according to the first network parameter and the second network parameter, the first game data is sent to the electronic device, the second game data is sent to the data relay device, and then the data relay device is instructed to forward the second game data to the electronic device through the local area network, so that in a game acceleration process, the method comprises the steps of determining data transfer equipment in the local area network, distributing game data through the data transfer equipment and the electronic equipment, and transmitting the game data received by the data transfer equipment to the electronic equipment through the local area network at a high speed, so that the electronic equipment can receive the game data quickly, the game acceleration effect is achieved, and the user experience is improved.

Drawings

In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.

FIG. 1 is a flow chart of a game acceleration method provided by an embodiment of the present application;

FIG. 2 is a schematic diagram of a scenario of a game acceleration system provided in an embodiment of the present application;

FIG. 3 is a flow chart of another game acceleration method provided by the embodiment of the present application;

fig. 4 is a schematic structural diagram of a server provided in an embodiment of the present application;

fig. 5 is a block diagram illustrating functional units of a game acceleration device according to an embodiment of the present disclosure.

Detailed Description

In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.

Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.

The following describes embodiments of the present application in detail.

Referring to fig. 1, fig. 1 is a schematic flow chart of a game acceleration method provided in an embodiment of the present application, and as shown in the figure, the game acceleration method is applied to a server, and includes:

101. receiving a game acceleration request aiming at a target game and sent by electronic equipment, wherein the game acceleration request carries a first network parameter of the electronic equipment.

The target game may be any network game, such as royal glory, magic beasts, stimulating battlefield, CS, etc., and is not limited herein.

Wherein the first network parameter may include at least one of: network bandwidth, network latency, network rate, packet loss rate, etc., without limitation.

In a specific implementation, the server may include at least one of: a game platform, a game server, a game acceleration server, etc., without limitation. Specifically, the electronic device may start a game acceleration function, and further, after the game acceleration function is started, a game acceleration request may be sent to the server, where the game acceleration request may carry the first network parameter of the electronic device.

102. And determining data transfer equipment corresponding to the electronic equipment, wherein the data transfer equipment and the electronic equipment realize communication through a local area network.

The data transfer device and the electronic device may be in the same local area network, and communication between the data transfer device and the electronic device may be achieved through the local area network.

The specific communication mode between the data relay device and the electronic device may include at least one of the following: bluetooth communication, visible light communication, Ultra Wide Band (UWB) communication, millimeter wave communication, infrared communication, and the like, which are not limited herein. As shown in fig. 2, the server communicates with the data relay device and the electronic device via the internet, and the data relay device communicates with the electronic device via the lan. The electronic device may be any device with a communication function, such as a mobile phone, a tablet computer, and the like. The data transfer device may also be any device having a communication function, for example, a mobile phone, a tablet computer, an intelligent home device, an internet of things device, and the like, which is not limited herein. Certainly, the data relay device may store the game data in advance, that is, the server may transmit the game data that needs to be updated later and some game frame data after the current game frame time to the data relay device in advance, so that the data relay device may be regarded as a local server role or a local cloud role, and for the updated game data, the game update may be implemented when the electric quantity of the electronic device is sufficient, or a specified time period is available, or the electronic device is connected to wireless fidelity (Wi-Fi). The specified time period may be set by default by the system or at the user's discretion.

The data transfer device and the electronic device may be bound to each other, after connection communication is established between the electronic device and the server, the data transfer device may also establish communication with the server, and the electronic device and the data transfer device may share one game account number, that is, in the view of the server, the data transfer device and the electronic device may be regarded as one user.

Wherein, the data transfer device may also be designated by the user. Or, before performing step 101, the data relay device may select one device in the local area network as the data relay device by the electronic device, and the second network parameter may also be obtained by performing communication between the electronic device and the data relay device.

Optionally, in step 102, determining the data transfer device corresponding to the electronic device may include the following steps:

21. acquiring M devices of a local area network where the electronic device is located, wherein M is a positive integer;

22. determining the network rate of each device in the M devices to obtain M network rates;

23. and selecting the equipment corresponding to the maximum value of the M network rates as the data transfer equipment.

In a specific implementation, the server may obtain network topology map information of a local area network where the electronic device is located, and then may carry the network topology map information in the game acceleration request, and further, the server may determine, based on the network topology map information, M devices of the local area network where the electronic device is located, where M is a positive integer, and the M devices may be part or all of the devices of the local area network where the electronic device is located. Furthermore, the server can determine the network rate of each device in the M devices to obtain the M network rates, and specifically, the server can communicate with the M devices, and further, the network rate of each device in the M devices can be obtained through communication interaction, and then the device corresponding to the maximum value in the M network rates is selected as the data transfer device.

103. And determining a second network parameter of the data transfer equipment.

Wherein the second network parameter may include at least one of: network bandwidth, network latency, network rate, packet loss rate, etc., without limitation. The server may establish network communication with the data relay device, and further, the server may send a network parameter acquisition request to the data relay device, and the data relay device may send the second network parameter to the data relay device after receiving the network parameter acquisition request.

104. First target game data is acquired.

The first target game data may be game data sent by the server side to the electronic device side, and the game data may include at least one of the following: game rendering data, game upgrade data packet data, game update data (e.g., operation data for other characters in the battle game), game push data, and the like, without limitation.

Optionally, in the step 104, acquiring the first target game data may include the following steps:

41. acquiring target hardware parameters and a target user level of the electronic equipment;

42. determining a first data distribution amount corresponding to the target user level according to a mapping relation between a preset user level and the data distribution amount;

43. determining a target device score corresponding to the target hardware parameter;

44. determining a target capability coefficient corresponding to the target equipment score according to a preset mapping relation between the equipment score and the capability coefficient;

45. determining a second data distribution amount according to the target capacity coefficient and the first data distribution amount;

46. and acquiring the first target game data according to the second data distribution amount.

The target user level may be a member level or a character level, for example, if the member level is different, the game resources enjoyed by the member level are different, or if the character level is different, the game resources required by the character level are different. The target hardware parameters may include at least one of: device model, memory, Central Processing Unit (CPU) parameters, Graphics Processing Unit (GPU) parameters, and the like, without limitation. Both the target hardware parameters of the electronic device and the target user level may be carried in the game acceleration request. The server may also store a mapping relationship between a preset user level and a data distribution amount, and a mapping relationship between a preset device score and a capability coefficient in advance.

Specifically, the server may obtain a target hardware parameter and a target user level of the electronic device, and then determine a first data distribution amount corresponding to the target user level according to a mapping relationship between a preset user level and the data distribution amount, where the data distribution amount may be understood as a data amount that needs to be interacted with the electronic device at a current time or at one or more times after the current time.

Furthermore, the server may further determine a target device score corresponding to the target hardware parameter, and different hardware configurations, where the corresponding device scores are different, specifically, the server may pre-store a mapping relationship between the hardware parameter and the device score, further, may determine a target device score corresponding to the target hardware parameter based on the mapping relationship, and then determine a target capability coefficient corresponding to the target device score according to a mapping relationship between the preset device score and the capability coefficient, where the capability may be understood as a data capability that the device can bear or a capability that can implement data update, that is, "digestive capability" of the electronic device, and a value range of the capability coefficient may be between 0 and 1, for example, although the server may implement sending more game data to the electronic device, the server may also waste server resources if the device configuration is lagged and cannot be quickly digested, therefore, the game data resources can be distributed according to needs by combining the self condition of the equipment, personalized acceleration is realized, namely, the acceleration is deeply matched with the self condition of the equipment, and the aim of maximally accelerating the game is fulfilled under the condition of not wasting server resources.

Furthermore, the server may determine a second data distribution amount according to the target capability coefficient and the first data distribution amount, where the second data distribution amount is the first data distribution amount — the target capability coefficient, and further, may obtain the first target game data according to the second data distribution amount, and may store a large amount of game resources in the server, and then may obtain corresponding game data as needed based on the second data distribution amount, so that game resources may be distributed according to the device's own condition, thereby reducing waste of game resources as much as possible, and also ensuring that the electronic device may achieve the purpose of maximizing game acceleration, which is beneficial to improving user experience.

105. Configuring the first target game data into first game data and second game data according to the first network parameter and the second network parameter.

The server and the electronic equipment perform data transmission through a first data transmission link, and the server and the data transfer equipment perform data transmission through a second data transmission link.

Specifically, the server may determine a resource configuration coefficient between the two data transmission links based on the first network parameter and the second network parameter, divide the game data into two data sets based on the resource configuration coefficient, and implement data transmission through the two data transmission links, respectively.

Optionally, in step 105, configuring the first target game data into the first game data and the second game data according to the first network parameter and the second network parameter may include the following steps:

51. determining a first evaluation value of a first data transmission link between the server and the electronic equipment according to the first network parameter;

52. determining a second evaluation value of a second data transmission link between the server and the data transfer equipment according to the second network parameter;

53. determining a target distribution proportion coefficient according to the first evaluation value and the second evaluation value;

54. configuring the first target game data into the first game data and the second game data according to the target allocation proportion coefficient.

In a specific implementation, the network parameter may be used to implement channel quality evaluation, for example, the faster the network rate is, the higher the channel quality is, the mapping relationship between the network parameter and the evaluation value may be stored in advance in the server, and further, based on the mapping relationship, a first evaluation value of a first data transmission link between the server and the electronic device may be determined according to the first network parameter, and a second evaluation value of a second data transmission link between the server and the data relay device may be determined according to the second network parameter, and then, a target distribution proportion coefficient may be determined according to the first evaluation value and the second evaluation value, where the target distribution proportion coefficient is the first evaluation value/the second evaluation value, and the first target game data is configured as the first game data and the second game data according to the target distribution proportion coefficient, for example, the target distribution proportion coefficient is a/B, the first game data is a, the second game data is B, and either the first game data or the second game data may be a data set or may include at least one data packet.

106. And sending the first game data to the electronic equipment.

In a specific implementation, a first data transmission link may be established between the server and the electronic device, and the first game data may be sent to the electronic device through the first data transmission link.

107. And sending the second game data to the data transfer equipment, and then instructing the data transfer equipment to transfer the second game data to the electronic equipment through the local area network.

And the server and the data transfer equipment can establish a second data transmission link, and the second data transmission link can realize the transmission of the second game data to the data transfer equipment. The electronic equipment can realize functions such as rendering, game updating and the like according to the first game data and the second game data, is favorable for improving the game speed, can ensure the experience of the online game under the condition of poor network speed, and is favorable for improving the user experience. When the number of the data transfer devices is multiple, the server can divide the first game data into multiple shares, and then the multiple data transfer devices respectively transfer the corresponding game data, so that the advantages of the local area network can be fully utilized, the game data can be rapidly transmitted, and the purpose of accelerating the game is achieved.

Optionally, the method may further include the following steps:

and receiving third game data sent by the data transfer equipment and fourth game data sent by the electronic equipment, wherein the third game data and the fourth game data are configured by the electronic equipment according to the game data uploaded by the electronic equipment as required.

The electronic device can also upload data which needs to be synchronized, namely second target game data, to the server, and the second target game data can be used for updating data of other game players, and similarly, the electronic device can divide the second target game data into third game data and fourth game data, send the third game data to the data transfer device, and send the data transfer data to the server, and meanwhile, send the fourth game data to the server, so that the server can receive the third game data sent by the data transfer device and the fourth game data sent by the electronic device, and synchronize the game data of the third game data and the fourth game data sent by the electronic device to other game players, and further, the network rate of the whole game process is ensured, the network game experience is facilitated to be improved, and the user experience is improved.

It can be seen that, in the game acceleration method described in the embodiment of the present application, a game acceleration request for a target game sent by an electronic device is received, where the game acceleration request carries a first network parameter of the electronic device, a data relay device corresponding to the electronic device is determined, communication between the data relay device and the electronic device is implemented through a local area network, a second network parameter of the data relay device is determined, first target game data is obtained, the first target game data is configured into first game data and second game data according to the first network parameter and the second network parameter, the first game data is sent to the electronic device, the second game data is sent to the data relay device, and then the data relay device is instructed to forward the second game data to the electronic device through the local area network, so that, in the game acceleration process, a data relay device in the local area network is determined, and then the game data are distributed together through the data transfer equipment and the electronic equipment, and the game data received by the data transfer equipment are transmitted to the electronic equipment through the local area network at a high speed, so that the electronic equipment can quickly receive the game data, the game acceleration effect is realized, and the user experience is improved.

Referring to fig. 3, fig. 3 is a schematic flow chart of a game acceleration method according to an embodiment of the present application, where as shown in the figure, the game acceleration method includes:

301. receiving a game acceleration request aiming at a target game and sent by electronic equipment, wherein the game acceleration request carries a first network parameter of the electronic equipment.

302. And determining data transfer equipment corresponding to the electronic equipment, wherein the data transfer equipment and the electronic equipment realize communication through a local area network.

303. And determining a second network parameter of the data transfer equipment.

304. First target game data is acquired.

305. Configuring the first target game data into first game data and second game data according to the first network parameter and the second network parameter.

306. And sending the first game data to the electronic equipment.

307. And sending the second game data to the data transfer equipment, and then instructing the data transfer equipment to transfer the second game data to the electronic equipment through the local area network.

308. And receiving third game data sent by the data transfer equipment and fourth game data sent by the electronic equipment, wherein the third game data and the fourth game data are configured by the electronic equipment according to the game data uploaded by the electronic equipment as required.

The detailed description of steps 301 to 308 may refer to the corresponding steps of the game acceleration method described in fig. 1, and will not be described herein again.

It can be seen that the game acceleration method described in the embodiment of the present application can determine the data transfer device in the local area network during the game acceleration process, distribute the game data through the data transfer device and the electronic device, and transmit the game data received by the data transfer device to the electronic device through the local area network at a high speed, and based on a similar principle, can receive the game data that the electronic device needs to upload, so that the electronic device can not only receive the game data quickly, but also can ensure the game synchronization of other roles of the online game, thereby achieving the game acceleration effect and improving the user experience.

Referring to fig. 4, in accordance with the above-mentioned embodiment, fig. 4 is a schematic structural diagram of a server provided in this embodiment, as shown in the figure, the server includes a processor, a memory, a communication interface, and one or more programs, the one or more programs are stored in the memory and configured to be executed by the processor, and in this embodiment, the programs include instructions for performing the following steps:

receiving a game acceleration request aiming at a target game sent by electronic equipment, wherein the game acceleration request carries a first network parameter of the electronic equipment;

determining data transfer equipment corresponding to the electronic equipment, wherein the data transfer equipment and the electronic equipment realize communication through a local area network;

determining a second network parameter of the data transfer equipment;

acquiring first target game data;

configuring the first target game data into first game data and second game data according to the first network parameter and the second network parameter;

sending the first game data to the electronic device;

and sending the second game data to the data transfer equipment, and then instructing the data transfer equipment to transfer the second game data to the electronic equipment through the local area network.

Optionally, in the configuring the first target game data into the first game data and the second game data according to the first network parameter and the second network parameter, the program includes instructions for performing the following steps:

determining a first evaluation value of a first data transmission link between the server and the electronic equipment according to the first network parameter;

determining a second evaluation value of a second data transmission link between the server and the data transfer equipment according to the second network parameter;

determining a target distribution proportion coefficient according to the first evaluation value and the second evaluation value;

configuring the first target game data into the first game data and the second game data according to the target allocation proportion coefficient.

Optionally, in the aspect of determining the data transfer device corresponding to the electronic device, the program includes instructions for executing the following steps:

acquiring M devices of a local area network where the electronic device is located, wherein M is a positive integer;

determining the network rate of each device in the M devices to obtain M network rates;

and selecting the equipment corresponding to the maximum value of the M network rates as the data transfer equipment.

Optionally, in the aspect of acquiring the first target game data, the program includes instructions for performing the following steps:

acquiring target hardware parameters and a target user level of the electronic equipment;

determining a first data distribution amount corresponding to the target user level according to a mapping relation between a preset user level and the data distribution amount;

determining a target device score corresponding to the target hardware parameter;

determining a target capability coefficient corresponding to the target equipment score according to a preset mapping relation between the equipment score and the capability coefficient;

determining a second data distribution amount according to the target capacity coefficient and the first data distribution amount;

and acquiring the first target game data according to the second data distribution amount.

Optionally, the program further includes instructions for performing the following steps:

and receiving third game data sent by the data transfer equipment and fourth game data sent by the electronic equipment, wherein the third game data and the fourth game data are configured by the electronic equipment according to the game data uploaded by the electronic equipment as required.

It can be seen that, in the game acceleration method described in the embodiment of the present application, a game acceleration request for a target game sent by an electronic device is received, where the game acceleration request carries a first network parameter of the electronic device, a data relay device corresponding to the electronic device is determined, communication between the data relay device and the electronic device is implemented through a local area network, a second network parameter of the data relay device is determined, first target game data is obtained, the first target game data is configured into first game data and second game data according to the first network parameter and the second network parameter, the first game data is sent to the electronic device, the second game data is sent to the data relay device, and then the data relay device is instructed to forward the second game data to the electronic device through the local area network, so that, in the game acceleration process, a data relay device in the local area network is determined, and then the game data are distributed together through the data transfer equipment and the electronic equipment, and the game data received by the data transfer equipment are transmitted to the electronic equipment through the local area network at a high speed, so that the electronic equipment can quickly receive the game data, the game acceleration effect is realized, and the user experience is improved.

Fig. 5 is a block diagram showing functional units of a game acceleration device 500 according to an embodiment of the present application. The game acceleration device 500 is applied to a server, and the device 500 comprises: a receiving unit 501, a first determining unit 502, a second determining unit 503, an obtaining unit 504, a configuring unit 505, a first sending unit 506 and a second sending unit 507, wherein,

the receiving unit 501 is configured to receive a game acceleration request for a target game sent by an electronic device, where the game acceleration request carries a first network parameter of the electronic device;

the first determining unit 502 is configured to determine a data relay device corresponding to the electronic device, where the data relay device and the electronic device implement communication through a local area network;

the second determining unit 503 is configured to determine a second network parameter of the data relay device;

the acquiring unit 504 is configured to acquire first target game data;

the configuration unit 505 is configured to configure the first target game data into first game data and second game data according to the first network parameter and the second network parameter;

the first sending unit 506 is configured to send the first game data to the electronic device;

the second sending unit 507 is configured to send the second game data to the data relay device, and then instruct the data relay device to forward the second game data to the electronic device through the local area network.

Optionally, in the aspect of configuring the first target game data into the first game data and the second game data according to the first network parameter and the second network parameter, the configuration unit 505 is specifically configured to:

determining a first evaluation value of a first data transmission link between the server and the electronic equipment according to the first network parameter;

determining a second evaluation value of a second data transmission link between the server and the data transfer equipment according to the second network parameter;

determining a target distribution proportion coefficient according to the first evaluation value and the second evaluation value;

configuring the first target game data into the first game data and the second game data according to the target allocation proportion coefficient.

Optionally, in the aspect of determining the data transfer device corresponding to the electronic device, the first determining unit 502 is specifically configured to:

acquiring M devices of a local area network where the electronic device is located, wherein M is a positive integer;

determining the network rate of each device in the M devices to obtain M network rates;

and selecting the equipment corresponding to the maximum value of the M network rates as the data transfer equipment.

Optionally, in the aspect of acquiring the first target game data, the acquiring unit 504 is specifically configured to:

acquiring target hardware parameters and a target user level of the electronic equipment;

determining a first data distribution amount corresponding to the target user level according to a mapping relation between a preset user level and the data distribution amount;

determining a target device score corresponding to the target hardware parameter;

determining a target capability coefficient corresponding to the target equipment score according to a preset mapping relation between the equipment score and the capability coefficient;

determining a second data distribution amount according to the target capacity coefficient and the first data distribution amount;

and acquiring the first target game data according to the second data distribution amount.

Optionally, the apparatus 500 is further specifically configured to:

and receiving third game data sent by the data transfer equipment and fourth game data sent by the electronic equipment, wherein the third game data and the fourth game data are configured by the electronic equipment according to the game data uploaded by the electronic equipment as required.

It can be seen that, the game acceleration apparatus described in the embodiment of the present application receives a game acceleration request for a target game sent by an electronic device, where the game acceleration request carries a first network parameter of the electronic device, determines a data relay device corresponding to the electronic device, where the data relay device and the electronic device implement communication through a local area network, determines a second network parameter of the data relay device, obtains first target game data, configures the first target game data into first game data and second game data according to the first network parameter and the second network parameter, sends the first game data to the electronic device, sends the second game data to the data relay device, and instructs the data relay device to forward the second game data to the electronic device through the local area network, so that, in a game acceleration process, a data relay device in the local area network can be determined, and then the game data are distributed together through the data transfer equipment and the electronic equipment, and the game data received by the data transfer equipment are transmitted to the electronic equipment through the local area network at a high speed, so that the electronic equipment can quickly receive the game data, the game acceleration effect is realized, and the user experience is improved.

It can be understood that the functions of each program module of the game acceleration device of this embodiment can be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process thereof can refer to the related description of the foregoing method embodiment, which is not described herein again.

Embodiments of the present application also provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the methods as described in the above method embodiments.

Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package.

It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.

In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.

In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.

The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.

The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.

Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.

The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

18页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:游戏控制系统

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!

技术分类