-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'refs/remotes/Microsoft/RS2_WindowsMixed…
…Reality' into RS2_WindowsMixedReality
- Loading branch information
Showing
48 changed files
with
18,771 additions
and
21 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
Assets/HoloToolkit-Examples/AdaptiveQuality/AdaptiveQualityExample.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
Assets/HoloToolkit-Examples/AdaptiveQuality/AdaptiveQualityExample.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.