Skip to content

Conversation

AzureAaron
Copy link
Collaborator

@AzureAaron AzureAaron commented Nov 12, 2023

The rendering of filled boxes is now batched meaning that all filled boxes are rendered in a single draw call as opposed to rendering each individual box in its own draw call. This gives approximately a 4x (~8% to ~2% of render thread tick) performance boost when rendering quite a few filled boxes per frame.

This also batches the rendering of beacon beams, improving performance by ~4.8x (~34% to ~7% of render thread tick) when many are in view.

Also adds compatibility for Sodium's brand new DeferredRenderTask class which replaces recordRenderCall as in Sodium 0.5.4 calling that method will result in an exception being thrown. CaffeineMC/sodium@bc3c47b

@AzureAaron AzureAaron added the reviews needed This PR needs reviews label Nov 12, 2023
@AzureAaron AzureAaron added this to the 1.16 milestone Nov 12, 2023
@AzureAaron AzureAaron marked this pull request as draft November 12, 2023 02:08
@AzureAaron AzureAaron marked this pull request as ready for review November 12, 2023 02:32
@AzureAaron AzureAaron marked this pull request as draft November 12, 2023 04:59
@AzureAaron
Copy link
Collaborator Author

After some fixes and improvements this is ready for review.

@AzureAaron AzureAaron marked this pull request as ready for review November 12, 2023 07:50
kevinthegreat1
kevinthegreat1 previously approved these changes Nov 14, 2023
@kevinthegreat1 kevinthegreat1 added the merge me please Pull requests that are ready to merge label Nov 14, 2023
@AzureAaron AzureAaron merged commit 41cc659 into SkyblockerMod:master Nov 14, 2023
@AzureAaron AzureAaron deleted the batched-rendering branch November 14, 2023 02:33
@AzureAaron AzureAaron removed the merge me please Pull requests that are ready to merge label Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reviews needed This PR needs reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants