Are there enough bullets? What are the hit conditions? How much health does the opponent have left?

Only after the server figures all these things out will it transmit the data back to the client.

If what the client side executed is denied by the server, then it attempts to correct it.

Only when the server says the target is dead will the client render the opponent's death animation effect.

"Ah! Yes, it should be like this!"

Carmack's eyes lit up.

This sense of real-time responsiveness was precisely what online gaming lacked the most.

Let the client coax the players into playing first as much as possible, and leave the rest for the server to slowly figure out a solution for.

Thinking of this, he immediately wanted to leave his seat and run off to start working.

But Jesse Lin immediately called out to stop him.

"Don't rush. We're nowhere near done yet; this is only the first layer of insurance."

Jesse Lin directly reached out to wipe a blank space on the white board, rubbed his hands together to brush off the ink, and then continued, "Although doing this solves the problem of real-time response, it will cause a brand-new bug in 《Quake》."

He wrote two lines of text on it.

【favor the shooter】 (Favor the Shooter)

【responsiveness】 (Responsiveness)

These two concepts correspond to two completely different optimization mindsets on the path of FPS games.

The client-side prediction designed just now is actually a very typical responsiveness design.

The advocacy of responsiveness design is: when a player executes an operation, they should immediately receive feedback.

"Look, what is the biggest advantage of this design? Of course, it aligns with the player's intuition; the controls are crisp and concise, feeling simply like playing a local game with zero sense of online latency."

Jesse Lin tapped on the position where 'Responsiveness' was written.

"Yet it is not perfect. Its biggest problem is... failing to hit people."

Carmack blinked and waited for Jesse Lin to continue.

Because having these two together right now was completely like the left brain fighting the right brain.

Just moments ago, it was said that client-side prediction cannot interfere with the server's judgment, which is the only way to ensure consistency and sufficient fairness.

But now, the issue of failing to hit people was being brought up again.

"The bouncing back caused by prediction errors, the situation where you can only hear gunshots but no shots were fired due to incorrect bullet counts, hitting someone yet registering as a miss..."

Jesse Lin rattled off the sins of current online systems one by one as if counting his family's treasures,

"For this reason, we need to introduce a second optimization strategy."

His hand moved upward, tapping on the line for 【favor the shooter】,

"When the server processes information, we need to be slightly... biased, favoring the shooter."

"Won't that lead to..."

Sam spoke up, but before he could finish, he was interrupted by Jesse Lin.

"Don't rush. I'm not saying to let the shooter handle things completely locally; whether a hit occurs or not is still the server's responsibility."

"..."

At this, neither Sam nor Carmack had any ideas left, quietly waiting for Jesse Lin to give the final answer.

"Lag compensation."

Jesse Lin explained,

"Prediction solves hand-feel, while lag compensation solves fairness."

He drew three blocks on the board, letting two of them connect via an arrow to the topmost one.

Obviously, this was a very simplified client/server model.

"You see, assuming our latency is 100 milliseconds, the image we see in the game is actually content from 100 milliseconds ago. If we open fire at this time, what we hit is also the opponent from 100 milliseconds ago."

That was terrible.

Theoretically speaking, if a player aims with absolute precision at a target to open fire, under such circumstances, it is utterly impossible to hit a moving target.

Unless this expert was badass enough to accurately calculate their own real-time latency, and based on various factors such as the opponent's current movement state, psychological condition, and tactical strategy, comprehensively deduce the opponent's next move, and aim at the corresponding position in advance.

But this was obviously impossible.

Professional players at most just calculate a lead to track-fire.

True complete prediction is simply not something a human brain can solve.

Even a computer cannot calculate it completely.

"Look, the problem lies right here. Because of this, players will have a bizarre sense of disconnection where they clearly fired, clearly aimed, clearly hit, and even saw blood spurt from the target's head, yet nothing happens at all and not a single shred of health is lost."

"And the solution to this problem is also very simple."

Jesse Lin reached out again and wrote down a single word.

【rewind】

Of course not the kind in Isaac, but it indeed shared a similar philosophy.

"Rewind, or to be precise, server rewind."

"Instead of calculating in real-time, the server saves a snapshot containing all players from the last several hundred milliseconds."

This was Valve's signature trump card.

Compared to the previous prediction, the importance of this system was completely next-generation, completely solving the distress of failing to hit people in high-latency environments.

"Snapshots within several hundred milliseconds..."

Carmack murmured, suddenly experiencing a flash of inspiration as if he guessed what Jesse Lin meant,

