Package com.hbm_m.client.render
Class RenderFrameLight
java.lang.Object
com.hbm_m.client.render.RenderFrameLight
Per-render-frame lightmap update guard.
LightTexture.updateLightTexture
is expensive when invoked from every SingleMeshVboRenderer.prepareBlockLitSamplers(net.minecraft.client.renderer.ShaderInstance) /
instanced draw; call ensureLightTextureUpdated() at most once per client render frame.-
Method Summary
Modifier and TypeMethodDescriptionstatic voidUpdates the dynamic lightmap texture once peronFrameStart()frame.static voidStart of a new client render frame (before block-entity BER pass).
-
Method Details
-
onFrameStart
public static void onFrameStart()Start of a new client render frame (before block-entity BER pass). -
ensureLightTextureUpdated
public static void ensureLightTextureUpdated()Updates the dynamic lightmap texture once peronFrameStart()frame.
-