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

Optimize chunk rendering #106

Merged
merged 4 commits into from
Jan 29, 2024
Merged

Optimize chunk rendering #106

merged 4 commits into from
Jan 29, 2024

Conversation

japsuu
Copy link
Owner

@japsuu japsuu commented Jan 29, 2024

japsuu and others added 4 commits January 29, 2024 09:17
The palette no longer does unnecessary BlockState.EqualsNonAlloc checks between the new and old block. Previously the check was ran even if the set palette entry did not contain a block.
Transparent render pass is no longer executed for chunks that do not contain any translucent blocks.

This increased the average FPS ~70%
This change was made to increase readability, since conceptually it's much easier to think of Chunks as cubic chunks, rather than "columns of subchunks".
Rename Chunk to ChunkColumn and SubChunk to Chunk
@japsuu japsuu merged commit d2fab1c into master Jan 29, 2024
6 checks passed
@japsuu japsuu deleted the optimize-chunk-rendering branch January 29, 2024 08:04
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.

Chunks render transparent meshes even when they don't contain any
1 participant