Class ChunkRenderDispatcher
java.lang.Object
net.minecraft.client.renderer.chunk.ChunkRenderDispatcher
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
(package private) static enum
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate Vector3d
private final Executor
private final RegionRenderCacheBuilder
private int
private final Queue<RegionRenderCacheBuilder>
private World
private static final org.apache.logging.log4j.Logger
private final DelegatedTaskExecutor<Runnable>
private final WorldRenderer
private final PriorityQueue<ChunkRenderDispatcher.ChunkRender.ChunkRenderTask>
private int
-
Constructor Summary
ConstructorDescriptionChunkRenderDispatcher
(World p_i226020_1_, WorldRenderer p_i226020_2_, Executor p_i226020_3_, boolean p_i226020_4_, RegionRenderCacheBuilder p_i226020_5_) ChunkRenderDispatcher
(World p_i226020_1_, WorldRenderer p_i226020_2_, Executor p_i226020_3_, boolean p_i226020_4_, RegionRenderCacheBuilder p_i226020_5_, int countRenderBuilders) -
Method Summary
Modifier and TypeMethodDescriptionvoid
private void
void
dispose()
private CompletableFuture<Void>
doUploadChunkLayer
(BufferBuilder p_228904_1_, VertexBuffer p_228904_2_) getStats()
boolean
void
rebuildChunkSync
(ChunkRenderDispatcher.ChunkRender p_228902_1_) private void
runTask()
void
void
void
boolean
uploadChunkLayer
(BufferBuilder p_228896_1_, VertexBuffer p_228896_2_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
toBatch
-
freeBuffers
-
toUpload
-
toBatchCount
private volatile int toBatchCount -
freeBufferCount
private volatile int freeBufferCount -
fixedBuffers
-
mailbox
-
executor
-
level
-
renderer
-
camera
-
-
Constructor Details
-
ChunkRenderDispatcher
public ChunkRenderDispatcher(World p_i226020_1_, WorldRenderer p_i226020_2_, Executor p_i226020_3_, boolean p_i226020_4_, RegionRenderCacheBuilder p_i226020_5_) -
ChunkRenderDispatcher
public ChunkRenderDispatcher(World p_i226020_1_, WorldRenderer p_i226020_2_, Executor p_i226020_3_, boolean p_i226020_4_, RegionRenderCacheBuilder p_i226020_5_, int countRenderBuilders)
-
-
Method Details
-
setLevel
-
runTask
private void runTask() -
getStats
-
setCamera
-
getCameraPosition
-
uploadAllPendingUploads
public boolean uploadAllPendingUploads() -
rebuildChunkSync
-
blockUntilClear
public void blockUntilClear() -
schedule
-
uploadChunkLayer
public CompletableFuture<Void> uploadChunkLayer(BufferBuilder p_228896_1_, VertexBuffer p_228896_2_) -
doUploadChunkLayer
private CompletableFuture<Void> doUploadChunkLayer(BufferBuilder p_228904_1_, VertexBuffer p_228904_2_) -
clearBatchQueue
private void clearBatchQueue() -
isQueueEmpty
public boolean isQueueEmpty() -
dispose
public void dispose()
-