cominixo / BetterF3

A Fabric mod for Minecraft that provides a highly customizable, more human-readable Debug HUD.
MIT License
137 stars 34 forks source link

[Bug]: F3 toggle animation is not framerate independent #66

Open TheGameratorT opened 2 years ago

TheGameratorT commented 2 years ago

Describe the Bug

When you toggle F3 to display the debug information, the animation will go faster or slower depending on the frames per second.

Steps to Reproduce

Change your target FPS to a maximum of 5 FPS then enable debug information by pressing F3.

Expected Behavior

The animation sliding in and out speed should be consistent regardless of the framerate.

Screenshots

No response

Modloader Type

Fabric

Modloader Version

0.13.0

Mod Version

1.2.2 for MC 1.18

Log Output

No response

Additional Context

Using MinecraftClient.getInstance().getLastFrameDuration() where the animation progresses could work.

This is not that big of an issue since there is a animation speed setting, however if lag occurs it will slow down.