-
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 pull request #1178 from StephenHodgson/MRTK-DevMerge
Dev Branch -> Master Merge
- Loading branch information
Showing
493 changed files
with
56,585 additions
and
1,122 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -33,7 +33,6 @@ obj/ | |
*.ipch | ||
*.opensdf | ||
*.sdf | ||
*.obj | ||
*.tlog | ||
*.log | ||
*.idb | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
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,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 | ||
} | ||
} |
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.