Skip to content

Commit 2acbb55

Browse files
Merge pull request #1178 from StephenHodgson/MRTK-DevMerge
Dev Branch -> Master Merge
2 parents 9075504 + fc66151 commit 2acbb55

File tree

493 files changed

+56585
-1122
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

493 files changed

+56585
-1122
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ obj/
3333
*.ipch
3434
*.opensdf
3535
*.sdf
36-
*.obj
3736
*.tlog
3837
*.log
3938
*.idb

Assets/HoloToolkit-Examples/AdaptiveQuality.meta

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License. See LICENSE in the project root for license information.
3+
4+
using UnityEngine;
5+
using HoloToolkit.Unity;
6+
7+
public class AdaptiveQualityExample : MonoBehaviour
8+
{
9+
public TextMesh Text;
10+
public AdaptiveQuality Quality;
11+
12+
private void Update()
13+
{
14+
Text.text = string.Format("GPUTime:{0:N2}\nQualityLevel:{1}\nViewportScale:{2:N2}",
15+
GpuTiming.GetTime("Frame") * 1000.0f,
16+
Quality.QualityLevel,
17+
#if UNITY_2017_2_OR_NEWER
18+
UnityEngine.XR.XRSettings.renderViewportScale);
19+
#else
20+
UnityEngine.VR.VRSettings.renderViewportScale);
21+
#endif
22+
}
23+
}

Assets/HoloToolkit-Examples/AdaptiveQuality/AdaptiveQualityExample.cs.meta

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)