diff --git a/src/main/resources/application.conf b/src/main/resources/application.conf index 9a4fc459e..2b2caa14b 100644 --- a/src/main/resources/application.conf +++ b/src/main/resources/application.conf @@ -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 diff --git a/src/main/scala/net/psforever/actors/session/support/SessionAvatarHandlers.scala b/src/main/scala/net/psforever/actors/session/support/SessionAvatarHandlers.scala index 06d7e44f1..51992e015 100644 --- a/src/main/scala/net/psforever/actors/session/support/SessionAvatarHandlers.scala +++ b/src/main/scala/net/psforever/actors/session/support/SessionAvatarHandlers.scala @@ -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 )