postfx throttling

don't execute shadercont updates via callback more than the standard tick
don't execute preprocess more than once, unless explicitly reloading
This commit is contained in:
AzaezelX 2025-05-18 09:59:12 -05:00
parent 2a9aa3a9d5
commit 091b75930b
2 changed files with 33 additions and 21 deletions

View file

@ -215,6 +215,7 @@ protected:
/// Parent and sibling PostEffects in the chain are still processed.
/// This is intended for debugging purposes.
bool mSkip;
bool mPreProcessed;
bool mOneFrameOnly;
bool mOnThisFrame;
@ -323,6 +324,7 @@ protected:
EffectConstTable mEffectConsts;
PlatformTimer* mConstUpdateTimer;
///
virtual void _updateScreenGeometry( const Frustum &frustum,
GFXVertexBufferHandle<PFXVertex> *outVB );