Skip to content

Fix Extreme Z-fighting#5057

Merged
Ghostipedia merged 3 commits into
1.21from
gp/1.21/render-fixing
Jul 4, 2026
Merged

Fix Extreme Z-fighting#5057
Ghostipedia merged 3 commits into
1.21from
gp/1.21/render-fixing

Conversation

@Ghostipedia

Copy link
Copy Markdown
Member

What

Fixes Z-fighting for the most part within the view distance of a player, most blocks are resilient to z-fighting to up to 50+ blocks away now.

Implementation Details

Most offsets were adjusted, with the tradeoff being a very very slight gap that is only noticable if you stare at a machine extremely closely or use a spyglass at a certain angle.

Yes, we are trading the perfect illusion of flushness for resiliance here. A more proper solution would be only having a single overlay layer that is composited by all our overlays and then given an emissive mask. But that is outside the scope of this PR.

AI Usage

  • [ x ] Yes AI driven tools were used for this pull request.
    If you answered yes, please fill out the following information

Agents Used

Claude Fable 5

Agent Usage

it did the primary review of our offsets and suggested new offsets that minimized faces z-fighting as well as being too far away.

Outcome

Way less z-fighting

How Was This Tested

Multiple users were requested to load into the branch on their IDE with a variety of different GPUS
Tested GPUS

  • 4070ti
  • Radeon 6600
  • Radeon 6700 XT on Linux (which is worth noting)

Additional Information

while not perfect, it's enough

@Ghostipedia Ghostipedia requested a review from a team as a code owner July 4, 2026 21:12
@github-actions github-actions Bot added the 1.21 label Jul 4, 2026
@Ghostipedia Ghostipedia added type: bugfix General bug fixes Release: API - X.0.0 Major Breaking Refactors that MUST be in a API-Breaking Release labels Jul 4, 2026
@github-actions github-actions Bot added the Tests: Failed Game Tests have failed on this PR label Jul 4, 2026

@htmlcsjs htmlcsjs left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Holy json slop, lgtm though :trollface:

@Ghostipedia Ghostipedia merged commit 9d10011 into 1.21 Jul 4, 2026
4 of 7 checks passed
@Ghostipedia Ghostipedia deleted the gp/1.21/render-fixing branch July 4, 2026 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.21 Release: API - X.0.0 Major Breaking Refactors that MUST be in a API-Breaking Release Tests: Failed Game Tests have failed on this PR type: bugfix General bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants