Class SectionRenderDispatcher
java.lang.Object
net.minecraft.client.renderer.chunk.SectionRenderDispatcher
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classclass(package private) static enum - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Vec3private final Executor(package private) final SectionBufferBuilderPackprivate intprivate final Queue<SectionBufferBuilderPack>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<SectionRenderDispatcher.RenderSection.CompileTask> - 
Constructor Summary
ConstructorsConstructorDescriptionSectionRenderDispatcher(ClientLevel p_299878_, LevelRenderer p_299032_, Executor p_298480_, boolean p_298587_, SectionBufferBuilderPack p_299187_) SectionRenderDispatcher(ClientLevel p_299878_, LevelRenderer p_299032_, Executor p_298480_, boolean p_298587_, SectionBufferBuilderPack p_299187_, int countRenderBuilders)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidprivate voidvoiddispose()intgetStats()intintbooleanpollTask()voidrebuildSectionSync(SectionRenderDispatcher.RenderSection p_299640_, RenderRegionCache p_297835_) private voidrunTask()voidvoidvoidsetLevel(ClientLevel p_298968_) voiduploadSectionLayer(BufferBuilder.RenderedBuffer p_299767_, VertexBuffer p_298938_)  
- 
Field Details
- 
LOGGER
private static final org.slf4j.Logger LOGGER - 
MAX_WORKERS_32_BIT
private static final int MAX_WORKERS_32_BIT- See Also:
 
 - 
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 - 
freeBuffers
 - 
toUpload
 - 
toBatchCount
private volatile int toBatchCount - 
freeBufferCount
private volatile int freeBufferCount - 
fixedBuffers
 - 
mailbox
 - 
executor
 - 
level
ClientLevel level - 
renderer
 - 
camera
 
 - 
 - 
Constructor Details
- 
SectionRenderDispatcher
public SectionRenderDispatcher(ClientLevel p_299878_, LevelRenderer p_299032_, Executor p_298480_, boolean p_298587_, SectionBufferBuilderPack p_299187_)  - 
SectionRenderDispatcher
public SectionRenderDispatcher(ClientLevel p_299878_, LevelRenderer p_299032_, Executor p_298480_, boolean p_298587_, SectionBufferBuilderPack p_299187_, 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() - 
rebuildSectionSync
public void rebuildSectionSync(SectionRenderDispatcher.RenderSection p_299640_, RenderRegionCache p_297835_)  - 
blockUntilClear
public void blockUntilClear() - 
schedule
 - 
uploadSectionLayer
public CompletableFuture<Void> uploadSectionLayer(BufferBuilder.RenderedBuffer p_299767_, VertexBuffer p_298938_)  - 
clearBatchQueue
private void clearBatchQueue() - 
isQueueEmpty
public boolean isQueueEmpty() - 
dispose
public void dispose() 
 -