Skip to content

fix: Minecraft and client hud layering#6191

Merged
MineGame159 merged 1 commit intoMeteorDevelopment:masterfrom
cattyngmd:fix/hud-layering
Mar 16, 2026
Merged

fix: Minecraft and client hud layering#6191
MineGame159 merged 1 commit intoMeteorDevelopment:masterfrom
cattyngmd:fix/hud-layering

Conversation

@cattyngmd
Copy link
Copy Markdown
Contributor

Type of change

  • Bug fix
  • New feature

Description

fixes meteor hud being rendered below vanilla minecraft hud.
you can say that it will tank fps bcs i just split hud rendering and minecraft gui rendering in 2 render calls instead of 1 like in vanilla but on my machine my fps stayed almost the same.

Related issues

#5868
#6084

How Has This Been Tested?

Tested on my home pc:

  • 418fps - before
  • 412fps - after
image

Checklist:

  • My code follows the style guidelines of this project.
  • I have added comments to my code in more complex areas.
  • I have tested the code in both development and production environments.

@MineGame159 MineGame159 merged commit 6f385e2 into MeteorDevelopment:master Mar 16, 2026
1 check passed
@ytcyde
Copy link
Copy Markdown

ytcyde commented Mar 16, 2026

oh this was easier than how I did my fix

@ytcyde
Copy link
Copy Markdown

ytcyde commented Mar 16, 2026

For reference in my project what I did to fix this issue was hook this in GameRenderer

    @Inject(
            method = "render(Lnet/minecraft/client/DeltaTracker;Z)V",
            at = @At(
                    value = "INVOKE",
                    target = "Lnet/minecraft/client/gui/render/GuiRenderer;render(Lcom/mojang/blaze3d/buffers/GpuBufferSlice;)V",
                    shift = At.Shift.AFTER
            )
    )

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.

3 participants