Skip to content

Fix float precision loss in ClientUtil.getCurrentTick() on long-uptime worlds - #884

Open
ImBit wants to merge 1 commit into
bernie-g:mainfrom
ImBit:main
Open

Fix float precision loss in ClientUtil.getCurrentTick() on long-uptime worlds#884
ImBit wants to merge 1 commit into
bernie-g:mainfrom
ImBit:main

Conversation

@ImBit

@ImBit ImBit commented Jul 21, 2026

Copy link
Copy Markdown

getCurrentTick() casts level.getGameTime() to a float before adding partial tick. This results in animation stutter - worse for older worlds.

This fixes animation stutter in old server worlds. Tested on worlds with gameTime < 100k ticks & gameTime >1b ticks: with the latter stuttering beforehand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant