aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-05-02 00:16:57 +0200
committerdec05eba <dec05eba@protonmail.com>2020-05-02 00:16:57 +0200
commite87af28c6bd335d20583e2879ad88451d7b7b1f8 (patch)
treee3fc17b26a97b5275e9281991e571546f70bea8d /src
parent2baea15762cde867ba29f0570f3142a64786db1c (diff)
Attempt to reduce stuttering
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main.cpp b/src/main.cpp
index cfac839..df76f3a 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -386,8 +386,8 @@ static void usage() {
CMainApplication::CMainApplication( int argc, char *argv[] )
: m_pCompanionWindow(NULL)
, m_pContext(NULL)
- , m_nCompanionWindowWidth( 1920 )
- , m_nCompanionWindowHeight( 1080 )
+ , m_nCompanionWindowWidth( 800 )
+ , m_nCompanionWindowHeight( 600 )
, m_unSceneProgramID( 0 )
, m_unCompanionWindowProgramID( 0 )
, m_unControllerTransformProgramID( 0 )
@@ -396,7 +396,7 @@ CMainApplication::CMainApplication( int argc, char *argv[] )
, m_bDebugOpenGL( false )
, m_bVerbose( false )
, m_bPerf( false )
- , m_bVblank( true )
+ , m_bVblank( false )
, m_bGlFinishHack( true )
, m_glControllerVertBuffer( 0 )
, m_unControllerVAO( 0 )
@@ -999,7 +999,7 @@ void CMainApplication::RenderFrame()
// for now as fast as possible
if ( m_pHMD )
{
- RenderControllerAxes();
+ //RenderControllerAxes();
RenderStereoTargets();
RenderCompanionWindow();
@@ -1874,7 +1874,7 @@ void CMainApplication::RenderScene( vr::Hmd_Eye nEye )
glDrawArrays( GL_TRIANGLES, 0, m_uiVertcount );
glBindVertexArray( 0 );
}
-
+#if 0
bool bIsInputAvailable = m_pHMD->IsInputAvailable();
if( bIsInputAvailable )
@@ -1901,7 +1901,7 @@ void CMainApplication::RenderScene( vr::Hmd_Eye nEye )
m_rHand[eHand].m_pRenderModel->Draw();
}
-
+#endif
glUseProgram( 0 );
}