Class ChunkRenderDispatcher
java.lang.Object
net.minecraft.client.renderer.chunk.ChunkRenderDispatcher
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static enum
static class
class
-
Field Summary
Modifier and TypeFieldDescriptionprivate Vec3
private final Executor
(package private) final ChunkBufferBuilderPack
private int
private final Queue<ChunkBufferBuilderPack>
private int
(package private) ClientLevel
private static final org.slf4j.Logger
private final ProcessorMailbox<Runnable>
private static final int
private static final int
(package private) final LevelRenderer
private int
private final Queue<ChunkRenderDispatcher.RenderChunk.ChunkCompileTask>
private static final VertexFormat
-
Constructor Summary
ConstructorDescriptionChunkRenderDispatcher
(ClientLevel p_194405_, LevelRenderer p_194406_, Executor p_194407_, boolean p_194408_, ChunkBufferBuilderPack p_194409_) ChunkRenderDispatcher
(ClientLevel p_194405_, LevelRenderer p_194406_, Executor p_194407_, boolean p_194408_, ChunkBufferBuilderPack p_194409_, 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
pollTask()
void
rebuildChunkSync
(ChunkRenderDispatcher.RenderChunk p_200432_, RenderRegionCache p_200433_) private void
runTask()
void
void
void
setLevel
(ClientLevel p_194411_) void
uploadChunkLayer
(BufferBuilder p_112696_, VertexBuffer p_112697_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
MAX_WORKERS_32_BIT
private static final int MAX_WORKERS_32_BIT- See Also:
-
VERTEX_FORMAT
-
MAX_HIGH_PRIORITY_QUOTA
private static final int MAX_HIGH_PRIORITY_QUOTA- See Also:
-
toBatchHighPriority
private final PriorityBlockingQueue<ChunkRenderDispatcher.RenderChunk.ChunkCompileTask> toBatchHighPriority -
toBatchLowPriority
-
highPriorityQuota
private int highPriorityQuota -
freeBuffers
-
toUpload
-
toBatchCount
private volatile int toBatchCount -
freeBufferCount
private volatile int freeBufferCount -
fixedBuffers
-
mailbox
-
executor
-
level
ClientLevel level -
renderer
-
camera
-
-
Constructor Details
-
ChunkRenderDispatcher
public ChunkRenderDispatcher(ClientLevel p_194405_, LevelRenderer p_194406_, Executor p_194407_, boolean p_194408_, ChunkBufferBuilderPack p_194409_) -
ChunkRenderDispatcher
public ChunkRenderDispatcher(ClientLevel p_194405_, LevelRenderer p_194406_, Executor p_194407_, boolean p_194408_, ChunkBufferBuilderPack p_194409_, int countRenderBuilders)
-
-
Method Details
-
setLevel
-
runTask
private void runTask() -
pollTask
-
getStats
-
getToBatchCount
public int getToBatchCount() -
getToUpload
public int getToUpload() -
getFreeBufferCount
public int getFreeBufferCount() -
setCamera
-
getCameraPosition
-
uploadAllPendingUploads
public void uploadAllPendingUploads() -
rebuildChunkSync
public void rebuildChunkSync(ChunkRenderDispatcher.RenderChunk p_200432_, RenderRegionCache p_200433_) -
blockUntilClear
public void blockUntilClear() -
schedule
-
uploadChunkLayer
-
doUploadChunkLayer
-
clearBatchQueue
private void clearBatchQueue() -
isQueueEmpty
public boolean isQueueEmpty() -
dispose
public void dispose()
-