Class SectionRenderDispatcher
java.lang.Object
net.minecraft.client.renderer.chunk.SectionRenderDispatcher
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
class
(package private) static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SectionBufferBuilderPool
private Vec3
private boolean
private final Executor
(package private) final SectionBufferBuilderPack
private int
(package private) ClientLevel
private final ProcessorMailbox
<Runnable> private static final int
(package private) final LevelRenderer
(package private) final SectionCompiler
private int
private final Queue
<SectionRenderDispatcher.RenderSection.CompileTask> -
Constructor Summary
ConstructorsConstructorDescriptionSectionRenderDispatcher
(ClientLevel pLevel, LevelRenderer pRenderer, Executor pExecutor, RenderBuffers pBuffers, BlockRenderDispatcher pBlockRenderer, BlockEntityRenderDispatcher pBlockEntityRenderer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
private void
void
dispose()
int
getStats()
int
int
boolean
pollTask()
void
rebuildSectionSync
(SectionRenderDispatcher.RenderSection pSection, RenderRegionCache pRegionCache) private void
runTask()
void
void
void
setLevel
(ClientLevel pLevel) void
uploadSectionIndexBuffer
(ByteBufferBuilder.Result pResult, VertexBuffer pVertexBuffer) uploadSectionLayer
(MeshData pMeshData, VertexBuffer pVertexBuffer)
-
Field Details
-
MAX_HIGH_PRIORITY_QUOTA
private static final int MAX_HIGH_PRIORITY_QUOTA- See Also:
-
toBatchHighPriority
private final PriorityBlockingQueue<SectionRenderDispatcher.RenderSection.CompileTask> toBatchHighPriority -
toBatchLowPriority
-
highPriorityQuota
private int highPriorityQuota -
toUpload
-
fixedBuffers
-
bufferPool
-
toBatchCount
private volatile int toBatchCount -
closed
private volatile boolean closed -
mailbox
-
executor
-
level
ClientLevel level -
renderer
-
camera
-
sectionCompiler
-
-
Constructor Details
-
SectionRenderDispatcher
public SectionRenderDispatcher(ClientLevel pLevel, LevelRenderer pRenderer, Executor pExecutor, RenderBuffers pBuffers, BlockRenderDispatcher pBlockRenderer, BlockEntityRenderDispatcher pBlockEntityRenderer)
-
-
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() -
rebuildSectionSync
public void rebuildSectionSync(SectionRenderDispatcher.RenderSection pSection, RenderRegionCache pRegionCache) -
blockUntilClear
public void blockUntilClear() -
schedule
-
uploadSectionLayer
-
uploadSectionIndexBuffer
public CompletableFuture<Void> uploadSectionIndexBuffer(ByteBufferBuilder.Result pResult, VertexBuffer pVertexBuffer) -
clearBatchQueue
private void clearBatchQueue() -
isQueueEmpty
public boolean isQueueEmpty() -
dispose
public void dispose()
-