Skip to content

optimize beacon beam rendering #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 13, 2024
Merged

Conversation

MicrocontrollersDev
Copy link

Description

Minecraft typically renders the beacon beam twice per frame. This is noticeable by comparing the opacity of the
beacon beam when the beacon is in view versus when it's out of view (fly 50 blocks above, for instance).

This fix is based off a Forge PR that was added to 1.11.x:
https://github.com/MinecraftForge/MinecraftForge/pull/3651/files

Related Issue(s)

Fixes #38

How to test

Place a beacon beam, check opacity, go up and check opacity. You can look up and down to get the beacon block in and out of view to test once you are high up

Release Notes

Optimize beacon beam rendering by only rendering the beacon beam once instead of twice per frame.

Documentation

@Wyvest Wyvest merged commit 3e005b9 into Polyfrost:main Jul 13, 2024
1 check passed
@MicrocontrollersDev MicrocontrollersDev deleted the beacon branch July 13, 2024 06:26
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.

Performance improvement: beacon beams are rendered twice per frame
2 participants