make husky wheels soft/compliant

reduce shadow size to make VR on older GPU (Mac Pro 2013) perform more smooth
less sleep in physics thread.
This commit is contained in:
erwin coumans
2016-09-03 08:39:40 -07:00
parent ecd814c9c5
commit de5d1b5cfc
3 changed files with 33 additions and 4 deletions

View File

@@ -17,9 +17,9 @@ subject to the following restrictions:
///todo: make this configurable in the gui
bool useShadowMap = true;// true;//false;//true;
int shadowMapWidth=4096;//8192;
int shadowMapHeight= 4096;
float shadowMapWorldSize=25;
int shadowMapWidth= 2048;//8192;
int shadowMapHeight= 2048;
float shadowMapWorldSize=5;
#define MAX_POINTS_IN_BATCH 1024
#define MAX_LINES_IN_BATCH 1024
@@ -1475,7 +1475,7 @@ void GLInstancingRenderer::renderSceneInternal(int renderMode)
// m_data->m_shadowMap->disable();
// return;
glEnable(GL_CULL_FACE);
glCullFace(GL_BACK); // Cull back-facing triangles -> draw only front-facing triangles
glCullFace(GL_FRONT); // Cull back-facing triangles -> draw only front-facing triangles
b3Assert(glGetError() ==GL_NO_ERROR);
} else

View File

@@ -139,6 +139,7 @@ void MotionThreadFunc(void* userPtr,void* lsMemory)
skip++;
skip1++;
if (skip1>5)
{
b3Clock::usleep(250);
}