sodium-fabric icon indicating copy to clipboard operation
sodium-fabric copied to clipboard

Avoid List#get in BufferBuilder#nextElement

Open Moulberry opened this issue 1 year ago • 0 comments

Calling List#get in BufferBuilder#nextElement has to perform a lot of pointer accesses.

BufferBuilder -> VertexFormat -> List -> Map -> Array -> Entry -> VertexFormatElement

Let's not do that, shall we?

Use a single array inside BufferBuilder instead

Moulberry avatar Jun 07 '23 23:06 Moulberry