Skip to content

Commit

Permalink
Batch mode test
Browse files Browse the repository at this point in the history
  • Loading branch information
shaynie committed Jul 25, 2023
1 parent 1a49119 commit 02b33da
Showing 1 changed file with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,21 +75,22 @@ private void OnDisable()
/// <summary>
/// A Unity event function that is called every frame, if this object is enabled.
/// </summary>
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)
Expand Down

0 comments on commit 02b33da

Please sign in to comment.