Class ChunkRenderDispatcher
java.lang.Object
net.minecraft.client.renderer.chunk.ChunkRenderDispatcher
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enumstatic classclass -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Vec3private final Executor(package private) final ChunkBufferBuilderPackprivate intprivate final Queue<ChunkBufferBuilderPack>private int(package private) ClientLevelprivate static final org.slf4j.Loggerprivate final ProcessorMailbox<Runnable>private static final intprivate static final int(package private) final LevelRendererprivate intprivate final Queue<ChunkRenderDispatcher.RenderChunk.ChunkCompileTask>private static final VertexFormat -
Constructor Summary
ConstructorsConstructorDescriptionChunkRenderDispatcher(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 TypeMethodDescriptionvoidprivate voidvoiddispose()private CompletableFuture<Void>doUploadChunkLayer(BufferBuilder p_112721_, VertexBuffer p_112722_) intgetStats()intintbooleanpollTask()voidrebuildChunkSync(ChunkRenderDispatcher.RenderChunk p_200432_, RenderRegionCache p_200433_) private voidrunTask()voidvoidvoidsetLevel(ClientLevel p_194411_) voiduploadChunkLayer(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()
-