mojira.dev
MC-147305

Player crouches with a delay

When I press the sneak button, player crouches with some delay.

Linked issues

Attachments

Comments 18

Did some testing and there is a reproducible 0.2 second (4 tick) delay between the player pressing the crouch button and the character sneaking

Can confirm. This is easily noticed while spamming the sneak button. It just doesn't have the same effect anymore.

Confirmed. Amount of delay varies, but is usually quite long and noticeable.

Confirmed.

I just found out what the technical reason is for this. The client does not update its own metadata when the player starts/stops sneaking. The metadata has to be updated by the server. Only after the metadata has been updated, the client displays the animation (and activates part of the functionality). The delay is caused by network delay and due to the server updating the metadata not until the next tick.

I guess the responsible developer will probably be aware of this, but I wanted to mention it anyway. Maybe it helps 🙂

FYI: I noticed this, because I wasn't updating the clients own metadata on my custom server software at all. This worked fine in versions prior to 19w14a (or at least in 1.13.2), but in 19w14b sneaking wasn't working at all. After removing the check for not updating the clients own metadata, the issue vanished (though sneaking is obviously still delayed).

8 more comments

Delay WAS more or less resolved in pre-1 but it was still there.

Confirmed for Prerelease 2

Is this still an issue in 1.13 pre-3?

only one way to find out

Fixed for 1.14-pre3. May pop up in future pre-releases though.

gaspoweredpick

I doubt that. Also can confirm that sneaking now works properly in 1.14 Pre-Release 3

Gravinser

migrated

Confirmed

crouching, sneaking

Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14 Pre-Release 1, Minecraft 1.14 Pre-Release 2

Minecraft 1.14 Pre-Release 1, Minecraft 1.14 Pre-Release 3

Retrieved