From 2dace708b43c2ef15a6194b9652de9b18cf83270 Mon Sep 17 00:00:00 2001 From: Darren Eberly Date: Mon, 28 Oct 2024 14:12:57 -0400 Subject: [PATCH] Get frame start time properly for Iris (#682) --- .../angelica/mixins/early/shaders/MixinEntityRenderer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mixin/java/com/gtnewhorizons/angelica/mixins/early/shaders/MixinEntityRenderer.java b/src/mixin/java/com/gtnewhorizons/angelica/mixins/early/shaders/MixinEntityRenderer.java index 570e27ca9..4bb08c283 100644 --- a/src/mixin/java/com/gtnewhorizons/angelica/mixins/early/shaders/MixinEntityRenderer.java +++ b/src/mixin/java/com/gtnewhorizons/angelica/mixins/early/shaders/MixinEntityRenderer.java @@ -35,7 +35,7 @@ public abstract class MixinEntityRenderer implements IResourceManagerReloadListe private void iris$beginRender(float partialTicks, long startTime, CallbackInfo ci, @Share("pipeline") LocalRef pipeline) { CapturedRenderingState.INSTANCE.setTickDelta(partialTicks); SystemTimeUniforms.COUNTER.beginFrame(); - SystemTimeUniforms.TIMER.beginFrame(startTime); + SystemTimeUniforms.TIMER.beginFrame(System.nanoTime()); Program.unbind();