Skip to content

Commit

Permalink
Get frame start time properly for Iris (#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cleptomania authored Oct 28, 2024
1 parent 1df1ec3 commit 2dace70
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public abstract class MixinEntityRenderer implements IResourceManagerReloadListe
private void iris$beginRender(float partialTicks, long startTime, CallbackInfo ci, @Share("pipeline") LocalRef<WorldRenderingPipeline> pipeline) {
CapturedRenderingState.INSTANCE.setTickDelta(partialTicks);
SystemTimeUniforms.COUNTER.beginFrame();
SystemTimeUniforms.TIMER.beginFrame(startTime);
SystemTimeUniforms.TIMER.beginFrame(System.nanoTime());

Program.unbind();

Expand Down

0 comments on commit 2dace70

Please sign in to comment.