-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
[1.21.1] Feature: Add cached ber rendering pipeline #1816
base: 1.21.1
Are you sure you want to change the base?
Conversation
|
This is an interesting PR. We need to be careful not to accept something that will bring a large maintenance burden though. Out of curiosity, how does this PR compare to static chunk geometry? |
This PR supports custom Besides these, it doesn't differ much from static chunk geometry, regardless of whether optimization mods are installed. |
@ZhuRuoLing, this pull request has conflicts, please resolve them for this PR to move forward. |
"cached" means the rendering pipeline will cache those verticles put by a custom renderer.
To use the rendering pipeline, users would implement the method
IBlockEntityRendererExtension#renderCached
, then notify the pipeline that there has something changed and the vertex cache need to be rebuilt.The entire pipeline looks like some sort of chunk geometry, but users do not need to register the RenderTypes they used into a list.
This rendering pipeline can provide exceptional performance when rendering fixed vertices for BER and has great compatibility with other optimization mods like Embeddium and Sodium.