CN114904265A - Data processing method, data processing device, storage medium and electronic equipment - Google Patents
Data processing method, data processing device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN114904265A CN114904265A CN202210438057.4A CN202210438057A CN114904265A CN 114904265 A CN114904265 A CN 114904265A CN 202210438057 A CN202210438057 A CN 202210438057A CN 114904265 A CN114904265 A CN 114904265A
- Authority
- CN
- China
- Prior art keywords
- target
- control instruction
- game picture
- picture control
- specified
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 18
- 238000000034 method Methods 0.000 claims description 17
- 238000003780 insertion Methods 0.000 claims description 6
- 230000037431 insertion Effects 0.000 claims description 6
- 230000002708 enhancing effect Effects 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 5
- 230000001360 synchronised effect Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
Images
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/25—Output arrangements for video game devices
- A63F13/26—Output arrangements for video game devices having at least one additional display device, e.g. on the game controller or outside a game booth
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/50—Controlling the output signals based on the game progress
- A63F13/52—Controlling the output signals based on the game progress involving aspects of the displayed game scene
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/80—Special adaptations for executing a specific game genre or game mode
- A63F13/822—Strategy games; Role-playing games
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/80—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
- A63F2300/8082—Virtual reality
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The present disclosure provides a data processing method, an apparatus, a storage medium and an electronic device, which relate to the field of cloud computing, and the specific technical scheme is as follows: receiving a target game picture control instruction sent by a target terminal device, wherein the target game picture control instruction comprises target identification information and a target timestamp of the target terminal device, the target terminal device is any one of N terminal devices connected with the server, and N is an integer greater than 1; determining a target game picture control instruction queue corresponding to the target terminal equipment according to the target identification information, wherein the target game picture control instruction queue comprises at least one game picture control instruction; inserting the target game picture control instruction into the target game picture control instruction queue according to the target timestamp; and executing all game picture control instructions in the target game picture control instruction queue according to time sequence. The invention is used for enhancing the game experience.
Description
Technical Field
The present disclosure relates to the field of cloud computing, and in particular, to a data processing method and apparatus, a storage medium, and an electronic device.
Background
When a user plays a game (e.g., a large 3D game) in a Virtual Reality (VR) device, a remote server (S-side) is used to render a game screen, and the VR device is equivalent to a remote display device, and the game screen rendered at the S-side is pulled away to the VR device for display by, for example, a universal video Transport Protocol (vGTP). When playing a large 3D game, the user needs to operate the game screen through the VR device, so that the control information of the VR device needs to be reversely injected to the S-side, so that the operation action of the user is reflected in the game of the S-side.
However, when a large 3D multiplayer game is played, only one game play screen is available, and in this case, the vGTP can distribute the game screen at the S terminal to a plurality of VR devices for display. Although a plurality of VR devices see the same screen, different VR devices need to operate different game characters to fight against each other, and thus control information of different VR devices needs to be reversely injected to the S-side.
However, how to ensure the synchronization of a plurality of pieces of reverse control information when the information is injected into the S-side, so as to keep the actions of the game characters consistent, thereby enhancing the game experience is an urgent problem to be solved.
Disclosure of Invention
The embodiment of the disclosure provides a data processing method, a data processing device, a storage medium and an electronic device, which can ensure the synchronization of a plurality of pieces of reverse control information when the information is injected into an S terminal, so that the actions of game characters are kept consistent, and the game experience is enhanced. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a data processing method, applied to a server, including:
receiving a target game picture control instruction sent by a target terminal device, wherein the target game picture control instruction comprises target identification information and a target timestamp of the target terminal device, the target terminal device is any one of N terminal devices connected with the server, and N is an integer greater than 1;
determining a target game picture control instruction queue corresponding to the target terminal equipment according to the target identification information, wherein the target game picture control instruction queue comprises at least one game picture control instruction;
inserting the target game picture control instruction into the target game picture control instruction queue according to the target timestamp;
and executing all game picture control instructions in the target game picture control instruction queue according to time sequence.
The data processing method provided by the embodiment of the disclosure can receive a target game picture control instruction sent by a target terminal device, wherein the target game picture control instruction includes target identification information and a target timestamp of the target terminal device, the target terminal device is any one of N terminal devices connected with the server, and N is an integer greater than 1; determining a target game picture control instruction queue corresponding to the target terminal equipment according to the target identification information, wherein the target game picture control instruction queue comprises at least one game picture control instruction; inserting the target game picture control instruction into the target game picture control instruction queue according to the target timestamp; and executing the game picture control instructions in the target game picture control instruction queue according to the time sequence, so that the synchronism of the same game picture operated by a plurality of terminal devices can be ensured, the action of the game role is kept consistent, and the game experience is enhanced.
In one embodiment, before receiving a target game screen control instruction sent by a target terminal device, the method further includes:
and carrying out time synchronization on the N terminal devices connected with the server.
By carrying out time synchronization on the N terminal devices connected with the server, the condition that the same game picture is not synchronized at different terminal devices due to time synchronization of different terminal devices can be effectively avoided, and game experience is enhanced.
In one embodiment, before receiving a target game screen control instruction sent by a target terminal device, the method further includes:
acquiring the current network delay;
after receiving a target game picture control instruction sent by a target terminal device, the method further comprises:
if a specified game picture control instruction sent by specified terminal equipment is received within a time length corresponding to the current network delay, determining a specified game picture control instruction queue corresponding to the specified terminal equipment according to specified identification information, wherein the specified terminal equipment is any one of the N terminal equipment except the target terminal equipment, and the specified game picture control instruction comprises specified identification information and a specified timestamp of the specified terminal equipment;
the inserting the target game screen control instruction into the target game screen control instruction queue according to the target timestamp comprises:
and if the specified game picture control instruction queue and the target game picture control instruction queue are the same queue, respectively inserting the target game picture control instruction and the specified game picture control instruction into the target game picture control instruction queue according to the target timestamp and the specified timestamp.
By acquiring network delay, when receiving a specified game picture control instruction sent by specified terminal equipment within a time length corresponding to the current network delay, determining a specified game picture control instruction queue corresponding to the specified terminal equipment according to specified identification information, and respectively inserting the target game picture control instruction and the specified game picture control instruction into the target game picture control instruction queue according to the target timestamp and the specified timestamp when the specified game picture control instruction queue and the target game picture control instruction queue are in the same queue, the problem that the same game picture displayed by different terminal equipment is not synchronous due to network delay can be avoided, and user experience is effectively improved.
In one embodiment, the determining a target game screen control instruction queue corresponding to the target terminal device according to the target identification information includes:
and determining a target game picture control instruction queue corresponding to the target terminal device according to a preset corresponding relation, wherein the preset corresponding relation is the corresponding relation between the identification information of the target game and the identification information of M terminal devices running the target game, M is an integer larger than 1, and M is smaller than or equal to N.
In one embodiment, the game screen control instructions in the target game screen control instruction queue are arranged according to respective time stamps, and the inserting the target game screen control instructions into the target game screen control instruction queue according to the target time stamps includes:
inserting the target game picture control instruction between a first game picture control instruction and a second game picture control instruction, wherein the first game picture control instruction is a game control instruction which is closest to the target timestamp and is before the target timestamp in the target game picture control instruction queue, and the second game picture control instruction is a game control instruction which is closest to the target timestamp and is after the target timestamp in the target game picture control instruction queue.
According to a second aspect of the embodiments of the present disclosure, there is provided a data processing apparatus applied to a server, including:
a control instruction receiving module, configured to receive a target game image control instruction sent by a target terminal device, where the game image control instruction includes target identification information and a target timestamp of the target terminal device, the target terminal device is any one of N terminal devices connected to the server, and N is an integer greater than 1;
a control instruction queue determining module, configured to determine, according to the target identification information, a target game picture control instruction queue corresponding to the target terminal device, where the target game picture control instruction queue includes at least one game picture control instruction;
the control instruction inserting module is used for inserting the target game picture control instruction into the target game picture control instruction queue according to the target timestamp;
and the control instruction execution module is used for executing the game image control instructions in the target game image control instruction queue according to the time sequence.
In one embodiment, the apparatus further comprises:
and the time synchronization module is used for carrying out time synchronization on the N terminal devices connected with the server.
In one embodiment, the apparatus further comprises:
the current network delay acquisition module is used for acquiring the current network delay;
the control instruction queue determining module is further configured to:
if a specified game picture control instruction sent by specified terminal equipment is received within a time length corresponding to the current network delay, determining a specified game picture control instruction queue corresponding to the specified terminal equipment according to specified identification information, wherein the specified terminal equipment is any one of the N terminal equipment except the target terminal equipment, and the specified game picture control instruction comprises specified identification information and a specified timestamp of the specified terminal equipment;
the control instruction insertion module is specifically configured to:
and if the specified game picture control instruction queue and the target game picture control instruction queue are the same queue, inserting the target game picture control instruction and the specified game picture control instruction into the target game picture control instruction queue according to the target timestamp and the specified timestamp respectively.
In one embodiment, the control instruction queue determination module is to:
and determining a target game picture control instruction queue corresponding to the target terminal device according to a preset corresponding relation, wherein the preset corresponding relation is the corresponding relation between the identification information of the target game and the identification information of M terminal devices running the target game, M is an integer larger than 1, and M is smaller than or equal to N.
In one embodiment, the game screen control instructions in the target game screen control instruction queue are arranged according to respective time stamp sequences, and the control instruction insertion module is configured to:
inserting the target game picture control instruction between a first game picture control instruction and a second game picture control instruction, wherein the first game picture control instruction is a game control instruction which is closest to the target timestamp and is before the target timestamp in the target game picture control instruction queue, and the second game picture control instruction is a game control instruction which is closest to the target timestamp and is after the target timestamp in the target game picture control instruction queue.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, which includes a processor and a memory, where at least one computer instruction is stored, and the instruction is loaded and executed by the processor to implement the steps executed in the data processing method according to any one of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored therein at least one computer instruction, which is loaded and executed by a processor to implement the steps performed in the data processing method of any one of the first aspect.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart of a data processing method provided by an embodiment of the present disclosure;
FIG. 2 is a block diagram of a data processing apparatus according to an embodiment of the present disclosure;
fig. 3 is a second structural diagram of a data processing apparatus according to an embodiment of the present disclosure;
fig. 4 is a block diagram of an electronic device provided in an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart of a data processing method provided by an embodiment of the present disclosure, and the method is applied to a server. As shown in fig. 1, the method includes:
s101, receiving a target game picture control instruction sent by a target terminal device, wherein the target game picture control instruction comprises target identification information and a target timestamp of the target terminal device, the target terminal device is any one terminal device in N terminal devices connected with the server, and N is an integer greater than 1.
Illustratively, in the present embodiment, the server is connected to N terminal devices, and can transmit the game screen to the N terminal devices, the game screen being operated by users of the N terminal devices, respectively. For example, when the user a, the user B, and the user C are users of the terminal device 1, the terminal device 2, and the terminal device 3, respectively, and the user a, the user B, and the user C watch one game screen (for example, royal glory) at the same time, the server transmits the game screen glory by the royal to the terminal device 1, the terminal device 2, and the terminal device 3, respectively, and establishes a preset correspondence relationship between the identification information of the royal glory game and the identification information of the 3 terminal devices (the terminal device 1, the terminal device 2, and the terminal device 3) running the royal glory game. For another example, when the user D, the user E, and the user F are users of the terminal device 4, the terminal device 5, and the terminal device 6, respectively, and the user D, the user E, and the user F watch one game screen (for example, absolutely taken), the server sends the absolutely taken game screen to the terminal device 4, the terminal device 5, and the terminal device 6, respectively, and establishes a preset corresponding relationship between the identification information of the absolutely taken game and the identification information of the 3 terminal devices (the terminal device 4, the terminal device 5, and the terminal device 6) running the absolutely taken game. In this embodiment, the terminal device may be a VR device, and may also be other devices such as a mobile phone, a computer, and a tablet, which is not limited in this embodiment.
Illustratively, in order to avoid the situation that the same game picture is not synchronized at different terminal devices due to time synchronization of different terminal devices, the server performs time synchronization on the N terminal devices connected to the server before receiving a target game picture control instruction sent by a target terminal device.
S102, determining a target game picture control instruction queue corresponding to the target terminal equipment according to the target identification information, wherein the target game picture control instruction queue comprises at least one game picture control instruction.
How to determine the target game picture control instruction queue corresponding to the target terminal device according to the target identification information is described below.
Illustratively, the target game picture control instruction queue corresponding to the target terminal device is determined according to a preset corresponding relationship, where the preset corresponding relationship is a corresponding relationship between identification information of a target game and identification information of M terminal devices running the target game, where M is an integer greater than 1, and M is less than or equal to N.
For example, if the target terminal device is a terminal device 1, a terminal device 2, and a terminal device 3 on which a game screen in which the royal glory is simultaneously displayed, that is, if the royal glory game is simultaneously executed on the terminal device 1, the terminal device 2, and the terminal device 3, the correspondence relationship between the identification information of the royal glory game and the identification information of the 3 terminal devices (the terminal device 1, the terminal device 2, and the terminal device 3) on which the royal glory game is executed is preset.
After receiving the target game picture control instruction sent by the target terminal device (terminal device 1), the server can determine a target game picture control instruction queue (game picture control instruction queue glowing by the royal) corresponding to the target identification information (identification information of terminal device 1) according to the preset corresponding relationship.
S103, inserting the target game picture control command into the target game picture control command queue according to the target timestamp.
Exemplarily, in this embodiment, the game picture control instructions in the target game picture control instruction queue are arranged according to respective time stamps, and the inserting the target game picture control instruction into the target game picture control instruction queue according to the target time stamp includes:
inserting the target game picture control instruction between a first game picture control instruction and a second game picture control instruction, wherein the first game picture control instruction is a game control instruction which is closest to the target timestamp and is before the target timestamp in the target game picture control instruction queue, and the second game picture control instruction is a game control instruction which is closest to the target timestamp and is after the target timestamp in the target game picture control instruction queue.
In one embodiment, before receiving a target game screen control instruction sent by a target terminal device, the method further includes:
acquiring the current network delay;
after receiving a target game picture control instruction sent by a target terminal device, the method further comprises:
if a specified game picture control instruction sent by specified terminal equipment is received within a time length corresponding to the current network delay, determining a specified game picture control instruction queue corresponding to the specified terminal equipment according to specified identification information, wherein the specified terminal equipment is any one of the N terminal equipment except the target terminal equipment, and the specified game picture control instruction comprises specified identification information and a specified timestamp of the specified terminal equipment;
the inserting the target game screen control instruction into the target game screen control instruction queue according to the target timestamp comprises:
and if the specified game picture control instruction queue and the target game picture control instruction queue are the same queue, respectively inserting the target game picture control instruction and the specified game picture control instruction into the target game picture control instruction queue according to the target timestamp and the specified timestamp.
For example, the target terminal device is terminal device 1, the designated terminal device is terminal device 2, both terminal devices 1 and 2 display the royal glory game screen, and the royal glory game screen control instruction queue stores identification information of each terminal device capable of controlling the royal glory game screen. If the current network delay is 5 us. After the server receives the game picture control command of royal glowing sent by the terminal device 1, if the specified game picture control command sent by the terminal device 2 is received within 5us, the specified game picture control command queue corresponding to the specified terminal device is determined to be the game picture control command queue of royal glowing according to the specified identification information in the specified game picture control command, the target game picture control command queue corresponding to the terminal device 1 is the same queue, and the game picture control command queues are game picture control command queues of royal glowing, and the target game picture control command and the specified game picture control command are respectively inserted into the target game picture control command queue according to the target timestamp and the specified timestamp. Specifically, the target game screen control instruction is inserted between a first game screen control instruction and a second game screen control instruction, where the first game screen control instruction is a game control instruction which is closest to the target timestamp and before the target timestamp in the target game screen control instruction queue, and the second game screen control instruction is a game control instruction which is closest to the target timestamp and after the target timestamp in the target game screen control instruction queue. Inserting the specified game screen control instruction between a third game screen control instruction and a fourth game screen control instruction, wherein the third game screen control instruction is the game control instruction which is closest to the specified timestamp and is before the specified timestamp in the target game screen control instruction queue, and the fourth game screen control instruction is the game control instruction which is closest to the specified timestamp and is after the specified timestamp in the target game screen control instruction queue.
By acquiring network delay, when receiving a specified game picture control instruction sent by specified terminal equipment within a time length corresponding to the current network delay, determining a specified game picture control instruction queue corresponding to the specified terminal equipment according to specified identification information, and respectively inserting the target game picture control instruction and the specified game picture control instruction into the target game picture control instruction queue according to the target timestamp and the specified timestamp when the specified game picture control instruction queue and the target game picture control instruction queue are in the same queue, the problem that the same game picture displayed by different terminal equipment is not synchronous due to network delay can be avoided, and user experience is effectively improved.
And S104, executing the game picture control commands in the target game picture control command queue according to the time sequence.
Further, after the target game picture control instruction and the specified game picture control instruction are inserted into the target game picture control instruction queue, each game picture control instruction in the target game picture control instruction queue is executed according to the time sequence.
The data processing method provided by the embodiment of the disclosure can receive a target game picture control instruction sent by a target terminal device, wherein the target game picture control instruction includes target identification information and a target timestamp of the target terminal device, the target terminal device is any one of N terminal devices connected with the server, and N is an integer greater than 1; determining a target game picture control instruction queue corresponding to the target terminal equipment according to the target identification information, wherein the target game picture control instruction queue comprises at least one game picture control instruction; inserting the target game picture control instruction into the target game picture control instruction queue according to the target timestamp; and executing the game picture control instructions in the target game picture control instruction queue according to the time sequence, so that the synchronism of the same game picture operated by a plurality of terminal devices can be ensured, the action of the game role is kept consistent, and the game experience is enhanced.
Fig. 2 is a block diagram of a data processing apparatus provided in an embodiment of the present disclosure, where the apparatus 20 is applied to a server. As shown in fig. 2, the apparatus 20 includes:
a control instruction receiving module 201, configured to receive a target game image control instruction sent by a target terminal device, where the game image control instruction includes target identification information and a target timestamp of the target terminal device, the target terminal device is any one of N terminal devices connected to the server, and N is an integer greater than 1;
a control instruction queue determining module 202, configured to determine, according to the target identification information, a target game picture control instruction queue corresponding to the target terminal device, where the target game picture control instruction queue includes at least one game picture control instruction;
a control instruction insertion module 203, configured to insert the target game picture control instruction into the target game picture control instruction queue according to the target timestamp;
and the control instruction execution module 204 is configured to execute each game picture control instruction in the target game picture control instruction queue according to a time sequence.
In one embodiment, as shown in fig. 3, the apparatus 20 further comprises:
a time synchronization module 205, configured to perform time synchronization on the N terminal devices connected to the server.
In one embodiment the apparatus further comprises:
a current network delay obtaining module 206, configured to obtain a current network delay;
the control instruction queue determining module 202 is further configured to:
if a specified game picture control instruction sent by specified terminal equipment is received within a time length corresponding to the current network delay, determining a specified game picture control instruction queue corresponding to the specified terminal equipment according to specified identification information, wherein the specified terminal equipment is any one of the N terminal equipment except the target terminal equipment, and the specified game picture control instruction comprises specified identification information and a specified timestamp of the specified terminal equipment;
the control instruction insertion module 203 is specifically configured to:
and if the specified game picture control instruction queue and the target game picture control instruction queue are the same queue, respectively inserting the target game picture control instruction and the specified game picture control instruction into the target game picture control instruction queue according to the target timestamp and the specified timestamp.
In one embodiment, the control instruction queue determination module 202 is configured to:
and determining a target game picture control instruction queue corresponding to the target terminal device according to a preset corresponding relation, wherein the preset corresponding relation is the corresponding relation between the identification information of the target game and the identification information of M terminal devices running the target game, M is an integer larger than 1, and M is smaller than or equal to N.
In an embodiment, the game picture control instructions in the target game picture control instruction queue are arranged according to respective time stamps, and the control instruction insertion module 203 is configured to:
inserting the target game picture control instruction between a first game picture control instruction and a second game picture control instruction, wherein the first game picture control instruction is a game control instruction which is closest to the target timestamp and is before the target timestamp in the target game picture control instruction queue, and the second game picture control instruction is a game control instruction which is closest to the target timestamp and is after the target timestamp in the target game picture control instruction queue.
For the data processing apparatus provided in the embodiment of the present disclosure, the implementation process and the technical effect thereof may refer to the embodiment of fig. 1, and are not described herein again.
Fig. 4 is a block diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 4, the electronic device 40 includes:
a processor 401 and a memory 402, said memory 402 having stored therein at least one computer instruction, said instruction being loaded and executed by said processor 401 to implement the data processing method described in the above-mentioned method embodiments.
Based on the data processing method described in the embodiment corresponding to fig. 1, an embodiment of the present disclosure further provides a computer-readable storage medium, for example, the non-transitory computer-readable storage medium may be a Read Only Memory (ROM), a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like. The storage medium stores computer instructions for executing the data processing method described in the embodiment corresponding to fig. 1, which is not described herein again.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
Claims (10)
1. A data processing method is applied to a server and comprises the following steps:
receiving a target game picture control instruction sent by a target terminal device, wherein the target game picture control instruction comprises target identification information and a target timestamp of the target terminal device, the target terminal device is any one of N terminal devices connected with the server, and N is an integer greater than 1;
determining a target game picture control instruction queue corresponding to the target terminal equipment according to the target identification information, wherein the target game picture control instruction queue comprises at least one game picture control instruction;
inserting the target game picture control instruction into the target game picture control instruction queue according to the target timestamp;
and executing the game picture control instructions in the target game picture control instruction queue according to the time sequence.
2. The method according to claim 1, wherein before receiving a target game screen control instruction sent by a target terminal device, the method further comprises:
and carrying out time synchronization on the N terminal devices connected with the server.
3. The method according to claim 1 or 2, wherein before receiving the target game screen control instruction sent by the target terminal device, the method further comprises:
acquiring the current network delay;
after receiving a target game picture control instruction sent by a target terminal device, the method further comprises:
if a specified game picture control instruction sent by specified terminal equipment is received within a time length corresponding to the current network delay, determining a specified game picture control instruction queue corresponding to the specified terminal equipment according to specified identification information, wherein the specified terminal equipment is any one of the N terminal equipment except the target terminal equipment, and the specified game picture control instruction comprises specified identification information and a specified timestamp of the specified terminal equipment;
the inserting the target game screen control instruction into the target game screen control instruction queue according to the target timestamp comprises:
and if the specified game picture control instruction queue and the target game picture control instruction queue are the same queue, respectively inserting the target game picture control instruction and the specified game picture control instruction into the target game picture control instruction queue according to the target timestamp and the specified timestamp.
4. The method of claim 1, wherein the determining a target game screen control instruction queue corresponding to the target terminal device according to the target identification information comprises:
and determining a target game picture control instruction queue corresponding to the target terminal device according to a preset corresponding relation, wherein the preset corresponding relation is the corresponding relation between the identification information of the target game and the identification information of M terminal devices running the target game, M is an integer larger than 1, and M is smaller than or equal to N.
5. The method according to claim 1, wherein the game screen control commands in the target game screen control command queue are arranged according to respective time stamps, and the inserting the target game screen control commands into the target game screen control command queue according to the target time stamps comprises:
inserting the target game picture control instruction between a first game picture control instruction and a second game picture control instruction, wherein the first game picture control instruction is a game control instruction which is closest to the target timestamp and is before the target timestamp in the target game picture control instruction queue, and the second game picture control instruction is a game control instruction which is closest to the target timestamp and is after the target timestamp in the target game picture control instruction queue.
6. A data processing apparatus, applied to a server, includes:
a control instruction receiving module, configured to receive a target game image control instruction sent by a target terminal device, where the game image control instruction includes target identification information and a target timestamp of the target terminal device, the target terminal device is any one of N terminal devices connected to the server, and N is an integer greater than 1;
a control instruction queue determining module, configured to determine, according to the target identification information, a target game picture control instruction queue corresponding to the target terminal device, where the target game picture control instruction queue includes at least one game picture control instruction;
the control instruction inserting module is used for inserting the target game picture control instruction into the target game picture control instruction queue according to the target timestamp;
and the control instruction execution module is used for executing each game picture control instruction in the target game picture control instruction queue according to the time sequence.
7. The apparatus of claim 6, further comprising:
and the time synchronization module is used for carrying out time synchronization on the N terminal devices connected with the server.
8. The apparatus of claim 6 or 7, further comprising:
a current network delay obtaining module, configured to obtain a current network delay;
the control instruction queue determining module is further configured to:
if a specified game picture control instruction sent by specified terminal equipment is received within a time length corresponding to the current network delay, determining a specified game picture control instruction queue corresponding to the specified terminal equipment according to specified identification information, wherein the specified terminal equipment is any one of the N terminal equipment except the target terminal equipment, and the specified game picture control instruction comprises specified identification information and a specified timestamp of the specified terminal equipment;
the control instruction insertion module is specifically configured to:
and if the specified game picture control instruction queue and the target game picture control instruction queue are the same queue, respectively inserting the target game picture control instruction and the specified game picture control instruction into the target game picture control instruction queue according to the target timestamp and the specified timestamp.
9. An electronic device, comprising a processor and a memory, wherein at least one computer instruction is stored in the memory, and wherein the instruction is loaded and executed by the processor to implement the steps performed in the data processing method according to any one of claims 1 to 5.
10. A computer-readable storage medium having stored thereon at least one computer instruction, which is loaded and executed by a processor to perform the steps performed in the data processing method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210438057.4A CN114904265A (en) | 2022-04-20 | 2022-04-20 | Data processing method, data processing device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210438057.4A CN114904265A (en) | 2022-04-20 | 2022-04-20 | Data processing method, data processing device, storage medium and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114904265A true CN114904265A (en) | 2022-08-16 |
Family
ID=82764648
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210438057.4A Pending CN114904265A (en) | 2022-04-20 | 2022-04-20 | Data processing method, data processing device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114904265A (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107222510A (en) * | 2017-07-21 | 2017-09-29 | 腾讯科技(深圳)有限公司 | A kind of game synchronization method, system and relevant device |
CN107982912A (en) * | 2016-10-26 | 2018-05-04 | 腾讯科技(深圳)有限公司 | A kind of information processing method and terminal |
CN109499058A (en) * | 2018-11-20 | 2019-03-22 | 网易(杭州)网络有限公司 | Matching in game determines method and device |
CN111093083A (en) * | 2019-12-16 | 2020-05-01 | 西安万像电子科技有限公司 | Data transmission method and device |
CN111737012A (en) * | 2020-07-31 | 2020-10-02 | 腾讯科技(深圳)有限公司 | Data packet synchronization method, device, equipment and storage medium |
CN111949237A (en) * | 2020-07-20 | 2020-11-17 | 西安万像电子科技有限公司 | Image display method and device |
CN112511256A (en) * | 2020-11-24 | 2021-03-16 | 高小翎 | Robust synchronization method for dynamic delay optimization in online game |
CN113328821A (en) * | 2021-05-26 | 2021-08-31 | 西安万像电子科技有限公司 | Instruction synchronization method, server and system |
CN114225383A (en) * | 2021-12-01 | 2022-03-25 | 咪咕互动娱乐有限公司 | Cloud game control method and device, cloud server and storage medium |
-
2022
- 2022-04-20 CN CN202210438057.4A patent/CN114904265A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107982912A (en) * | 2016-10-26 | 2018-05-04 | 腾讯科技(深圳)有限公司 | A kind of information processing method and terminal |
CN107222510A (en) * | 2017-07-21 | 2017-09-29 | 腾讯科技(深圳)有限公司 | A kind of game synchronization method, system and relevant device |
CN109499058A (en) * | 2018-11-20 | 2019-03-22 | 网易(杭州)网络有限公司 | Matching in game determines method and device |
CN111093083A (en) * | 2019-12-16 | 2020-05-01 | 西安万像电子科技有限公司 | Data transmission method and device |
CN111949237A (en) * | 2020-07-20 | 2020-11-17 | 西安万像电子科技有限公司 | Image display method and device |
CN111737012A (en) * | 2020-07-31 | 2020-10-02 | 腾讯科技(深圳)有限公司 | Data packet synchronization method, device, equipment and storage medium |
CN112511256A (en) * | 2020-11-24 | 2021-03-16 | 高小翎 | Robust synchronization method for dynamic delay optimization in online game |
CN113328821A (en) * | 2021-05-26 | 2021-08-31 | 西安万像电子科技有限公司 | Instruction synchronization method, server and system |
CN114225383A (en) * | 2021-12-01 | 2022-03-25 | 咪咕互动娱乐有限公司 | Cloud game control method and device, cloud server and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10771565B2 (en) | Sending application input commands over a network | |
CN110496391B (en) | Information synchronization method and device | |
CN110545442B (en) | Live broadcast interaction method and device, electronic equipment and readable storage medium | |
CN107040808B (en) | Method and device for processing popup picture in video playing | |
CN109756766B (en) | Virtual gift display method, storage medium, electronic device and system of live broadcast platform | |
CN108989883A (en) | A kind of living broadcast advertisement method, apparatus, equipment and medium | |
JP6379107B2 (en) | Information processing apparatus, control method therefor, and program | |
CN112752024B (en) | Method and device for controlling multiple external cameras by intelligent terminal | |
CN109218754A (en) | Information display method, device, equipment and medium in a kind of live streaming | |
CN111672132B (en) | Game control method, game control device, server, and storage medium | |
CN112206515A (en) | Game object state switching method, device, equipment and storage medium | |
CN111610868A (en) | Mouse data processing method and system | |
CN114466213A (en) | Information synchronization method, device, computer equipment, storage medium and program product | |
CN114904265A (en) | Data processing method, data processing device, storage medium and electronic equipment | |
JP2018200675A (en) | Data generating apparatus and application executing apparatus | |
CN110891200B (en) | Bullet screen based interaction method, device, equipment and storage medium | |
CN115700484A (en) | Rendering method, device, equipment and storage medium | |
CN113230661A (en) | Data synchronization method and device, computer readable medium and electronic equipment | |
CN113328821A (en) | Instruction synchronization method, server and system | |
CN109999490A (en) | A kind of method and system reducing networking cloud application delay | |
CN108965959A (en) | Broadcasting, acquisition methods, mobile phone, PC equipment and the system of VR video | |
CN114765692B (en) | Live broadcast data processing method, device, equipment and medium | |
CN111013144B (en) | Game picture drawing and rendering method and device and mobile terminal | |
JP6314274B1 (en) | Data generation apparatus and application execution apparatus | |
CN111821696B (en) | Game sightseeing method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |