Skip to content
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

Apply BufferBuilder optimizations via delegate #2241

Merged
merged 6 commits into from
Jan 26, 2024

Conversation

embeddedt
Copy link
Contributor

This PR implements #2240. The original BufferBuilder method implementations have been restored, and a new wrapper class is created that is returned by VertexConsumerProvider.Immediate.

Please feel free to critique the implementation; it was put together relatively quickly (and then many hours were spent debugging batching being broken).

@MeeniMc
Copy link
Contributor

MeeniMc commented Jan 25, 2024

I rebased this on dev (it rebases clean) and ran it in RestWorld in combination with the Caxton mod.

  1. It does fix the defect listed in Incompatibility with Caxton: Outlined text misrendered #2218 👍
  2. It does not introduce new defects 👍
  3. I did not see a performance difference (seat of the pants, no hard numbers beside FPS looking at the same scene) 👍
  4. I ran with a number of commonly deployed mods that I though would be relevant (e.g., Continuity with Xali's pack, immediately fast, EBE, EMF/ETF), there were no issues 👍 . I could not run with Iris (presumably not this pr's fault) ❓ .

Overall that looks good.

this.writtenAttributes = 0;
}

public void reset() {
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't appear to be used.

@jellysquid3 jellysquid3 merged commit 1cc23f1 into CaffeineMC:dev Jan 26, 2024
IMS212 added a commit that referenced this pull request Feb 8, 2024
IMS212 added a commit that referenced this pull request Feb 8, 2024
IMS212 added a commit that referenced this pull request Feb 8, 2024
jellysquid3 added a commit that referenced this pull request Feb 12, 2024
@embeddedt embeddedt deleted the issue-2240 branch February 18, 2024 00:04
thejudge156 pushed a commit to QuestCraftPlusPlus/sodium-fabric that referenced this pull request Mar 31, 2024
IMS212 pushed a commit to IMS212/sodium-fabric that referenced this pull request Aug 6, 2024
IMS212 added a commit to IMS212/sodium-fabric that referenced this pull request Aug 6, 2024
IMS212 pushed a commit to IMS212/sodium-fabric that referenced this pull request Aug 6, 2024
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