Conversation
The projection was getting rebuilt from scratch every frame for every schematic in the hotbar. Cache the structure per multiblock instead. Batch the phantoms and outline boxes too, so it's not a shader bind and a tessellator batch per block. Two bugs while I was in here. processAll only walked the non-empty layers, so a structure with a gap in it would lose everything above the gap. And beginLines never put lighting or line width back, which leaked onto whatever rendered after.
Author
|
Including my 1.12.2 properties file shared over all my 1.12.2 mods. It sits in a folder higher than the repo. ..\common |
Owner
|
Merged into it's own branch as 1.12.2, cheers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Working version if you want to pull it in and release it. Make sure to commit it to a new branch and not overwrite your existing 1.21.1 branch.