Skip to content

Commit bb67c18

Browse files
author
Martín Pane
committed
Updated to 3.0.3. Small refactor and cleanup. Fixed refreshRateRatio warning.
1 parent 7b634c3 commit bb67c18

12 files changed

+35
-15
lines changed

Changelog.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
-----------------------------
2+
v3.0.3
3+
4+
- Fixed some comments and removed unused using statements.
5+
- Fixed Resolution.refreshRate is obsolete warning for Unity 2022.2 and newer.
6+
- Increased minimum version to recommended Unity 2019.4 LTS.
7+
18
-----------------------------
29
v3.0.2
310

-7.32 KB
Binary file not shown.

Prefab/[Graphy] VR.prefab

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,5 +263,16 @@ PrefabInstance:
263263
propertyPath: m_AnchoredPosition.y
264264
value: 0
265265
objectReference: {fileID: 0}
266-
m_RemovedComponents: []
266+
- target: {fileID: 6658570366365034085, guid: 0abab5bb77339e4428787a870eb31bd3,
267+
type: 3}
268+
propertyPath: m_SizeDelta.x
269+
value: 1920
270+
objectReference: {fileID: 0}
271+
- target: {fileID: 6658570366365034085, guid: 0abab5bb77339e4428787a870eb31bd3,
272+
type: 3}
273+
propertyPath: m_SizeDelta.y
274+
value: 1080
275+
objectReference: {fileID: 0}
276+
m_RemovedComponents:
277+
- {fileID: 6760672456574371718, guid: 0abab5bb77339e4428787a870eb31bd3, type: 3}
267278
m_SourcePrefab: {fileID: 100100000, guid: 0abab5bb77339e4428787a870eb31bd3, type: 3}

Runtime/Advanced/G_AdvancedData.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,11 @@ private void Init()
327327
+ "x"
328328
+ res.height
329329
+ "@"
330+
#if UNITY_2022_2_OR_NEWER
331+
+ res.refreshRateRatio.value.ToString("F2")
332+
#else
330333
+ res.refreshRate
334+
#endif
331335
+ "Hz";
332336

333337
m_operatingSystemText.text

Runtime/Audio/G_AudioGraph.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,8 @@ protected override void CreatePoints()
253253
m_shaderGraphHighestValues.UpdateThresholds();
254254

255255
// Update Array
256-
m_shaderGraph.UpdateArray();
257-
m_shaderGraphHighestValues.UpdateArray();
256+
m_shaderGraph.UpdateArrayValuesLength();
257+
m_shaderGraphHighestValues.UpdateArrayValuesLength();
258258

259259
// Average
260260
m_shaderGraph.Average = 0;

Runtime/Fps/G_FpsGraph.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ protected override void CreatePoints()
169169

170170
m_shaderGraph.UpdateColors();
171171

172-
m_shaderGraph.UpdateArray();
172+
m_shaderGraph.UpdateArrayValuesLength();
173173
}
174174

175175
#endregion

Runtime/Fps/G_FpsMonitor.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
* -------------------------------------*/
1313

1414
using System;
15-
using System.Xml.Linq;
1615
using UnityEngine;
17-
using Random = UnityEngine.Random;
1816

1917
namespace Tayx.Graphy.Fps
2018
{

Runtime/Ram/G_RamGraph.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
using Tayx.Graphy.Graph;
1515
using UnityEngine;
1616
using UnityEngine.UI;
17-
using UnityEngine.Profiling;
1817

1918
namespace Tayx.Graphy.Ram
2019
{
@@ -222,9 +221,9 @@ protected override void CreatePoints()
222221
m_shaderGraphMono.CautionThreshold = 0;
223222
m_shaderGraphMono.UpdateThresholds();
224223

225-
m_shaderGraphAllocated.UpdateArray();
226-
m_shaderGraphReserved.UpdateArray();
227-
m_shaderGraphMono.UpdateArray();
224+
m_shaderGraphAllocated.UpdateArrayValuesLength();
225+
m_shaderGraphReserved.UpdateArrayValuesLength();
226+
m_shaderGraphMono.UpdateArrayValuesLength();
228227

229228
// Average
230229

Runtime/Shader/G_GraphShader.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,10 @@ public void InitializeShader()
7373
}
7474

7575
/// <summary>
76-
/// Updates the material linked with this shader graph with the values in the float[] array.
76+
/// Updates the GraphValuesLength parameter in the material with the current length of the
77+
/// ShaderArrayValues float[] array.
7778
/// </summary>
78-
public void UpdateArray()
79+
public void UpdateArrayValuesLength()
7980
{
8081
Image.material.SetInt( GraphValuesLength, ShaderArrayValues.Length );
8182
}

Runtime/UI/SafeArea.cs renamed to Runtime/UI/G_SafeArea.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace Graphy.Runtime.UI
66
/// Component that matches the size of the RectTransform to the safe area.
77
/// </summary>
88
[ExecuteAlways]
9-
public sealed class SafeArea : MonoBehaviour
9+
public sealed class G_SafeArea : MonoBehaviour
1010
{
1111
[SerializeField] [HideInInspector] private RectTransform rectTransform;
1212
[SerializeField] [HideInInspector] private Canvas canvas;
File renamed without changes.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "com.tayx.graphy",
3-
"version": "3.0.2",
3+
"version": "3.0.3",
44
"displayName": "Graphy - Ultimate FPS Counter",
55
"description": "Graphy is the ultimate, easy to use, feature packed FPS Counter, stats monitor and debugger for your Unity project.",
6-
"unity": "2019.3",
6+
"unity": "2019.4",
77
"license": "MIT",
88
"keywords": [
99
"fps",

0 commit comments

Comments
 (0)