Exordium

Exordium

990k Downloads

Modify `partialTick` properly based on the HUD refresh rate

decce6 opened this issue ยท 1 comments

commented

Exordium reduces the refresh rate of HUD elements but does not modify partialTick. This means animations will go slower in lower FPS.

To reproduce:

  • Do /effect give @s minecraft:hunger 30 255, so the food bar starts bouncing up and down quickly
  • Set the UI Framerate to 5 in Exordium (not required, but this makes the issue more visible)
  • You should be able to notice the animation is much slower with Exordium

The fix would be to modify the return values of net.minecraft.client.DeltaTracker.Timer based on the UI FPS limit and the game FPS.

commented

For your reference: this is my fix in Gnetum. It's for Minecraft 1.21.1, but the latest version should work similarly.