CN107982912B - Information processing method and terminal - Google Patents

Information processing method and terminal Download PDF

Info

Publication number
CN107982912B
CN107982912B CN201610952431.7A CN201610952431A CN107982912B CN 107982912 B CN107982912 B CN 107982912B CN 201610952431 A CN201610952431 A CN 201610952431A CN 107982912 B CN107982912 B CN 107982912B
Authority
CN
China
Prior art keywords
timestamp
terminal
action
input information
frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610952431.7A
Other languages
Chinese (zh)
Other versions
CN107982912A (en
Inventor
习明昊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610952431.7A priority Critical patent/CN107982912B/en
Publication of CN107982912A publication Critical patent/CN107982912A/en
Application granted granted Critical
Publication of CN107982912B publication Critical patent/CN107982912B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/23Input arrangements for video game devices for interfacing with the game device, e.g. specific interfaces between game controller and console
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/30Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
    • A63F13/31Communication aspects specific to video games, e.g. between several handheld game devices at close range
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/30Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
    • A63F13/35Details of game servers
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • A63F13/533Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game for prompting the player, e.g. by displaying a game menu

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses an information processing method, which comprises the following steps: determining first input information; based on the first input information, inquiring to obtain identification information of a first action; the first action is an action to be executed by an object in a frame of the first terminal; detecting whether the first action meets a preset condition or not based on the identification information of the first action; if the first action meets a preset condition, sending the first input information and a first timestamp to a second terminal; wherein the first timestamp is a timestamp corresponding to the first input information; determining a second timestamp separated from the first timestamp by a first preset time period; controlling an object in a frame of the first terminal to perform the first action when the second timestamp arrives. The embodiment of the invention also discloses a terminal.

Description

Information processing method and terminal
Technical Field
The present invention relates to electronic technologies, and in particular, to an information processing method and a terminal.
Background
The existing action-based game directly adopts a Peer-to-Peer (P2P) structure and a frame locking algorithm to realize a specific operation process in order to reduce delay. During game play, players communicate data directly with each other. But one of the two parties is required to be randomly selected as a host to be responsible for settlement of skills and logic, and the other non-host sends own instruction state to the host in each synchronous frame, receives information returned by the host and executes the information. In the prior art, all instructions of the non-host in the frame locking synchronization algorithm need to be returned to the non-host after host settlement, and input instructions of the non-host need to wait for the return of the host to be confirmed and executed.
Client pre-rendering often only performs some weak interaction class operations, such as dialogue and interaction with a Non-Player Character (NPC); for some strong interactive operations, such as Player battle (PVP), skill range determination, determination of whether hit occurs, and affected hard determination, the host must settle, otherwise, the problem of inconsistent settlement of multiple clients occurs. However, the player input may have a delay, which may reduce the experience of the player, and the player input delay is determined by the network environment, and there may be a problem of experience inconsistency between different network delays.
Disclosure of Invention
In order to solve the above technical problems, embodiments of the present invention are expected to provide an information processing method and a terminal, which solve the problem that operations of non-host players in some existing games can be implemented only after being confirmed by a host player, ensure consistency of experiences of different players, and improve interaction capabilities of players and terminals.
The technical scheme of the invention is realized as follows:
in a first aspect, an information processing method is provided, and the method includes:
determining first input information;
based on the first input information, inquiring to obtain identification information of a first action; the first action is an action to be executed by an object in a frame of the first terminal;
detecting whether the first action meets a preset condition or not based on the identification information of the first action;
if the first action meets a preset condition, sending the first input information and a first timestamp to a second terminal; wherein the first timestamp is a timestamp corresponding to the first input information;
determining a second timestamp separated from the first timestamp by a first preset time period;
controlling an object in a frame of the first terminal to perform the first action when the second timestamp arrives.
In a second aspect, an information processing method is provided, the method including:
determining second input information;
based on the second input information, inquiring to obtain identification information of a second action; wherein the second action is an action to be performed by an object in a frame of the second terminal;
sending the second input information and the fifth timestamp to the first terminal; wherein the fifth timestamp is a timestamp corresponding to the second input information;
determining a sixth timestamp separated from the fifth timestamp by a first preset time period;
controlling an object in a frame of the second terminal to execute the second action based on the identification information of the second action when the sixth timestamp arrives.
In a third aspect, a first terminal is provided, where the first terminal includes: the device comprises a first acquisition unit, a first query unit, a first detection unit, a first sending unit and a first processing unit, wherein:
the first acquisition unit is used for determining first input information;
the first query unit is used for querying and obtaining identification information of a first action based on the first input information; the first action is an action to be executed by an object in a frame of the first terminal;
the first detection unit is used for detecting whether the first action meets a preset condition or not based on the identification information of the first action;
the first sending unit is used for sending the first input information and the first timestamp to a second terminal if the first action meets a preset condition; wherein the first timestamp is a timestamp corresponding to the first input information;
the first obtaining unit is further configured to determine a second timestamp separated from the first timestamp by a first preset time period;
the first processing unit is configured to control an object in a frame of the first terminal to perform the first action when the second timestamp arrives.
In a fourth aspect, a second terminal is provided, the second terminal comprising: a fourth acquiring unit, a second querying unit, a second sending unit and a sixth processing unit, wherein:
the fourth acquisition unit is used for determining second input information;
the second query unit is used for querying and obtaining identification information of a second action based on the second input information; wherein the second action is an action to be performed by an object in a frame of the second terminal;
the second sending unit is configured to send the second input information and the fifth timestamp to the first terminal; wherein the fifth timestamp is a timestamp corresponding to the second input information;
the fourth obtaining unit is further configured to determine a sixth timestamp separated from the fifth timestamp by a first preset time period;
the sixth processing unit is configured to control an object in a frame of the second terminal to perform the second action based on the identification information of the second action when the sixth timestamp arrives.
In a fifth aspect, a first terminal is provided, the first terminal comprising: a first processor and a first communication interface, wherein:
the first processor is used for determining first input information; based on the first input information, inquiring to obtain identification information of a first action; the first action is an action to be executed by an object in a frame of the first terminal; detecting whether the first action meets a preset condition or not based on the identification information of the first action; if the first action meets a preset condition, sending the first input information and a first timestamp to a second terminal through the first communication interface; wherein the first timestamp is a timestamp corresponding to the first input information; determining a second timestamp separated from the first timestamp by a first preset time period; controlling an object in a frame of the first terminal to perform the first action when the second timestamp arrives.
In a sixth aspect, a second terminal is provided, the second terminal comprising: a second processor and a second communication interface, wherein:
the second processor is used for determining second input information; based on the second input information, inquiring to obtain identification information of a second action; wherein the second action is an action to be performed by an object in a frame of the second terminal; sending the second input information and a fifth timestamp to the first terminal through the second communication interface; wherein the fifth timestamp is a timestamp corresponding to the second input information; determining a sixth timestamp separated from the fifth timestamp by a first preset time period; controlling an object in a frame of the second terminal to execute the second action based on the identification information of the second action when the sixth timestamp arrives.
The information processing method and the terminal provided by the embodiment of the invention determine first input information, obtain identification information of a first action based on the first input information query, detect whether the first action meets a preset condition based on the identification information of the first action, send the first input information and a first timestamp to a second terminal if the first action meets the preset condition, wherein the first timestamp is a timestamp corresponding to the first input information, and finally control an object in a frame of the first terminal to execute the first action when a second timestamp separated from the first timestamp by a first preset time period arrives; therefore, each terminal can automatically control the object to execute the action corresponding to the input information after a certain preset time interval from the time of sending the input information for controlling the object, the confirmation information of the host is not needed to wait, the problem that the operation of a non-host player in some existing games can be implemented only after the operation of the non-host player is confirmed by the host player is solved, the experience consistency of different players is ensured, and the interaction capacity of the player and the terminal is improved.
Drawings
Fig. 1 is a schematic flowchart of an information processing method according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating another information processing method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an interaction between a client a and a client B according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating another information processing method according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating an information processing method according to another embodiment of the present invention;
FIG. 6 is a flow chart illustrating another information processing method according to another embodiment of the present invention;
FIG. 7 is a diagram illustrating a frame structure according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a first terminal according to an embodiment of the present invention;
fig. 9 is a schematic view of an interaction structure between a first terminal and a second terminal according to an embodiment of the present invention;
fig. 10 is a schematic view of an interaction structure between a first terminal and a second terminal according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of an information processing system according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
In a specific operation flow of the information processing method provided by the present invention, data and information transmission between terminals may be implemented using a User Datagram Protocol (UDP). UDP is a connectionless transport layer protocol in the Open System Interconnection (OSI) reference model, and is used in transmission that does not require the arrival of packet sequence, the inspection and sequencing of packet transmission sequence is completed by the application layer for transaction-oriented simple unreliable information transfer service, and IETF RFC 768 is a formal specification of UDP. UDP is a connectionless Protocol used for processing packets in networks, like Transmission Control Protocol (TCP). In the OSI model, at the fourth layer, the transport layer, is at a layer above the IP protocol. UDP is used to support network applications that require data to be transferred between computers, and many client/server mode network applications, including network video conferencing systems, require the use of the UDP protocol. The main function of the UDP protocol is to compress network data traffic into a data packet form, which is basically an interface between the IP protocol and an upper layer protocol, and the UDP protocol is applicable to a plurality of application programs whose ports respectively run on the same device. The information processing method in the invention can be applied to the application scene of multi-terminal (player) online game playing.
An embodiment of the present invention provides an information processing method, which is shown in fig. 1 and includes the following steps:
step 101, determining first input information.
Specifically, step 101 determines that the first input information may be implemented by the first terminal; the first terminal may be various types of electronic devices with information processing capability in the process of the specific embodiment, for example, the electronic devices may include a mobile phone, a tablet computer, a desktop computer, a personal digital assistant, a television, and the like, and the preferred first terminal may be an electronic device capable of installing a game-related application program or implementing a game function, and if the first terminal is a multiplayer online game, the first terminal may be a terminal corresponding to any one of a plurality of players. The first input information may be operation instruction information when the player wants to control a game object owned by the player to perform a certain operation during a game, and if the first terminal is an electronic device including a keyboard, the first input information may be generated by the player operating on the keyboard, for example, clicking a combination key shift + L on the keyboard, a key moving to the left to generate instruction information moving to the left, clicking a combination key shift + R on the keyboard, a key moving to the right to generate instruction information moving to the right, clicking a key moving downward on the keyboard to generate instruction information moving to the back, clicking a key moving upward on the keyboard to generate instruction information moving to the front, and the like; or the corresponding instruction information can be generated by directly clicking the corresponding key on the game interface; alternatively, if the first terminal is an electronic device without a keyboard, the first input information may be implemented by a player directly touching a display screen of the electronic device, for example, the player may click to slide the object left to generate instruction information for moving left, click to slide the object right to generate instruction information for moving right, click to slide the object forward to generate instruction information for moving forward, click to slide the object backward to generate instruction information for moving backward, and the like.
And 102, inquiring identification information of the first action based on the first input information.
Wherein the first action is an action to be performed by an object in a frame of the first terminal.
Specifically, the step 102 may be implemented by the first terminal, based on the first input information, querying for identification information of the first action; after the player inputs the first input information needing to control the operation of the corresponding object, the identification information of the action corresponding to the first input information can be searched in a preset corresponding relation table between the input information and the identification information of the action; for example, the first input information is a key having a function of moving to the left on the keyboard, and the identification information of the first action corresponding to the first input information can be found in the correspondence table between the input information and the identification information of the action as the identification information corresponding to the action moving to the left.
And 103, detecting whether the first action meets a preset condition or not based on the identification information of the first action.
Specifically, the step 103 of detecting whether the first action satisfies the preset condition based on the identification information of the first action may be implemented by the first terminal; the preset condition may be set in advance according to game requirements by a programmer, a User Interface (UI) designer, and the like who design the game in the game design process, and the preset condition may be that an action executed by a moving object is an action (strong interaction action) that may affect each other between objects. After obtaining the identification information of the first action to be executed by the object in the frame of the first terminal, the first terminal may obtain, according to the identification information of the action, that the action that the object needs to execute is the first action, for example, if the identification information is L, it may be determined that the first action that the object needs to execute in the frame of the first terminal is moving to the left, and then it may be determined whether the first action may affect the operation of the object in the frames of other terminals that play online with the first terminal, that is, it may be determined whether the first action satisfies a preset condition.
And 104, if the first action meets the preset condition, sending the first input information and the first timestamp to the second terminal.
Wherein the first time stamp is a time stamp corresponding to the first input information.
Specifically, if the first action satisfies the preset condition, the step 104 of sending the first input information and the first timestamp to the second terminal may be implemented by the first terminal; if it is detected that the first action is an action that may affect the operation of an object in a frame in another terminal (i.e., an action of strong interaction), it may be determined that the first action satisfies a preset condition, and at this time, the first input information may be transmitted to the second terminal. The first timestamp may be a first time when the first terminal transmits the first input information to the second terminal, and the first time when the first input information is transmitted may be recorded and transmitted to the second terminal while the first input information is transmitted to the second terminal.
Step 105, determining a second timestamp separated from the first timestamp by a first preset time period.
Specifically, the step 105 of determining that the second timestamp separated from the first timestamp by the first preset time period may be implemented by the first terminal; the first preset time period may be set in advance according to game requirements by a programmer, a UI designer, or the like who designs the game in the game design process, and the first preset time period may be a time period which is obtained after a plurality of experiments or experiences and ensures that the target can be controlled to perform corresponding actions after a sufficient time delay. The first predetermined time period is related to the operation condition of the network. The second timestamp is a second time spaced from the first time by a first preset time period.
And 106, when the second time stamp arrives, controlling the object in the frame of the first terminal to execute the first action.
Specifically, the step 106 of controlling the object in the frame of the first terminal to perform the first action when the second timestamp arrives may be implemented by the first terminal. When the second time arrives, the player may control the object in the frame of the second time of the first terminal to perform the first action, for example, may control the object in the frame of the second time of the first terminal to perform an action of moving to the left, so that the state of the game interface displayed on the display screen of the first terminal is that the object in the frame of the second time of the first terminal moves to the left.
The information processing method provided by the embodiment of the invention includes determining first input information, querying to obtain identification information of a first action based on the first input information, then detecting whether the first action meets a preset condition or not based on the identification information of the first action, if the first action meets the preset condition, sending the first input information and a first timestamp to a second terminal, wherein the first timestamp is a timestamp corresponding to the first input information, and finally controlling an object in a frame of the first terminal to execute the first action when a second timestamp separated from the first timestamp by a first preset time period arrives; therefore, each terminal can automatically control the object to execute the action corresponding to the input information after a certain preset time interval from the time of sending the input information for controlling the object, the confirmation information of the host is not needed to wait, the problem that the operation of a non-host player in some existing games can be implemented only after the operation of the non-host player is confirmed by the host player is solved, the experience consistency of different players is ensured, and the interaction capacity of the player and the terminal is improved.
Based on the foregoing embodiments, an embodiment of the present invention provides an information processing method, which is shown in fig. 2 and includes the following steps:
step 201, the first terminal determines the first input information.
Step 202, the first terminal queries and obtains identification information of the first action based on the first input information.
Wherein the first action is an action to be performed by an object in a frame of the first terminal.
Step 203, the first terminal detects whether the first action meets a preset condition based on the identification information of the first action.
And 204, if the first action meets the preset condition, the first terminal sends the first input information and the first timestamp to the second terminal.
Wherein the first time stamp is a time stamp corresponding to the first input information.
Step 205, the first terminal determines a second timestamp separated from the first timestamp by a first preset time period.
Specifically, the first preset time period may preferably be 8 frames, that is, 128 ms; the built-in fixed delay (i.e. the first predetermined period of time) can buffer the network delay, and the time required for human reaction limit is about 120ms, and 150ms on average, so that the fixed 8-frame delay is just in an acceptable range. Because the synchronization algorithm only considers one-way delay, the game process is not influenced when the PING values of two mutually related parties are within 0 to 240ms, and the experience can be ensured to be completely consistent under different network conditions. At present, the average delay of the domestic broadband public network is about 100ms, which is far less than the 256ms threshold value of the scheme, and the method can be applied to the national range and even the international operator network.
And step 206, when the second time stamp arrives, the first terminal controls the object in the frame of the first terminal to execute the first action.
And step 207, the second terminal determines the second input information.
Specifically, the second terminal may be various types of electronic devices with information processing capability in the process of the specific embodiment, for example, the electronic devices may include a mobile phone, a tablet computer, a desktop computer, a personal digital assistant, a television, and the like, the preferred second terminal may be an electronic device capable of installing a game-related application program or implementing a game function, and if the second terminal is a multiplayer online game, the second terminal may be a terminal different from the first terminal and corresponding to any one of a plurality of players. The second input information may be operation instruction information when the player wants to control a game object owned by the player to perform a certain operation during the game, and if the second terminal is an electronic device including a keyboard, the second input information may be generated by the player operating on the keyboard, for example, clicking a key on the keyboard that moves to the left to generate instruction information that moves to the left, and the like; or the corresponding instruction information can be generated by directly clicking the corresponding key on the game interface; alternatively, if the second terminal is an electronic device without a keyboard, the second input information may be implemented by a player directly touching a display screen of the electronic device, for example, an object of the player may be clicked to slide left to generate instruction information for moving left, and the like.
And step 208, the second terminal queries and obtains the identification information of the second action based on the second input information.
Wherein the second action is an action to be performed by an object in a frame of the second terminal.
Specifically, after the player inputs the second input information that needs to control the operation of the corresponding object, the identification information of the action corresponding to the second input information may be searched in the correspondence table between the preset input information and the identification information of the action; for example, the second input information is a key having a function of moving on a keyboard, and the identification information of the second action corresponding to the second input information can be found in the correspondence table between the input information and the identification information of the action as the identification information corresponding to the action moving to the right.
And step 209, the second terminal sends the second input information and the fifth timestamp to the first terminal.
Wherein the fifth time stamp is a time stamp corresponding to the second input information.
Specifically, the fifth timestamp may be a fifth time when the second terminal sends the second input information to the first terminal, and the fifth time when the second input information is sent to the first terminal may be recorded and sent to the second terminal. The time corresponding to the fifth timestamp may be the same as the time corresponding to the first timestamp, i.e., the time at which the first terminal transmits the first input information may be the same as the time at which the second terminal transmits the second input information. The second input information may be a corresponding reaction action that the second terminal makes with respect to the first input information of the first terminal and wants to control the own object to perform.
And step 210, the first terminal receives second input information sent by the second terminal and acquires a third timestamp.
The second input information has an association relation with the first input information, and the third timestamp is a timestamp corresponding to the second input information.
Specifically, the third timestamp may be a third time when the first terminal receives the second input information sent by the second terminal.
Because all the instructions are provided with the time stamps when the players input the instructions, any client can uniquely calculate the current game settlement state according to the instructions and the state data of the client and the instruction state data of the opposite side, so that a central server is not needed to uniformly settle accounts, and the client can settle accounts in advance directly. According to the current settlement method in the embodiment of the invention, the defect that all operations in the game scheme can be executed only after the confirmation of the host end is well solved, and occasional network fluctuation is corrected and backtracked through a backtracking algorithm described below.
And step 211, the first terminal determines the relationship between the second timestamp and the third timestamp.
Specifically, it is possible to compare which time is before and which time is after the second time with the third time.
Step 212, if the third timestamp is before the second timestamp, the first terminal determines that the operation of controlling the object in the frame of the first terminal to execute the first action is successful, and continues to control the object in the frame of the first terminal to execute the first action.
Specifically, if the third timestamp is before the second timestamp, which indicates that the first terminal has received the second input information sent by the second terminal before controlling the object in the frame of the first terminal to perform the first action, it indicates that the object in the frame of the first terminal has successfully performed the first action, and the first action is feasible.
And step 213, if the third timestamp is after the second timestamp, the first terminal controls the object in the frame of the first terminal to cancel the first action executed on the first input information, and returns to the state before the first timestamp arrives.
Specifically, if the third timestamp is after the second timestamp, it indicates that the first terminal does not receive the second input information sent by the second terminal before the object in the frame controlling the first terminal performs the first action, and indicates that the current network delay is greater than the preset network delay (the first preset time period), that is, the first terminal controls the object in the frame of the first terminal to perform the first action incorrectly, at this time, the object needs to be indicated to return to the state before the first time comes, so as to ensure consistency between the settlement states of the objects of all terminals in the whole online game on the respective terminals and the settlement states of the objects of other terminals known by the other terminals according to the timestamps.
And step 214, the second terminal determines a sixth timestamp separated from the fifth timestamp by the first preset time period.
The second timestamp is a sixth time spaced from the fifth time by a first preset time period.
Step 215, when the sixth timestamp arrives, the second terminal controls the object in the frame of the second terminal to execute the second action based on the identification information of the second action.
Specifically, when the sixth time arrives, the player may control the object in the frame of the sixth time of the second terminal to perform the second action, for example, may control the object in the frame of the sixth time of the second terminal to perform an action of moving to the left, so that the state displayed in the game interface is that the object in the frame of the sixth time of the second terminal moves to the left.
The information processing method in the present invention is explained by taking an example in which a first terminal is at a client a, a second terminal is a client B, and the client a and the client B are playing an online game: as shown in fig. 3, the client a may send its first input information to the client B, and the client B may send its second input information to the client a, and the client a and the client B may send their respective input information to the opposite end at the same time; in the game process, each client (client A and client B) can adopt a backtracking algorithm to control the object in each current frame to execute corresponding action in advance, the concept of a host is not existed, the clients settle accounts independently, and the time stamps guarantee consistency. Furthermore, errors due to network fluctuation can be corrected and traced according to the trace-back algorithm in the embodiment of the invention. And, as long as half of PING values of both parties associated with each other is smaller than the built-in fixed delay (the first preset time period), the consistency of the two clients can be surely ensured.
It should be noted that, for the explanation of the same steps or concepts in the present embodiment as in the other embodiments, reference may be made to the description in the other embodiments, and details are not described here.
The information processing method provided by the embodiment of the invention determines first input information and second input information, obtains identification information of a first action based on the first input information query, obtains identification information of a second action based on the second input information query, detects whether the first action meets a preset condition based on the identification information of the first action, sends the first input information and a first time stamp to a second terminal if the first action meets the preset condition, the first time stamp is a time stamp corresponding to the first input information, finally controls an object in a frame of the first terminal to execute the first action when a second time stamp separated from the first time stamp by a first preset time period arrives, controls an object in a frame of the second terminal to execute the second action based on the identification information of the second action when a sixth time stamp separated from a fifth time stamp by the first preset time period arrives, therefore, each terminal can automatically control the object to execute the action corresponding to the input information after a certain preset time interval from the time of sending the input information for controlling the object, the confirmation information of the host is not needed to wait, the problem that the operation of a non-host player in some existing games can be implemented only after the operation of the non-host player is confirmed by the host player is solved, the experience consistency of different players is ensured, and the interaction capacity of the player and the terminal is improved.
Based on the foregoing embodiments, an embodiment of the present invention provides an information processing method, which is shown in fig. 4 and includes the following steps:
step 301, the first terminal determines the first input information.
Step 302, the first terminal queries and obtains identification information of the first action based on the first input information.
Wherein the first action is an action to be performed by an object in a frame of the first terminal.
Step 303, the first terminal detects whether the first action meets a preset condition based on the identification information of the first action.
Step 304, if the first action meets the preset condition, the first terminal sends the first input information and the first timestamp to the second terminal.
Wherein the first time stamp is a time stamp corresponding to the first input information.
Step 305, the first terminal determines a second timestamp separated from the first timestamp by a first preset time period.
And step 306, when the second time stamp arrives, the first terminal controls the object in the frame of the first terminal to execute the first action.
Step 307, the second terminal determines the second input information.
And 308, the second terminal queries to obtain identification information of the second action based on the second input information.
Wherein the second action is an action to be performed by an object in a frame of the second terminal.
Step 309, the second terminal sends the second input information and the fifth timestamp to the first terminal.
Wherein the fifth time stamp is a time stamp corresponding to the second input information.
And step 310, the first terminal receives second input information sent by the second terminal and acquires a third timestamp.
The second input information has an association relation with the first input information, and the third timestamp is a timestamp corresponding to the second input information.
And 311, the first terminal judges the relationship between the second timestamp and the third timestamp.
Step 312, if the third timestamp is before the second timestamp, the first terminal determines that the operation of controlling the object in the frame of the first terminal to execute the first action is successful, and continues to control the object in the frame of the first terminal to execute the first action.
Step 313, if the third timestamp is after the second timestamp, the first terminal controls the object in the frame of the first terminal to cancel the first action executed on the first input information, and returns to the state before the first timestamp arrives.
And step 314, the second terminal determines a sixth timestamp separated from the fifth timestamp by a first preset time period.
And 315, when the sixth timestamp arrives, the second terminal controls the object in the frame of the second terminal to execute the second action based on the identification information of the second action.
Step 316, the first terminal determines a fourth timestamp separated from the second timestamp by a second preset time period.
Specifically, the fourth timestamp is a fourth time that is separated from the second time corresponding to the second timestamp by a second preset time period, where the second preset time period may be set in advance according to game requirements by a programmer, a UI designer, and the like designing the game in the game design process, and the second preset time period may be obtained after a plurality of experiments or experiences, and is set as a time period in which second input information sent by the second terminal can be waited for within a certain network delay. Typically the second period of time may be around 5 seconds.
Step 317, the first terminal detects whether the second input information sent by the second terminal is received before the fourth timestamp arrives.
Step 318, if it is detected that the second input information sent by the second terminal is not received before the fourth timestamp arrives, the first terminal performs disconnection processing on the object in the frame of the first terminal.
Specifically, if the second input information sent by the second terminal is still not received after waiting for the second preset time period from the third time corresponding to the third timestamp, which indicates that the current network is in a state, and possibly the network of the opposite party has been interrupted, and the like, at this time, the first terminal controls the object in the current frame of the first terminal to perform offline operation, and during a period from the third time corresponding to the third timestamp to the fourth time corresponding to the fourth timestamp, the object in the current frame may be controlled to remain in a static state, and no other operation is performed. If the second input information sent by the second terminal is received in the process of starting to wait for the second preset time period at the third moment corresponding to the third timestamp, the delay of the current network is longer than the preset first preset time period, and the network has a certain delay; the first preset time period may be updated if the condition occurs multiple times within a certain time.
Based on the foregoing embodiment, in another embodiment of the present invention, as shown in fig. 5, the information processing method further includes the steps of:
step 319, the first terminal receives the fifth timestamp sent by the second terminal.
Wherein the fifth time stamp is a time stamp corresponding to the second input information and is different from the third time stamp.
And step 320, the first terminal determines a first state of the object in the frame of the second terminal when the first terminal is separated from the fifth timestamp by a first preset time period based on the second input information and the fifth timestamp.
Specifically, after the first terminal obtains the time when the second terminal sends the second input information to itself, because the times of all terminals in the online game are consistent, at this time, the first terminal may determine the first state of the object in the frame of the sixth time corresponding to the sixth timestamp according to a preset execution principle (that is, the object of the first terminal is controlled to execute a corresponding action after a first preset time interval).
In step 321, the first terminal determines that the object in the frame of the second terminal when the second terminal is separated from the fifth timestamp by the first preset time period is in the second state displayed on the display screen of the first terminal.
Meanwhile, the first terminal can view the actual state, namely the second state, of the object in the frame of the second terminal at the sixth moment corresponding to the sixth timestamp on the game interface of the display screen of the first terminal.
Step 322, the first terminal detects whether the first state is consistent with the second state.
Step 323, if the first state is not consistent with the second state, the first terminal determines that the current network is abnormal.
Specifically, if the first state is consistent with the second state, it indicates that the network state of the terminal currently playing the online game is normal, and the player can continue playing the online game; if the first state is different from the second state, it indicates that the network of the opposite end currently playing the online game is abnormal, and the player can detect the reason of the abnormal occurrence and perform corresponding processing.
Based on the foregoing embodiment, in another embodiment of the present invention, as shown in fig. 6, the information processing method further includes the steps of:
step 324, the second terminal receives the first input information and the first timestamp sent by the first terminal.
Wherein the first time stamp is a time stamp corresponding to the first input information.
Step 325, the second terminal determines a third state of the object in the frame of the first terminal when the first terminal is spaced from the first timestamp by a first preset time period based on the first input information and the first timestamp.
Specifically, after the second terminal obtains the time when the first terminal sends the first input information to itself, the second terminal may determine that the first terminal should have executed the first action at the second time corresponding to the second timestamp according to a preset execution principle (that is, the second terminal controls the object of the second terminal to execute the corresponding action after the first preset time period elapses), and certainly may determine the third state of the object in the frame of the first terminal at the second time corresponding to the second timestamp.
Step 326, the second terminal determines that the object in the frame of the first terminal when the first terminal is separated from the first timestamp by the first preset time period is in the fourth state displayed on the display screen of the second terminal.
Specifically, the second terminal may view, on the game interface of its own display screen, an actual state, that is, a fourth state, of the object in the frame of the first terminal at the second time corresponding to the second timestamp.
Step 327, the second terminal detects whether the third state is consistent with the fourth state.
And 328, if the third state is inconsistent with the fourth state, determining that the current network is abnormal by the second terminal.
Specifically, if the third state is consistent with the fourth state, it indicates that the network states of the terminals currently playing the online game are all normal, and the player can continue playing the game; if the third state is different from the fourth state, it indicates that the network of the opposite end currently playing the online game is abnormal, and the player can detect the reason of the abnormal occurrence and perform corresponding processing.
It should be noted that, for the explanation of the same steps or concepts in the present embodiment as in the other embodiments, reference may be made to the description in the other embodiments, and details are not described here.
The information processing method provided by the embodiment of the invention determines first input information and second input information, obtains identification information of a first action based on the first input information query, obtains identification information of a second action based on the second input information query, detects whether the first action meets a preset condition based on the identification information of the first action, sends the first input information and a first time stamp to a second terminal if the first action meets the preset condition, the first time stamp is a time stamp corresponding to the first input information, finally controls an object in a frame of the first terminal to execute the first action when a second time stamp separated from the first time stamp by a first preset time period arrives, controls an object in a frame of the second terminal to execute the second action based on the identification information of the second action when a sixth time stamp separated from a fifth time stamp by the first preset time period arrives, therefore, each terminal can automatically control the object to execute the action corresponding to the input information after a certain preset time interval from the time of sending the input information for controlling the object, the confirmation information of the host is not needed to wait, the problem that the operation of a non-host player in some existing games can be implemented only after the operation of the non-host player is confirmed by the host player is solved, the experience consistency of different players is ensured, and the interaction capacity of the player and the terminal is improved.
It should be noted that, when data and information between terminals are transmitted, a frame structure as shown in fig. 7 may be used for transmission; wherein the frame structure comprises a protocol header of a transmission protocol, such as UDP, a timestamp associated with the input information, and the input information.
An embodiment of the present invention provides a first terminal 4, which can be applied to an information processing method provided in the embodiments corresponding to fig. 1 to 2 and 4 to 6, and as shown in fig. 8, the first terminal 4 includes: a first obtaining unit 41, a first querying unit 42, a first detecting unit 43, a first sending unit 44 and a first processing unit 45, wherein:
a first obtaining unit 41, configured to determine the first input information.
The first query unit 42 is configured to query for identification information of the first action based on the first input information.
Wherein the first action is an action to be performed by an object in a frame of the first terminal.
A first detecting unit 43, configured to detect whether the first action satisfies a preset condition based on the identification information of the first action.
The first sending unit 44 is configured to send the first input information and the first timestamp to the second terminal if the first action satisfies the preset condition.
Wherein the first time stamp is a time stamp corresponding to the first input information. A
The first obtaining unit 41 is further configured to determine a second timestamp separated from the first timestamp by a first preset time period.
A first processing unit 45, configured to control the object in the frame of the first terminal to perform the first action when the second timestamp arrives.
Based on the foregoing embodiment, in another embodiment of the present invention, referring to fig. 9, the first terminal further includes: a first receiving unit 46, a first judging unit 47 and a second processing unit 48, wherein:
and a first receiving unit 46, configured to receive the second input information sent by the second terminal, and obtain a third timestamp.
The second input information has an association relation with the first input information, and the third timestamp is a timestamp corresponding to the second input information.
A first judging unit 47, configured to judge a relationship between the second timestamp and the third timestamp.
And the second processing unit 48 is configured to, if the third timestamp is before the second timestamp, determine that the operation of controlling the object in the frame of the first terminal to perform the first action is successful, and continue to control the object in the frame of the first terminal to perform the first action.
In another embodiment of the present invention, referring to fig. 9, the first terminal further includes: a third processing unit 49, wherein:
and a third processing unit 49, configured to, if the third timestamp is after the second timestamp, control the object in the frame of the first terminal to cancel the first action performed on the first input information, and return to a state before the first timestamp arrives.
In another embodiment of the present invention, referring to fig. 9, the first terminal further includes: a second acquiring unit 410, a second detecting unit 411, a fourth processing unit 412, a second receiving unit 413, a third acquiring unit 414, a third detecting unit 415, and a fifth processing unit 416, wherein:
and a second obtaining unit 410, configured to determine a fourth timestamp that is separated from the second timestamp by a second preset time period.
A second detecting unit 411, configured to detect whether second input information sent by the second terminal is received before the fourth timestamp arrives.
A fourth processing unit 412, configured to perform disconnection processing on the object in the frame of the first terminal if it is detected that the second input information sent by the second terminal is not received before the fourth timestamp arrives.
A second receiving unit 413, configured to receive the fifth timestamp sent by the second terminal.
Wherein the fifth time stamp is a time stamp corresponding to the second input information and is different from the third time stamp.
A third obtaining unit 414, configured to determine, based on the second input information and the fifth timestamp, a first state of the object in the frame when the second terminal is spaced from the fifth timestamp by a first preset time period.
The third obtaining unit 414 is further configured to determine that the object in the frame of the second terminal when the second terminal is spaced from the fifth timestamp by the first preset time period is in the second state shown on the display screen of the first terminal.
A third detecting unit 415, configured to detect whether the first state and the second state are consistent.
A fifth processing unit 416, configured to determine that an abnormality occurs in the current network if the first state is inconsistent with the second state.
It should be noted that, in the interaction process between each unit and each module in this embodiment, reference may be made to the interaction process in the information processing method provided in the embodiments corresponding to fig. 1 to 2 and 4 to 6, and details are not described here.
The first terminal provided by the embodiment of the invention determines first input information, obtains identification information of a first action based on the first input information, detects whether the first action meets a preset condition or not based on the identification information of the first action, sends the first input information and a first timestamp to a second terminal if the first action meets the preset condition, wherein the first timestamp is a timestamp corresponding to the first input information, and finally controls an object in a frame of the first terminal to execute the first action when a second timestamp separated from the first timestamp by a first preset time period arrives; therefore, each terminal can automatically control the object to execute the action corresponding to the input information after a certain preset time interval from the time of sending the input information for controlling the object, the confirmation information of the host is not needed to wait, the problem that the operation of a non-host player in some existing games can be implemented only after the operation of the non-host player is confirmed by the host player is solved, the experience consistency of different players is ensured, and the interaction capacity of the player and the terminal is improved.
An embodiment of the present invention provides a second terminal 5, which can be applied to an information processing method provided in the embodiments corresponding to fig. 2, 4 to 6, and referring to fig. 9, the second terminal 5 includes: a fourth obtaining unit 51, a second querying unit 52, a second sending unit 53 and a sixth processing unit 54, wherein:
a fourth obtaining unit 51 for determining the second input information.
And the second query unit 52 is configured to query for identification information of the second action based on the two input information. Wherein the second action is an action to be performed by an object in a frame of the second terminal
And a second transmitting unit 53, configured to transmit the second input information and the fifth timestamp to the first terminal.
Wherein the fifth time stamp is a time stamp corresponding to the second input information.
A sixth processing unit 54, configured to control the object in the frame of the second terminal to perform the second action based on the identification information of the second action when the sixth timestamp arrives.
Based on the foregoing embodiment, in another embodiment of the present invention, referring to fig. 9, the second terminal further includes: a third receiving unit 55, a fifth acquiring unit 56, a fourth detecting unit 57, and a seventh processing unit 58, wherein:
a third receiving unit 55, configured to receive the first input information and the first timestamp sent by the first terminal.
Wherein the first time stamp is a time stamp corresponding to the first input information.
A fifth obtaining unit 56, configured to determine, based on the first input information and the first timestamp, a third state of the object in the frame when the first terminal is spaced from the first timestamp by a first preset time period.
The fifth obtaining unit 56 is further configured to determine that the object in the frame of the first terminal when the first terminal is separated from the first timestamp by the first preset time period is in a fourth state displayed on the display screen of the second terminal.
And a fourth detecting unit 57 for detecting whether the third state and the fourth state coincide.
And a seventh processing unit 58, configured to determine that an abnormality occurs in the current network if the third state is inconsistent with the fourth state.
It should be noted that, in the interaction process between each unit and each module in this embodiment, reference may be made to the interaction process in the information processing method provided in the embodiments corresponding to fig. 2, 4 to 6, and details are not described here.
The second terminal provided by the embodiment of the invention determines second input information, obtains identification information of a second action based on the second input information inquiry, then based on the identification information of the first action, the second action is an action to be executed by an object in a frame of the second terminal, sends the second input information and a fifth timestamp to the first terminal, the fifth timestamp is a timestamp corresponding to the second input information, and when a sixth timestamp separated from the fifth timestamp by a first preset time period, the object in the frame of the second terminal is controlled to execute the second action based on the identification information of the second action, so that each terminal can automatically control the object to execute the action corresponding to the input information after sending the input information for controlling the object, and does not need to wait for confirmation information of a host, thereby solving the problem that the operation of a non-host player in some existing games can be executed after the operation of the non-host player needs to be confirmed by a host player The problem of (2) is to ensure the consistency of experience of different players and improve the interaction capacity of the players and the terminal.
An embodiment of the present invention provides a first terminal 6, and as shown in fig. 10, the first terminal 6 includes: a first processor 61 and a first communication interface 62, wherein:
a first processor 61 for determining first input information; based on the first input information, inquiring to obtain identification information of the first action; the first action is an action to be executed by an object in a frame of the first terminal; detecting whether the first action meets a preset condition or not based on the identification information of the first action; if the first action meets the preset condition, sending the first input information and the first timestamp to the second terminal through the first communication interface 62; wherein the first time stamp is a time stamp corresponding to the first input information; determining a second timestamp separated from the first timestamp by a first preset time period; and controlling the object in the frame of the first terminal to execute the first action when the second time stamp arrives.
It should be noted that, in the embodiment, the interaction process between the first processor and the first communication interface may refer to the interaction process in the information processing method provided in the embodiments corresponding to fig. 1 to 2 and 4 to 6, and details are not described here.
An embodiment of the present invention provides a second terminal 7, and as shown in fig. 10, the second terminal 7 includes: a second processor 71 and a second communication interface 72, wherein:
a second processor 71 for determining second input information; based on the second input information, inquiring to obtain identification information of the second action; wherein the second action is an action to be performed by an object in a frame of the second terminal; sending the second input information and the fifth timestamp to the first terminal through the second communication interface 72; wherein the fifth timestamp is a timestamp corresponding to the second input information; determining a sixth timestamp separated from the fifth timestamp by a first preset time period; and controlling the object in the frame of the second terminal to execute the second action based on the identification information of the second action when the sixth timestamp arrives.
It should be noted that, in the embodiment, the interaction process between the second processor and the second communication interface may refer to the interaction process in the information processing method provided in the embodiments corresponding to fig. 2, 4 to 6, and details are not described here.
Based on the foregoing embodiment, another embodiment of the present invention provides an information processing system 8, which is shown in fig. 11 and may include: a first terminal a and a second terminal b, wherein:
the first terminal a can be a first terminal provided by the embodiment corresponding to fig. 8-10 in the attached drawings of the specification.
The second terminal b can be one provided by the embodiment corresponding to fig. 9-10 in the attached drawings of the specification.
In practical applications, the first obtaining Unit 41, the first querying Unit 42, the first detecting Unit 43, the first transmitting Unit 44, the first Processing Unit 45, the first receiving Unit 46, the first determining Unit 47, the second Processing Unit 48, the third Processing Unit 49, the second obtaining Unit 410, the second detecting Unit 411, the fourth Processing Unit 412, the second receiving Unit 413, the third obtaining Unit 414, the third detecting Unit 415, the fifth Processing Unit 416, the fourth obtaining Unit 51, the second querying Unit 52, the second transmitting Unit 53, the sixth Processing Unit 54, the third receiving Unit 55, the fifth obtaining Unit 56, the fourth detecting Unit 57, and the seventh Processing Unit 58 may be implemented by a Central Processing Unit (CPU), a microprocessor Unit (Micro Processor Unit, Micro signal Processing Unit), a Digital Signal Processor (DSP), or a Field Programmable Gate Array (Field Programmable Gate Array, FPGA), etc.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (15)

1. An information processing method, characterized in that the method comprises:
determining first input information;
based on the first input information, inquiring to obtain identification information of a first action; the first action is an action to be executed by an object in a frame of the first terminal;
detecting whether the first action meets a preset condition or not based on the identification information of the first action;
if the first action meets a preset condition, sending the first input information and a first timestamp to a second terminal; wherein the first timestamp is a timestamp corresponding to the first input information;
determining a second timestamp separated from the first timestamp by a first preset time period;
controlling an object in a frame of the first terminal to perform the first action when the second timestamp arrives.
2. The method of claim 1, wherein after controlling the object in the frame of the first terminal to perform the first action when the second timestamp arrives, further comprising:
receiving second input information sent by the second terminal, and acquiring a third timestamp; wherein the second input information has an association relation with the first input information, and the third timestamp is a timestamp corresponding to the second input information;
judging the relation between the second timestamp and the third timestamp;
if the third timestamp is before the second timestamp, determining that the operation of controlling the object in the frame of the first terminal to execute the first action is successful, and continuing to control the object in the frame of the first terminal to execute the first action.
3. The method of claim 2, further comprising:
and if the third timestamp is after the second timestamp, controlling the object in the frame of the first terminal to cancel the first action executed on the first input information, and returning to the state before the first timestamp arrives.
4. The method of claim 3, further comprising:
determining a fourth timestamp separated from the second timestamp by a second preset time period;
detecting whether the second input information sent by the second terminal is received before the fourth timestamp arrives;
and if the second input information sent by the second terminal is not received before the fourth timestamp arrives, performing disconnection processing on the object in the frame of the first terminal.
5. The method of claim 2, further comprising:
receiving a fifth timestamp sent by the second terminal; wherein the fifth timestamp is a timestamp corresponding to the second input information and is different from the third timestamp;
determining a first state of an object in a frame of the second terminal when the second terminal is separated from a fifth timestamp by a first preset time period based on the second input information and the fifth timestamp;
determining an object in a frame of a second terminal when the second terminal is separated from a fifth timestamp by a first preset time period, and displaying a second state on a display screen of the first terminal;
detecting whether the first state and the second state are consistent;
and if the first state is inconsistent with the second state, determining that the current network is abnormal.
6. An information processing method, characterized in that the method comprises:
determining second input information;
based on the second input information, inquiring to obtain identification information of a second action; wherein the second action is an action to be performed by an object in a frame of the second terminal;
sending the second input information and the fifth timestamp to the first terminal; wherein the fifth timestamp is a timestamp corresponding to the second input information;
determining a sixth timestamp separated from the fifth timestamp by a first preset time period;
controlling an object in a frame of the second terminal to execute the second action based on the identification information of the second action when the sixth timestamp arrives.
7. The method of claim 6, further comprising:
receiving first input information and a first timestamp sent by the first terminal; wherein the first timestamp is a timestamp corresponding to the first input information;
determining a third state of the object in the frame of the first terminal at the first preset time interval from the first timestamp based on the first input information and the first timestamp;
determining an object in a frame of the first terminal when the first terminal is separated from the first timestamp by a first preset time period, and displaying the object in a fourth state on a display screen of the second terminal;
detecting whether the third state and the fourth state are consistent;
and if the third state is inconsistent with the fourth state, determining that the current network is abnormal.
8. A first terminal, characterized in that the first terminal comprises: the device comprises a first acquisition unit, a first query unit, a first detection unit, a first sending unit and a first processing unit, wherein:
the first acquisition unit is used for determining first input information;
the first query unit is used for querying and obtaining identification information of a first action based on the first input information; the first action is an action to be executed by an object in a frame of the first terminal;
the first detection unit is used for detecting whether the first action meets a preset condition or not based on the identification information of the first action;
the first sending unit is used for sending the first input information and the first timestamp to a second terminal if the first action meets a preset condition; wherein the first timestamp is a timestamp corresponding to the first input information;
the first obtaining unit is further configured to determine a second timestamp separated from the first timestamp by a first preset time period;
the first processing unit is configured to control an object in a frame of the first terminal to perform the first action when the second timestamp arrives.
9. The first terminal of claim 8, wherein the first terminal further comprises: the device comprises a first receiving unit, a first judging unit, a second processing unit and a third processing unit, wherein:
the first receiving unit is configured to receive second input information sent by the second terminal and obtain a third timestamp; wherein the second input information has an association relation with the first input information, and the third timestamp is a timestamp corresponding to the second input information;
the first judging unit is configured to judge a relationship between the second timestamp and the third timestamp;
the second processing unit is configured to determine that the operation of controlling the object in the frame of the first terminal to execute the first action is successful if the third timestamp is before the second timestamp, and continue to control the object in the frame of the first terminal to execute the first action;
the third processing unit is configured to control, if the third timestamp is after the second timestamp, an object in a frame of the first terminal to cancel the first action performed on the first input information, and return to a state before the first timestamp arrives.
10. The first terminal of claim 9, wherein the first terminal further comprises: a second obtaining unit, a second detecting unit and a fourth processing unit, wherein:
the second obtaining unit is used for determining a fourth timestamp which is separated from the second timestamp by a second preset time period;
the second detection unit is configured to detect whether the second input information sent by the second terminal is received before the fourth timestamp arrives;
the fourth processing unit is configured to perform disconnection processing on an object in the frame of the first terminal if it is detected that the second input information sent by the second terminal is not received before the fourth timestamp arrives.
11. The first terminal of claim 9, wherein the first terminal further comprises: a second receiving unit, a third obtaining unit, a third detecting unit and a fifth processing unit, wherein:
the second receiving unit is configured to receive a fifth timestamp sent by the second terminal; wherein the fifth timestamp is a timestamp corresponding to the second input information and is different from the third timestamp;
the third acquiring unit is used for determining the first state of the object in the frame of the second terminal when the second terminal is separated from the fifth timestamp by a first preset time period based on the second input information and the fifth timestamp;
the third acquiring unit is further configured to determine a second state, in which an object in a frame of the second terminal is displayed on the display screen of the first terminal when the second terminal is separated from a fifth timestamp by a first preset time period;
the third detection unit is used for detecting whether the first state is consistent with the second state;
and the fifth processing unit is used for determining that the current network is abnormal if the first state is inconsistent with the second state.
12. A second terminal, characterized in that the second terminal comprises: a fourth acquiring unit, a second querying unit, a second sending unit and a sixth processing unit, wherein:
the fourth acquisition unit is used for determining second input information;
the second query unit is used for querying and obtaining identification information of a second action based on the second input information; wherein the second action is an action to be performed by an object in a frame of the second terminal;
the second sending unit is configured to send the second input information and the fifth timestamp to the first terminal; wherein the fifth timestamp is a timestamp corresponding to the second input information;
the fourth obtaining unit is further configured to determine a sixth timestamp separated from the fifth timestamp by a first preset time period;
the sixth processing unit is configured to control an object in a frame of the second terminal to perform the second action based on the identification information of the second action when the sixth timestamp arrives.
13. A first terminal, characterized in that the first terminal comprises: a first processor and a first communication interface, wherein:
the first processor is used for determining first input information; based on the first input information, inquiring to obtain identification information of a first action; the first action is an action to be executed by an object in a frame of the first terminal; detecting whether the first action meets a preset condition or not based on the identification information of the first action; if the first action meets a preset condition, sending the first input information and a first timestamp to a second terminal through the first communication interface; wherein the first timestamp is a timestamp corresponding to the first input information; determining a second timestamp separated from the first timestamp by a first preset time period; controlling an object in a frame of the first terminal to perform the first action when the second timestamp arrives.
14. A second terminal, characterized in that the second terminal comprises: a second processor and a second communication interface, wherein:
the second processor is used for determining second input information; based on the second input information, inquiring to obtain identification information of a second action; wherein the second action is an action to be performed by an object in a frame of the second terminal; sending the second input information and a fifth timestamp to the first terminal through the second communication interface; wherein the fifth timestamp is a timestamp corresponding to the second input information; determining a sixth timestamp separated from the fifth timestamp by a first preset time period; controlling an object in a frame of the second terminal to execute the second action based on the identification information of the second action when the sixth timestamp arrives.
15. A computer-readable storage medium on which a computer program is stored, the computer program, when being executed by a processor, implementing the information processing method according to any one of claims 1 to 5 or any one of claims 6 to 7.
CN201610952431.7A 2016-10-26 2016-10-26 Information processing method and terminal Active CN107982912B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610952431.7A CN107982912B (en) 2016-10-26 2016-10-26 Information processing method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610952431.7A CN107982912B (en) 2016-10-26 2016-10-26 Information processing method and terminal

Publications (2)

Publication Number Publication Date
CN107982912A CN107982912A (en) 2018-05-04
CN107982912B true CN107982912B (en) 2020-08-11

Family

ID=62029249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610952431.7A Active CN107982912B (en) 2016-10-26 2016-10-26 Information processing method and terminal

Country Status (1)

Country Link
CN (1) CN107982912B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114554237B (en) * 2022-02-18 2023-12-26 北京有竹居网络技术有限公司 Information processing method, device and equipment
CN114904265A (en) * 2022-04-20 2022-08-16 西安万像电子科技有限公司 Data processing method, data processing device, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102917763A (en) * 2010-05-28 2013-02-06 索尼电脑娱乐公司 Information processing device and information processing system
CN104780164A (en) * 2015-03-25 2015-07-15 腾讯科技(深圳)有限公司 Method and device for operating game client
CN104967878A (en) * 2014-11-19 2015-10-07 腾讯科技(北京)有限公司 Data processing method and server
CN105468358A (en) * 2015-11-17 2016-04-06 腾讯科技(深圳)有限公司 Mobile game data processing method and device
CN105786727A (en) * 2014-12-22 2016-07-20 中兴通讯股份有限公司 Method and device for compatibility between applications and peripherals

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9364743B2 (en) * 2012-12-21 2016-06-14 Sony Interactive Entertainment America Llc Generation of a multi-part mini-game for cloud-gaming based on recorded gameplay

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102917763A (en) * 2010-05-28 2013-02-06 索尼电脑娱乐公司 Information processing device and information processing system
CN104967878A (en) * 2014-11-19 2015-10-07 腾讯科技(北京)有限公司 Data processing method and server
CN105786727A (en) * 2014-12-22 2016-07-20 中兴通讯股份有限公司 Method and device for compatibility between applications and peripherals
CN104780164A (en) * 2015-03-25 2015-07-15 腾讯科技(深圳)有限公司 Method and device for operating game client
CN105468358A (en) * 2015-11-17 2016-04-06 腾讯科技(深圳)有限公司 Mobile game data processing method and device

Also Published As

Publication number Publication date
CN107982912A (en) 2018-05-04

Similar Documents

Publication Publication Date Title
KR102325311B1 (en) Method and apparatus for synchronously displaying game content, and storage medium
US11130055B2 (en) System and method for granting remote access to a video game executed on a video game console or network client
WO2019071829A1 (en) Method, storage medium, device and system for implementing microphone connection-based battle between hosts on pc
EP2185258B1 (en) Method for updating a multiplayer game session on a mobile device
EP3807766B1 (en) Shadow tracking of real-time interactive simulations for complex system analysis
CN105933375B (en) Method and device for monitoring microphone connection session and server
CN105771243B (en) Method and system for realizing multi-user voice interaction in mobile terminal game
JP2015524677A (en) System and method for interactive gameplay
US20170171270A1 (en) Method and electronic device for controlling video playing
US20170279748A1 (en) Information processing method and terminal, and computer storage medium
KR20050077688A (en) System and method for reestablishing the session between terminal and server
US9561438B2 (en) Method for realizing multi-party interactive communication and system thereof
WO2017071371A1 (en) Method, device, and server for implementing gaming assistance
CN107982912B (en) Information processing method and terminal
US20230362115A1 (en) Image display method and apparatus, storage medium, and electronic device
WO2018093543A1 (en) Gaming server and method to generate context-aware gaming information
CN105760308A (en) Multi-client coordinated test method and device
CN103780694B (en) The distributed networking method of wide area network real-time interactive game, apparatus and system
KR101571374B1 (en) Information management method and device
US20160226933A1 (en) Method and device for communicating between at least a first terminal and a second terminal
KR101206604B1 (en) Peer to peer communication method between online game clients
CN111600808A (en) Information processing method and device for instant messaging
CN113413614A (en) Game data processing method and device, electronic equipment and storage medium
KR101106873B1 (en) Peer to peer communication method between online game clients
EP2537568B1 (en) Method and apparatus for enabling a user to participate in a remotely accessible electronic game

Legal Events

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