No Render Fix, Color/Brightness Sort Order, readme adjustment (#550)

* Adjust Brightness/Color Overlay Sort Orders for better app complienc

* No Overlay Render Attempt fix

* change readme update version string
This commit is contained in:
ykeara
2021-02-26 17:34:44 -06:00
committed by GitHub
parent 3ab10ce334
commit 565d25ea15
6 changed files with 15 additions and 3 deletions
+7
View File
@@ -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
@@ -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 );
@@ -66,6 +66,8 @@ void VideoTabController::initBrightnessOverlay()
m_brightnessOverlayHandle,
vr::k_unTrackedDeviceIndex_Hmd,
&notificationTransform );
vr::VROverlay()->SetOverlaySortOrder( m_brightnessOverlayHandle,
sortMax );
}
else
{
@@ -109,6 +111,8 @@ void VideoTabController::initColorOverlay()
m_colorOverlayHandle,
vr::k_unTrackedDeviceIndex_Hmd,
&notificationTransform );
vr::VROverlay()->SetOverlaySortOrder( m_brightnessOverlayHandle,
sortMax );
}
else
{
+1
View File
@@ -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.