Skip to content
This repository has been archived by the owner on Dec 20, 2021. It is now read-only.

UseTeleportView client lag on UnsetTeleportViewDelay occurrence. #26

Open
mibby opened this issue Apr 6, 2019 · 3 comments
Open

UseTeleportView client lag on UnsetTeleportViewDelay occurrence. #26

mibby opened this issue Apr 6, 2019 · 3 comments
Assignees
Labels
accepted This bug is valid / This feature is gonna be added. enhancement New feature or request

Comments

@mibby
Copy link

mibby commented Apr 6, 2019

BestViewDistance compiled as of commit 8e335e8 with all 5 active pull requests as of 4/4.
Paper dev (Spigot 1.13.2)
ProtocolSupport dev 374

Config
https://paste.ubuntu.com/p/kvhNdtyZ3c/

I noticed that on each teleport, the client lags after 3 seconds when the UnsetTeleportViewDelay occurs - when raising the teleport view distance from 4 to the full 16. Is there any way to lessen this impact and gradually load a larger view distance? As with this occurrence is a sudden client lag spike 3 seconds after each teleport.

@graywolf336
Copy link
Contributor

Idea: every second add an additional one or two view distance to lessen the impact on the clients (actually, making it configurable would be better).

@graywolf336
Copy link
Contributor

@mibby on my fork I have implemented this, as I was getting this too since we had the full 32 view distance at times.

Added it there and you can download the developmental build. graywolf336@e8c7f3e

@sofianedjerbi
Copy link
Owner

sofianedjerbi commented Jul 1, 2019

graywolf336/BestViewDistance@e8c7f3e is a good idea but this will produce a lot of lag server side.
However I plan to create a better version of graywolf336's commit, incrementally setting view distance when player is subject to a certain type of event.

@sofianedjerbi sofianedjerbi self-assigned this Jul 1, 2019
@sofianedjerbi sofianedjerbi added accepted This bug is valid / This feature is gonna be added. enhancement New feature or request labels Jul 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accepted This bug is valid / This feature is gonna be added. enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants