Package com.hbm_m.client.render
Class ClientRenderFlags
java.lang.Object
com.hbm_m.client.render.ClientRenderFlags
Per-render-frame snapshot of hot
ModClothConfig rendering flags.
Updated once at the start of the block-entity pass to avoid thousands of
ModClothConfig.get() calls when instancing large machine fields.-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanstatic intPer-part instance cap.static voidstatic booleanstatic booleanModClothConfig.useSlicedLight— when false, MDI atlas path can batch unsliced parts.static booleanRead at renderer init (may run beforeonFrameStart()); falls back to live config.
-
Method Details
-
onFrameStart
public static void onFrameStart() -
useInstancedBatching
public static boolean useInstancedBatching() -
gpuBoneSkinning
public static boolean gpuBoneSkinning() -
enableOcclusionCulling
public static boolean enableOcclusionCulling() -
useSlicedLight
public static boolean useSlicedLight()ModClothConfig.useSlicedLight— when false, MDI atlas path can batch unsliced parts. -
useSlicedLightForNewRenderer
public static boolean useSlicedLightForNewRenderer()Read at renderer init (may run beforeonFrameStart()); falls back to live config. -
maxInstances
public static int maxInstances()Per-part instance cap. Safe beforeonFrameStart()(renderer construction, buffer sizing).
-