perf: deprecate internalCurrentState tracking
It isn't used at the moment.
This commit is contained in:
parent
86a95a8e88
commit
3acfb446d1
1 changed files with 0 additions and 5 deletions
|
|
@ -21,8 +21,6 @@ public class GBSUGui : MonoBehaviour
|
|||
string serverip = null;
|
||||
int serverport = 0;
|
||||
string currentmap;
|
||||
string _internalCurrentState;
|
||||
Traverse _internalCurrentStateTraverse;
|
||||
int vsync_switch;
|
||||
bool hosting = false;
|
||||
private void Start()
|
||||
|
|
@ -36,7 +34,6 @@ public class GBSUGui : MonoBehaviour
|
|||
int.TryParse(CommandLineParser.Instance.GetValueForKey("-port", true), out serverport);
|
||||
}
|
||||
|
||||
_internalCurrentStateTraverse = Traverse.Create(nameof(GameManagerNew)).Field("internalCurrentState");
|
||||
vsync_switch = QualitySettings.vSyncCount;
|
||||
}
|
||||
private void Update()
|
||||
|
|
@ -48,7 +45,6 @@ public class GBSUGui : MonoBehaviour
|
|||
}
|
||||
|
||||
currentmap = UnityEngine.SceneManagement.SceneManager.GetActiveScene().name;
|
||||
_internalCurrentState = _internalCurrentStateTraverse.GetValue() as string;
|
||||
}
|
||||
|
||||
private void ToggleMenu()
|
||||
|
|
@ -143,7 +139,6 @@ Set CLI arguments: -ip, -port, -servername, -serverpassword
|
|||
|
||||
Current map: {currentmap}
|
||||
Lobby State: {LobbyManager.Instance.LobbyStates.SelfState}
|
||||
Game State: {_internalCurrentState}
|
||||
Vsync: {QualitySettings.vSyncCount}
|
||||
Target FPS: {Application.targetFrameRate}
|
||||
{UpdateScoreDisplay()}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue