Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/Microsoft/RS2_WindowsMixed…
Browse files Browse the repository at this point in the history
…Reality' into RS2_WindowsMixedReality
  • Loading branch information
keveleigh committed Jul 11, 2017
2 parents e95caff + 47ed9c1 commit 0cdbbd6
Show file tree
Hide file tree
Showing 48 changed files with 18,771 additions and 21 deletions.
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,16 @@
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,
UnityEngine.VR.VRSettings.renderViewportScale);
}
}

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

Loading

0 comments on commit 0cdbbd6

Please sign in to comment.