-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LNX-164 Equally synchronise Mati suggestion players relative to server (
#29) * LNX-164 Add better choosing time to get state * LNX-164 Added acceptable delay * LNX-164 After testing I found out that this sollution is most consistent. Max range of gets is about 0.15s. Gets on scene host appear after 0.02s. All in all, lags still show up, but more rarely than before this bugfix implementation * LNX-164 Removed junk script * lnx-164 Delay based on previous delays, so we can send get request a little bit before this time * Remove junk file * Cleaned after junk file * LNX164 Fixes suggested by * Fixed typo * LNX-164 removed variable which wasnt used * LNX-164 Starting with -1 tick not 0
- Loading branch information
Showing
3 changed files
with
42 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
extends Node | ||
|
||
const DEFAULT_GET_STATE_WAIT_TIME: float = 1.0 | ||
const THRESHOLD_OF_SECOND_ROUNDING: float = 0.85 | ||
const DELAYS_LIST_SIZE: int = 10 | ||
const TICKS_WITHOUT_SYNCHRONIZATION: int = 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters