From 02b33daaedd000dfd347cc5efa3a4925eee7438c Mon Sep 17 00:00:00 2001 From: "REDMOND\\shaynie" Date: Tue, 25 Jul 2023 12:53:04 -0700 Subject: [PATCH] Batch mode test --- .../InteractorVisuals/MRTKRayReticleVisual.cs | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/com.microsoft.mrtk.input/Interactors/InteractorVisuals/MRTKRayReticleVisual.cs b/com.microsoft.mrtk.input/Interactors/InteractorVisuals/MRTKRayReticleVisual.cs index a9eab2a6f70..180d4e60e35 100644 --- a/com.microsoft.mrtk.input/Interactors/InteractorVisuals/MRTKRayReticleVisual.cs +++ b/com.microsoft.mrtk.input/Interactors/InteractorVisuals/MRTKRayReticleVisual.cs @@ -75,21 +75,22 @@ private void OnDisable() /// /// A Unity event function that is called every frame, if this object is enabled. /// - private void LateUpdate() - { - // if running in batch mode the onBeforeRender event doesn't fire so - // we need to update the reticle here - if (Application.isBatchMode) - { - UpdateReticle(); - } - } + //private void LateUpdate() + //{ + // // if running in batch mode the onBeforeRender event doesn't fire so + // // we need to update the reticle here + // if (Application.isBatchMode) + // { + // UpdateReticle(); + // } + //} private static readonly ProfilerMarker UpdateReticlePerfMarker = new ProfilerMarker("[MRTK] MRTKRayReticleVisual.UpdateReticle"); [BeforeRenderOrder(XRInteractionUpdateOrder.k_BeforeRenderLineVisual)] private void UpdateReticle() { + Debug.Log("UpdateReticle"); using (UpdateReticlePerfMarker.Auto()) { if (Reticle != null)