even if the player seems to be standing completely still, send an update packet once in a while (1500ms)

This commit is contained in:
Fate-JH 2023-05-09 12:22:01 -04:00
parent a664aebb89
commit 561b23d265
2 changed files with 2 additions and 2 deletions

View file

@ -211,7 +211,7 @@ game {
# Use the index of that sample distance from this sequence in the sequence `delays` below.
ranges = [150, 300, 400]
# The absolute time delay before a successful packet must be dispatched regardless of distance. (s)
delay-max = 1000
delay-max = 1500
# The time delays for each distance range before a successful packet must be dispatched. [s]
# The index for an entry in this sequence is expected to be discovered using the `ranges` sequence above.
# Delays between packets may not be as precise as desired

View file

@ -104,10 +104,10 @@ class SessionAvatarHandlers(
} //ms
if (!wasVisible ||
!previouslyInDrawableRange ||
durationSince > drawConfig.delayMax ||
(!lastMsg.contains(pstateToSave) &&
(canSeeReallyFar ||
currentDistance < drawConfig.rangeMin * drawConfig.rangeMin ||
durationSince > drawConfig.delayMax ||
sessionData.canSeeReallyFar ||
durationSince > targetDelay
)