Skip to content

Commit

Permalink
OptiFine moment
Browse files Browse the repository at this point in the history
  • Loading branch information
makamys committed Feb 3, 2024
1 parent 2c0e73c commit 377e009
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions src/main/java/makamys/neodymium/renderer/NeoRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -245,16 +245,17 @@ private static void updateRenderGlobalStats() {
RenderGlobal rg = Minecraft.getMinecraft().renderGlobal;

for(WorldRenderer wr : rg.sortedWorldRenderers) {
++rg.renderersLoaded;

if (wr.skipRenderPass[0]) {
++rg.renderersSkippingRenderPass;
} else if (!wr.isInFrustum) {
++rg.renderersBeingClipped;
} else if (rg.occlusionEnabled && !wr.isVisible) {
++rg.renderersBeingOccluded;
} else {
++rg.renderersBeingRendered;
if(wr != null) {
++rg.renderersLoaded;
if (wr.skipRenderPass[0]) {
++rg.renderersSkippingRenderPass;
} else if (!wr.isInFrustum) {
++rg.renderersBeingClipped;
} else if (rg.occlusionEnabled && !wr.isVisible) {
++rg.renderersBeingOccluded;
} else {
++rg.renderersBeingRendered;
}
}
}
}
Expand Down

0 comments on commit 377e009

Please sign in to comment.