Reduce Render targets Pool flushing frequency to prevent memory popping

This commit is contained in:
Wojtek Figat
2023-02-09 13:30:46 +01:00
parent 3636cd6940
commit 39443bf4d1

View File

@@ -21,7 +21,7 @@ namespace
void RenderTargetPool::Flush(bool force)
{
const uint64 framesOffset = 10;
const uint64 framesOffset = 3 * 60;
const uint64 maxReleaseFrame = Engine::FrameCount - framesOffset;
force |= Engine::ShouldExit();