Ver Fonte

remove shaderconst timer clamp
looks ike the postfx shaderconst update cycle rate limiter is the source of our flickering

AzaezelX há 4 meses atrás
pai
commit
1e2b6c4e35

+ 0 - 3
Engine/source/postFx/postEffect.cpp

@@ -509,7 +509,6 @@ PostEffect::PostEffect()
    dMemset( mTexSizeSC, 0, sizeof( GFXShaderConstHandle* ) * NumTextures );
    dMemset( mRenderTargetParamsSC, 0, sizeof( GFXShaderConstHandle* ) * NumTextures );
 
-   mConstUpdateTimer = PlatformTimer::create();
 }
 
 PostEffect::~PostEffect()
@@ -1112,9 +1111,7 @@ void PostEffect::_setupConstants( const SceneRenderState *state )
    }
    */
 
-   if (mConstUpdateTimer->getElapsedMs() > TickMs)
    {
-      mConstUpdateTimer->reset();
       {
          PROFILE_SCOPE(PostEffect_SetShaderConsts);
 

+ 0 - 1
Engine/source/postFx/postEffect.h

@@ -324,7 +324,6 @@ protected:
 
    EffectConstTable mEffectConsts;
 
-   PlatformTimer* mConstUpdateTimer;
    ///
    virtual void _updateScreenGeometry( const Frustum &frustum,
                                        GFXVertexBufferHandle<PFXVertex> *outVB );