Skip to content

Commit

Permalink
v3.0.4. Fixed warning and now using non alloc version for string conv…
Browse files Browse the repository at this point in the history
…ersion for the refresh rate string
  • Loading branch information
Martín Pane committed Nov 9, 2023
1 parent bb67c18 commit b6da172
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
5 changes: 5 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
-----------------------------
v3.0.4

- Fixed small oversight in Resolution.refreshRate is obsolete warning fix.

-----------------------------
v3.0.3

Expand Down
10 changes: 8 additions & 2 deletions Runtime/Advanced/G_AdvancedData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,13 @@ private void Update()

m_sb.Append( m_windowStrings[ 0 ] ).Append( Screen.width.ToStringNonAlloc() )
.Append( m_windowStrings[ 1 ] ).Append( Screen.height.ToStringNonAlloc() )
.Append( m_windowStrings[ 2 ] ).Append( Screen.currentResolution.refreshRate.ToStringNonAlloc() )
.Append( m_windowStrings[ 2 ] ).Append(
#if UNITY_2022_2_OR_NEWER
((int)Screen.currentResolution.refreshRateRatio.value).ToStringNonAlloc()
#else
Screen.currentResolution.refreshRate.ToStringNonAlloc()
#endif
)
.Append( m_windowStrings[ 3 ] )
.Append( m_windowStrings[ 4 ] ).Append( ((int) Screen.dpi).ToStringNonAlloc() )
.Append( m_windowStrings[ 5 ] );
Expand Down Expand Up @@ -328,7 +334,7 @@ private void Init()
+ res.height
+ "@"
#if UNITY_2022_2_OR_NEWER
+ res.refreshRateRatio.value.ToString("F2")
+ ((int)Screen.currentResolution.refreshRateRatio.value).ToStringNonAlloc()
#else
+ res.refreshRate
#endif
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.tayx.graphy",
"version": "3.0.3",
"version": "3.0.4",
"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.4",
Expand Down

0 comments on commit b6da172

Please sign in to comment.