"Jesse, you mean... when the player's shooting information is sent to the server, instead of processing it based on the real-time state, it... checks the snapshots?"

"That's right."

Jesse Lin nodded in satisfaction, a smile appearing on his face,

"We let the server judge... what the world looked like at the exact moment the player pulled the trigger."

When the network packet is sent to the server, the server will retrieve the corresponding cache based on the state to check for hits or other information.

After completing the calculation, it returns the result and necessary correction information back to the player's side.

The entire process will probably increase latency by a few milliseconds compared to the original, but the resulting effect is definitely worth it.

"I see..."

Carmack nodded thoughtfully, his train of thought instantly unlocked.

Sam, sitting to the side, carefully looked at the things on the white board.

His technical skills couldn't keep up with the two of them by a long shot, but he was a solid, veteran gamer, and looked at issues from his own perspective.

After finally struggling to understand this mechanism, Sam spoke up to interrupt the two who were still muttering and deeply discussing algorithm details.

"However, if it's like this... the experience for the person being shot will become terrible again, right?"

Sam simulated that scenario in his head and instantly caught one of the most serious problems.

"If I operate my character to peek and return behind a wall against the opponent, wouldn't there be a situation where I've already hidden behind the wall, yet still get killed? It would be just like wall-banging."

This scheme sounded very sweet; the shooter would always get an excellent gaming experience, playing just like a local game.

But upon closer inspection, the problems were equally numerous.

Jesse Lin seemed to have glossed over the problem by avoiding the heavy and dwelling on the light, without curing the root cause at all.

Hearing this, Jesse Lin raised an eyebrow and looked at him with slight surprise.

Sam had touched upon the most essential core of FPS network design.

"You're right, Sam, but unfortunately... this is an unsolvable problem, at least for now."

Jesse Lin gently shook his head.

Carmack also reacted immediately and helped explain to Sam:

"Sam, the experiences of the shooter and the person being shot cannot be satisfied simultaneously; it doesn't hold up from a mathematical perspective."

'If I hit, it should count' and 'If I dodged, it shouldn't count'.

These two ideas, when objective network latency exists, are things that cannot simultaneously hold true from a mathematical standpoint.

Even modern FPS games have failed to completely solve this age-old problem.

No one can achieve a perfect solution to it.

At most, it's about optimization and mitigation, making such situations happen as rarely as possible, or at least making them less obvious.

"We can optimize this to a certain extent by limiting the rewind time, adopting different processing modes for different weapons and environments. Although we can't completely solve it, we can ensure that the vast majority of players have a sufficiently excellent gaming experience."

In terms of FPS network optimization, it is truly a case of 'different strokes for different folks'.

Almost every modern FPS work possesses its own unique optimization logic.

The shooter-biased processing of the Valve faction directly determines the entire ecosystem of CS.

In Valve's mind, they would rather sacrifice a portion of the shot player's gaming experience to give players the best possible shooting feel.

This scheme is highly suitable for low-TTK FPS games, meaning works where victory or defeat is decided within just a few shots.

Under the Valve faction, there is also an outlier—《Valorant》.

Riot deeply studied Valve's optimization strategy and added some of its own understanding on top of it.

It allows low-latency players to receive certain preferential treatment, strictly limits the length of the rewind window, and increases the server correction frequency.

The gaming experience for high-ping players noticeably drops, but what is gained in exchange is higher competitive fairness.

In a long-TTK game environment, whether it's Valve or Riot, their schemes are inappropriate.

The ones that do relatively well in this aspect... although it sounds a bit abstract, Respawn's 《Apex》 certainly has its own merits.

Respawn's philosophy is very simple: players should first feel like they are flexible monkeys.

Various maneuver behaviors and movement operations need to be guaranteed with the highest priority, ensuring 《Apex》's sufficiently silky movement experience.

Besides these two major factions, there is also a category of long-TTK, small-map competitive works that combine both styles.

Blizzard's 《Overwatch》.

When it comes to design in network synchronization, OW is definitely one of the most complex and advanced.

The addition of various fancy skills and mechanisms makes it impossible for OW to use the same set of network strategies to face all environments.

This really has no reference value; it is completely a unique design made specifically for OW as a single game.

Beyond that are server-supremacy schemes like 《Escape from Tarkov》.

Facing this demand, there is simply no universal unified solution; specialized countermeasures need to be taken according to the game type.

Hmm...

If one insists on a perfect solution, it does actually exist.

"If we really want to completely solve the problem, we can only let players upgrade their broadband..."