DoubleDeez / MDFramework

A multiplayer C# game framework for Godot 3.4 Mono.
https://discord.gg/UH49eHK
MIT License
76 stars 13 forks source link

Unique GameClock Remote Offset Per Peer #55

Open Beider opened 4 years ago

Beider commented 4 years ago

Currently the GameClock sets the remote offset to be equal to the ping of the player with the highest ping. It would be nice to have a second mode where it calculates a remote offset per player.

The solution to this would be as follows:

Eg.
P1 => Ping : 100
P2 => Ping : 150
P3 => Ping : 200

In this scenario maximum ping would be
P1 => P1 + P3 = 300
P2 => P2 + P3 = 350
P3 => P3 + P2 = 350