Weird "flight toggle lag"
starg09 opened this issue ยท 8 comments
There's this weird situation, where people suffer a "flight toggle lag" while spectating... What this means is:
- Player is spectating
- Player is not flying and toggles fly on, or is flying and turns it off
- Initially, it looks like the toggle didn't work, but after a second or so, flight enables/disables.
This is a really annoying bug, and I've noticed it only happens to spectators (All other forms of flight won't suffer this...). If you want, I could record it so you can see what I mean more clearly... Thanks in advance :)
Would this explain it? Intentional: https://github.com/pgmann/SpectatorPlus/blob/master/SpectatorPlus/src/com/pgcraft/spectatorplus/SpectatorManagerTask.java#L29
(This task runs every second)
But, they can disable flight, as in falling to the ground. They just have lag on it... It's kind of strange to just write, let me record it xD
Spigot 1.8, although I'm pretty sure it also happened in 1.7.10. I'll record it right away...
Ok, I think I've seen this bug before. I put it down to lag... But maybe it's a deeper issue. I'm not on a computer at the moment, I'll look into it soon.
Thanks a lot! :D
Although I hardly think it's that... Without spectator, and using other forms of flight (creative, essentials, "Saads DoubleJump"...), there's absolutely no lag...
PD: About the pull request, I didn't modify the tablist prefix, I reverted it on the other commit :P
There we go, it may take some minutes to get it processed: https://www.youtube.com/watch?v=27X0scNbMg4
It's kind of hard to notice if you don't see when I'm doubletapping the spacebar... I tried to get a "pressed keys" HUD, but it didn't work as expected... The thing is, when I do it, at least twice in the video, you may see I kind of start flying, then fall to the ground, then start flying without toggling again.
EDIT: The video kind of runs bad on youtube for me, and it's short, so I'm uploading to gfycat so you can have a better look...
EDIT2: Gfy link :) https://gfycat.com/HardLimpKakarikis