Skip to content

Commit

Permalink
No Render Fix, Color/Brightness Sort Order, readme adjustment (#550)
Browse files Browse the repository at this point in the history
* Adjust Brightness/Color Overlay Sort Orders for better app complienc

* No Overlay Render Attempt fix

* change readme update version string
  • Loading branch information
ykeara authored Feb 26, 2021
1 parent 3ab10ce commit 565d25e
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build_scripts/compile_version_string.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.3.1-release
5.3.2-release
2 changes: 1 addition & 1 deletion docs/SteamVRInputGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ All the types mean to you is which physical buttons can be bound to which action

## Okay Cool? How do I do this?

1. Go to SteamVR dashboard->Steam->Controller Bindings OR go to http://127.0.0.1:27062/dashboard/controllerbinding.html from a desktop browser WHILE steamVR is running.
1. Go to SteamVR dashboard->Steam->Controller Bindings OR go to http://localhost:27062/dashboard/controllerbinding.html from a desktop browser WHILE steamVR is running.
2. Select the application you want to modify keybinds for (Advanced Settings will currently always be at the bottom)
3. Select your controller (the controller must be on).
4. Select your binding.
Expand Down
7 changes: 7 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#include "utils/setup.h"
#include "settings/settings.h"
#include "openvr/ovr_settings_wrapper.h"
#ifdef _WIN64
# include <windows.h>
extern "C" __declspec( dllexport ) DWORD NvOptimusEnablement = 0x00000001;
extern "C" __declspec( dllexport ) DWORD
AmdPowerXpressRequestHighPerformance = 0x00000001;
#endif

INITIALIZE_EASYLOGGINGPP

Expand All @@ -14,6 +20,7 @@ int main( int argc, char* argv[] )
LOG( INFO ) << settings::getSettingsAndValues();

QCoreApplication::setAttribute( Qt::AA_Use96Dpi );
QCoreApplication::setAttribute( Qt::AA_UseDesktopOpenGL );
MyQApplication mainEventLoop( argc, argv );
mainEventLoop.setOrganizationName(
application_strings::applicationOrganizationName );
Expand Down
4 changes: 4 additions & 0 deletions src/tabcontrollers/VideoTabController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ void VideoTabController::initBrightnessOverlay()
m_brightnessOverlayHandle,
vr::k_unTrackedDeviceIndex_Hmd,
&notificationTransform );
vr::VROverlay()->SetOverlaySortOrder( m_brightnessOverlayHandle,
sortMax );
}
else
{
Expand Down Expand Up @@ -109,6 +111,8 @@ void VideoTabController::initColorOverlay()
m_colorOverlayHandle,
vr::k_unTrackedDeviceIndex_Hmd,
&notificationTransform );
vr::VROverlay()->SetOverlaySortOrder( m_brightnessOverlayHandle,
sortMax );
}
else
{
Expand Down
1 change: 1 addition & 0 deletions src/tabcontrollers/VideoTabController.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ class VideoTabController : public QObject
setColorOverlayOpacity NOTIFY colorOverlayOpacityChanged )

private:
static constexpr uint32_t sortMax = 0xffffffff;
unsigned settingsUpdateCounter = 0;

// how far away the overlay is, any OVERLAY closer will not be dimmed.
Expand Down
2 changes: 1 addition & 1 deletion ver/versioncheck.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "major": 5, "minor": 3, "patch": 1, "updateMessage": "", "optionalMessage": "" }
{ "major": 5, "minor": 3, "patch": 2, "updateMessage": "", "optionalMessage": "" }

0 comments on commit 565d25e

Please sign in to comment.