Tuesday, December 6, 2022
HomeGame DevelopmentThe way to redact an occasion in a prediction/reconciliation networking mannequin

The way to redact an occasion in a prediction/reconciliation networking mannequin


I am scuffling with tips on how to deal with a selected scenario in a prediction/reconciliation server mannequin.

  1. At t=0, Participant A is firing. Participant B is shifting into A’s line of fireside
  2. At t=1, Participant B strikes into A’s line of fireside and will get harm, decreasing well being from 100 to 50
  3. At t=2, the server receives enter from participant B for t=1. That enter confirms that participant B moved into the road of fireside, so the server responds with a packet for t=1 indicating that the participant’s well being is now 50
  4. Participant B receives this packet, and noting that well being dropped, flashes the display purple.
  5. The server receives enter from Participant A for t=1, indicating that A stopped firing. The server rolls again to t=1, re-simulates, and realizes participant B didn’t get hit.
  6. The following state despatched to B signifies well being=100.

How do I deal with the truth that shopper B confirmed a purple display flash based mostly on data acquired from the server, after which later discovered that they weren’t in actual fact harm?

This sounds a bit just like the scenario of e.g. Supply Video games favoring the shooter. Nevertheless, on this case, even participant A didn’t suppose they hit participant B on their very own display.

Can the server not ship a state for t=1 till it has inputs from each participant for that body? That looks as if it will trigger a single latent participant to decelerate the expertise for everybody else.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments