Skip to content

Commit

Permalink
Merge pull request #1178 from StephenHodgson/MRTK-DevMerge
Browse files Browse the repository at this point in the history
Dev Branch -> Master Merge
  • Loading branch information
StephenHodgson authored Oct 17, 2017
2 parents 9075504 + fc66151 commit 2acbb55
Show file tree
Hide file tree
Showing 493 changed files with 56,585 additions and 1,122 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ obj/
*.ipch
*.opensdf
*.sdf
*.obj
*.tlog
*.log
*.idb
Expand Down
9 changes: 9 additions & 0 deletions Assets/HoloToolkit-Examples/AdaptiveQuality.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

using UnityEngine;
using HoloToolkit.Unity;

public class AdaptiveQualityExample : MonoBehaviour
{
public TextMesh Text;
public AdaptiveQuality Quality;

private void Update()
{
Text.text = string.Format("GPUTime:{0:N2}\nQualityLevel:{1}\nViewportScale:{2:N2}",
GpuTiming.GetTime("Frame") * 1000.0f,
Quality.QualityLevel,
#if UNITY_2017_2_OR_NEWER
UnityEngine.XR.XRSettings.renderViewportScale);
#else
UnityEngine.VR.VRSettings.renderViewportScale);
#endif
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2acbb55

Please sign in to comment.