Skip to content

Commit

Permalink
Only send heartbeat when recognition isn't already running
Browse files Browse the repository at this point in the history
  • Loading branch information
Soapwood committed Apr 12, 2024
1 parent f65f2ba commit 5f4a445
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 8 deletions.
Binary file not shown.
Binary file modified VXMusicDesktop/Overlay/bin/VXMOverlay_Data/globalgamemanagers
Binary file not shown.
2 changes: 1 addition & 1 deletion VXMusicOverlay/Assets/Plugins/VXMusicOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ private void Update()

_timeSinceLastHeartbeat += Time.deltaTime;

if (_timeSinceLastHeartbeat > _heartbeatInterval)
if (!IsInRecognitionState && _timeSinceLastHeartbeat > _heartbeatInterval)
{
_VXMusicInterface.SendMessageToServer("VX_HEARTBEAT_REQ");
_timeSinceLastHeartbeat = 0f;
Expand Down
Binary file modified VXMusicOverlay/Library/ArtifactDB
Binary file not shown.
14 changes: 7 additions & 7 deletions VXMusicOverlay/Library/CurrentLayout-default.dwlt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ MonoBehaviour:
m_MinSize: {x: 202, y: 342}
m_MaxSize: {x: 4002, y: 8042}
vertical: 1
controlID: 21
controlID: 118
--- !u!114 &4
MonoBehaviour:
m_ObjectHideFlags: 52
Expand All @@ -99,7 +99,7 @@ MonoBehaviour:
m_MinSize: {x: 679, y: 613}
m_MaxSize: {x: 14002, y: 18063}
vertical: 0
controlID: 139
controlID: 64
--- !u!114 &5
MonoBehaviour:
m_ObjectHideFlags: 52
Expand Down Expand Up @@ -278,7 +278,7 @@ MonoBehaviour:
m_MinSize: {x: 403, y: 613}
m_MaxSize: {x: 10001, y: 18063}
vertical: 1
controlID: 19
controlID: 116
--- !u!114 &12
MonoBehaviour:
m_ObjectHideFlags: 52
Expand All @@ -303,7 +303,7 @@ MonoBehaviour:
m_MinSize: {x: 403, y: 342}
m_MaxSize: {x: 8003, y: 8042}
vertical: 0
controlID: 20
controlID: 117
--- !u!114 &13
MonoBehaviour:
m_ObjectHideFlags: 52
Expand Down Expand Up @@ -503,8 +503,8 @@ MonoBehaviour:
m_IsLocked: 0
m_FolderTreeState:
scrollPos: {x: 0, y: 0}
m_SelectedIDs: 22440000
m_LastClickedID: 17442
m_SelectedIDs: 1e440000
m_LastClickedID: 17438
m_ExpandedIDs: 000000000c4400000e44000000ca9a3b
m_RenameOverlay:
m_UserAcceptedRename: 0
Expand Down Expand Up @@ -658,7 +658,7 @@ MonoBehaviour:
scrollPos: {x: 0, y: 0}
m_SelectedIDs:
m_LastClickedID: 0
m_ExpandedIDs: 1af9ffff3af9ffff04faffff66fbffff
m_ExpandedIDs: b6f8ffffd6f8ffffd8f8ffff54f9ffff74f9ffff3efaffff66fbffff
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
Expand Down
Binary file modified VXMusicOverlay/Library/LastBuild.buildreport
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified VXMusicOverlay/Library/SceneVisibilityState.asset
Binary file not shown.
Binary file not shown.
Binary file modified VXMusicOverlay/Library/SourceAssetDB
Binary file not shown.

0 comments on commit 5f4a445

Please sign in to comment.