-
Notifications
You must be signed in to change notification settings - Fork 31
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
Add support for Iris's new text sink API #104
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much Squid! I've been really busy and wasn't sure when I would be able to work on this. I only saw the one issue. Interested to hear about performance and JITWatch things. I learned quite a bit talking to you about optimization stuff last time.
src/main/java/dan200/computercraft/client/render/TileEntityMonitorRenderer.java
Outdated
Show resolved
Hide resolved
When an index buffer grows beyond the 2^16 boundary, the type is promoted from a SHORT to an INT. However, this type is not updated in any of the existing DirectVertexBuffers, so we mis-interpret the index buffer and render garbage. To fix this, we now store the index buffer object instead (and also acquire it during upload), and then read the type from that (which is guaranteed to be always correct). This is a little more aligned to how 1.19 does things (though 1.19 does bind during upload rather than first draw).
Looks good to me 👍 |
Ahhh. I targetted the wrong branch for this. Don't know if you want me to recreate on top of |
gah! yeah just merge stable into 1.18.2 |
This is needed on Iris 1.2.5 as they change the vertex format of
RenderType.text
, so us chucking bytes in directly won't work!I'd like to profile this before merging and check that the new virtual calls are JITted away, but otherwise this is good for review.
CCing @IMS212, in case they have any comments.