Skip to content

Commit

Permalink
Updated to 3.0.3. Small refactor and cleanup. Fixed refreshRateRatio …
Browse files Browse the repository at this point in the history
…warning.
  • Loading branch information
Martín Pane committed Nov 9, 2023
1 parent 7b634c3 commit bb67c18
Show file tree
Hide file tree
Showing 12 changed files with 35 additions and 15 deletions.
7 changes: 7 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-----------------------------
v3.0.3

- Fixed some comments and removed unused using statements.
- Fixed Resolution.refreshRate is obsolete warning for Unity 2022.2 and newer.
- Increased minimum version to recommended Unity 2019.4 LTS.

-----------------------------
v3.0.2

Expand Down
Binary file modified Graphy_CustomizationScene.unitypackage
Binary file not shown.
13 changes: 12 additions & 1 deletion Prefab/[Graphy] VR.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -263,5 +263,16 @@ PrefabInstance:
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
- target: {fileID: 6658570366365034085, guid: 0abab5bb77339e4428787a870eb31bd3,
type: 3}
propertyPath: m_SizeDelta.x
value: 1920
objectReference: {fileID: 0}
- target: {fileID: 6658570366365034085, guid: 0abab5bb77339e4428787a870eb31bd3,
type: 3}
propertyPath: m_SizeDelta.y
value: 1080
objectReference: {fileID: 0}
m_RemovedComponents:
- {fileID: 6760672456574371718, guid: 0abab5bb77339e4428787a870eb31bd3, type: 3}
m_SourcePrefab: {fileID: 100100000, guid: 0abab5bb77339e4428787a870eb31bd3, type: 3}
4 changes: 4 additions & 0 deletions Runtime/Advanced/G_AdvancedData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,11 @@ private void Init()
+ "x"
+ res.height
+ "@"
#if UNITY_2022_2_OR_NEWER
+ res.refreshRateRatio.value.ToString("F2")
#else
+ res.refreshRate
#endif
+ "Hz";

m_operatingSystemText.text
Expand Down
4 changes: 2 additions & 2 deletions Runtime/Audio/G_AudioGraph.cs
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ protected override void CreatePoints()
m_shaderGraphHighestValues.UpdateThresholds();

// Update Array
m_shaderGraph.UpdateArray();
m_shaderGraphHighestValues.UpdateArray();
m_shaderGraph.UpdateArrayValuesLength();
m_shaderGraphHighestValues.UpdateArrayValuesLength();

// Average
m_shaderGraph.Average = 0;
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Fps/G_FpsGraph.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ protected override void CreatePoints()

m_shaderGraph.UpdateColors();

m_shaderGraph.UpdateArray();
m_shaderGraph.UpdateArrayValuesLength();
}

#endregion
Expand Down
2 changes: 0 additions & 2 deletions Runtime/Fps/G_FpsMonitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
* -------------------------------------*/

using System;
using System.Xml.Linq;
using UnityEngine;
using Random = UnityEngine.Random;

namespace Tayx.Graphy.Fps
{
Expand Down
7 changes: 3 additions & 4 deletions Runtime/Ram/G_RamGraph.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
using Tayx.Graphy.Graph;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Profiling;

namespace Tayx.Graphy.Ram
{
Expand Down Expand Up @@ -222,9 +221,9 @@ protected override void CreatePoints()
m_shaderGraphMono.CautionThreshold = 0;
m_shaderGraphMono.UpdateThresholds();

m_shaderGraphAllocated.UpdateArray();
m_shaderGraphReserved.UpdateArray();
m_shaderGraphMono.UpdateArray();
m_shaderGraphAllocated.UpdateArrayValuesLength();
m_shaderGraphReserved.UpdateArrayValuesLength();
m_shaderGraphMono.UpdateArrayValuesLength();

// Average

Expand Down
5 changes: 3 additions & 2 deletions Runtime/Shader/G_GraphShader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ public void InitializeShader()
}

/// <summary>
/// Updates the material linked with this shader graph with the values in the float[] array.
/// Updates the GraphValuesLength parameter in the material with the current length of the
/// ShaderArrayValues float[] array.
/// </summary>
public void UpdateArray()
public void UpdateArrayValuesLength()
{
Image.material.SetInt( GraphValuesLength, ShaderArrayValues.Length );
}
Expand Down
2 changes: 1 addition & 1 deletion Runtime/UI/SafeArea.cs → Runtime/UI/G_SafeArea.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Graphy.Runtime.UI
/// Component that matches the size of the RectTransform to the safe area.
/// </summary>
[ExecuteAlways]
public sealed class SafeArea : MonoBehaviour
public sealed class G_SafeArea : MonoBehaviour
{
[SerializeField] [HideInInspector] private RectTransform rectTransform;
[SerializeField] [HideInInspector] private Canvas canvas;
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "com.tayx.graphy",
"version": "3.0.2",
"version": "3.0.3",
"displayName": "Graphy - Ultimate FPS Counter",
"description": "Graphy is the ultimate, easy to use, feature packed FPS Counter, stats monitor and debugger for your Unity project.",
"unity": "2019.3",
"unity": "2019.4",
"license": "MIT",
"keywords": [
"fps",
Expand Down

0 comments on commit bb67c18

Please sign in to comment.