Class ChunkRenderDispatcher
java.lang.Object
net.minecraft.client.renderer.chunk.ChunkRenderDispatcher
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
static class
class
-
Field Summary
Modifier and TypeFieldDescriptionprivate Vec3
private Executor
(package private) ChunkBufferBuilderPack
private int
private Queue<ChunkBufferBuilderPack>
(package private) Level
private static org.apache.logging.log4j.Logger
private ProcessorMailbox<Runnable>
private static int
(package private) LevelRenderer
private int
private static VertexFormat
-
Constructor Summary
ConstructorDescriptionChunkRenderDispatcher(Level p_112686_, LevelRenderer p_112687_, Executor p_112688_, boolean p_112689_, ChunkBufferBuilderPack p_112690_)
ChunkRenderDispatcher(Level p_112686_, LevelRenderer p_112687_, Executor p_112688_, boolean p_112689_, ChunkBufferBuilderPack p_112690_, int countRenderBuilders)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
private void
void
dispose()
private CompletableFuture<Void>
doUploadChunkLayer(BufferBuilder p_112721_, VertexBuffer p_112722_)
int
getStats()
int
int
boolean
void
rebuildChunkSync(ChunkRenderDispatcher.RenderChunk p_112716_)
private void
runTask()
void
void
void
boolean
uploadChunkLayer(BufferBuilder p_112696_, VertexBuffer p_112697_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
MAX_WORKERS_32_BIT
private static final int MAX_WORKERS_32_BIT- See Also:
- Constant Field Values
-
VERTEX_FORMAT
-
toBatch
-
freeBuffers
-
toUpload
-
toBatchCount
private volatile int toBatchCount -
freeBufferCount
private volatile int freeBufferCount -
fixedBuffers
-
mailbox
-
executor
-
level
Level level -
renderer
-
camera
-
-
Constructor Details
-
ChunkRenderDispatcher
public ChunkRenderDispatcher(Level p_112686_, LevelRenderer p_112687_, Executor p_112688_, boolean p_112689_, ChunkBufferBuilderPack p_112690_) -
ChunkRenderDispatcher
public ChunkRenderDispatcher(Level p_112686_, LevelRenderer p_112687_, Executor p_112688_, boolean p_112689_, ChunkBufferBuilderPack p_112690_, int countRenderBuilders)
-
-
Method Details
-
setLevel
-
runTask
private void runTask() -
getStats
-
getToBatchCount
public int getToBatchCount() -
getToUpload
public int getToUpload() -
getFreeBufferCount
public int getFreeBufferCount() -
setCamera
-
getCameraPosition
-
uploadAllPendingUploads
public boolean uploadAllPendingUploads() -
rebuildChunkSync
-
blockUntilClear
public void blockUntilClear() -
schedule
-
uploadChunkLayer
-
doUploadChunkLayer
private CompletableFuture<Void> doUploadChunkLayer(BufferBuilder p_112721_, VertexBuffer p_112722_) -
clearBatchQueue
private void clearBatchQueue() -
isQueueEmpty
public boolean isQueueEmpty() -
dispose
public void dispose()
-