mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-12 16:37:49 +00:00
17 lines
570 B
Java
17 lines
570 B
Java
package net.coderbot.batchedentityrendering.impl;
|
|||
|
|
|
||
|
|
public class BatchingDebugMessageHelper {
|
||
|
|
public static String getDebugMessage(DrawCallTrackingRenderBuffers drawTracker) {
|
||
|
|
int drawCalls = drawTracker.getDrawCalls();
|
||
|
|
int renderTypes = drawTracker.getRenderTypes();
|
||
|
|
|
||
|
|
if (drawCalls > 0) {
|
||
|
|
int effectivenessTimes10 = renderTypes * 1000 / drawCalls;
|
||
|
|
float effectiveness = effectivenessTimes10 / 10.0F;
|
||
|
|
|
||
|
|
return drawCalls + " draw calls / " + renderTypes + " render types = " + effectiveness + "% effective";
|
||
|
|
} else {
|
||
|
|
return "(no draw calls)";
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|