mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 22:46:06 +02:00
Disable VR Overlay GPU Acceleration
This commit is contained in:
+5
-11
@@ -208,17 +208,17 @@ namespace VRCX
|
||||
|
||||
public void SetVR(bool active, bool hmdOverlay, bool wristOverlay, bool menuButton, int overlayHand)
|
||||
{
|
||||
VRCXVR.Instance.SetActive(active, hmdOverlay, wristOverlay, menuButton, overlayHand);
|
||||
Program.VRCXVRInstance.SetActive(active, hmdOverlay, wristOverlay, menuButton, overlayHand);
|
||||
}
|
||||
|
||||
public void RefreshVR()
|
||||
{
|
||||
VRCXVR.Instance.Restart();
|
||||
Program.VRCXVRInstance.Restart();
|
||||
}
|
||||
|
||||
public void RestartVR()
|
||||
{
|
||||
VRCXVR.Instance.Restart();
|
||||
Program.VRCXVRInstance.Restart();
|
||||
}
|
||||
|
||||
public void SetZoom(double zoomLevel)
|
||||
@@ -355,18 +355,12 @@ namespace VRCX
|
||||
|
||||
public void ExecuteVrFeedFunction(string function, string json)
|
||||
{
|
||||
if (VRCXVR._wristOverlay == null) return;
|
||||
if (VRCXVR._wristOverlay.IsLoading)
|
||||
VRCXVR.Instance.Restart();
|
||||
VRCXVR._wristOverlay.ExecuteScriptAsync($"$app.{function}", json);
|
||||
Program.VRCXVRInstance.ExecuteVrFeedFunction(function, json);
|
||||
}
|
||||
|
||||
public void ExecuteVrOverlayFunction(string function, string json)
|
||||
{
|
||||
if (VRCXVR._hmdOverlay == null) return;
|
||||
if (VRCXVR._hmdOverlay.IsLoading)
|
||||
VRCXVR.Instance.Restart();
|
||||
VRCXVR._hmdOverlay.ExecuteScriptAsync($"$app.{function}", json);
|
||||
Program.VRCXVRInstance.ExecuteVrOverlayFunction(function, json);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace VRCX
|
||||
/// <returns>An array of arrays containing information about the connected VR devices.</returns>
|
||||
public string[][] GetVRDevices()
|
||||
{
|
||||
return VRCXVR.Instance.GetDevices();
|
||||
return Program.VRCXVRInstance.GetDevices();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace VRCX
|
||||
isSteamVRRunning = true;
|
||||
}
|
||||
|
||||
var isHmdAfk = VRCXVR.Instance.IsHmdAfk;
|
||||
var isHmdAfk = Program.VRCXVRInstance.IsHmdAfk;
|
||||
|
||||
// TODO: fix this throwing an exception for being called before the browser is ready. somehow it gets past the checks
|
||||
if (MainForm.Instance?.Browser != null && !MainForm.Instance.Browser.IsLoading && MainForm.Instance.Browser.CanExecuteJavascriptInMainFrame)
|
||||
|
||||
Reference in New Issue
Block a user