Skip to content

Commit

Permalink
rename is angle trigger to direct trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
douira committed Oct 27, 2023
1 parent 1099eb9 commit 37d7ee5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ private static void addDrawCommands(MultiDrawBatch batch, long pMeshData, int ma
if (indexDataOffset != 0) {
// * 4 to convert to bytes (the buffer contains ints)
// the section render data storage for the indices stores the offset in indices (also called elements)
// the << 3 is * 8 to convert to 8 byte offsets
MemoryUtil.memPutAddress(pElementPointer + (size << 3), indexDataOffset << 2);

// adding the number of elements works because the index data has one index per element (which are the indices)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ public class RenderSection {
@Nullable
private TranslucentData translucentData; // TODO: is this the right category?


// Pending Update State
@Nullable
private CancellationToken taskCancellationToken = null;
Expand Down Expand Up @@ -344,10 +343,8 @@ public void setPendingUpdate(@Nullable ChunkUpdateType type) {
this.pendingUpdateType = type;
}

public void prepareTrigger(boolean isAngleTrigger) {

this.translucentData.prepareTrigger(isAngleTrigger);

public void prepareTrigger(boolean isDirectTrigger) {
this.translucentData.prepareTrigger(isDirectTrigger);
}

public int getLastUploadFrame() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ public int getVisibleChunkCount() {
return sections;
}

public void scheduleSort(long sectionPos, boolean isAngleTrigger) {
public void scheduleSort(long sectionPos, boolean isDirectTrigger) {
// TODO: Does this need to invalidate the section cache?

RenderSection section = this.sectionByPosition.get(sectionPos);
Expand All @@ -505,7 +505,7 @@ public void scheduleSort(long sectionPos, boolean isAngleTrigger) {
pendingUpdate = ChunkUpdateType.getPromotionUpdateType(section.getPendingUpdate(), pendingUpdate);
if (pendingUpdate != null) {
section.setPendingUpdate(pendingUpdate);
section.prepareTrigger(isAngleTrigger);
section.prepareTrigger(isDirectTrigger);
}
}
}
Expand Down

0 comments on commit 37d7ee5

Please sign in to comment.