From fbf1e26eda6eee58cfd0713db57ead94addf2694 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Tue, 30 Mar 2021 14:29:03 -0700 Subject: [PATCH] Let's not blow up our memory usage plzkthxbai --- Runtime/Particle/CElementGen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/Particle/CElementGen.cpp b/Runtime/Particle/CElementGen.cpp index 662638802..f6f1e72a5 100644 --- a/Runtime/Particle/CElementGen.cpp +++ b/Runtime/Particle/CElementGen.cpp @@ -213,8 +213,8 @@ CElementGen::CElementGen(TToken gen, EModelOrientationType orie m_shaderClass = CElementGenShaders::GetShaderClass(*this); } - // HACK: For now force maxInsts to be a multiple of 2560 - size_t maxInsts = x26c_30_MBLR ? (2560 * 2560) : 2560; // (x270_MBSP * x90_MAXP) : x90_MAXP; + // HACK: For now force maxInsts to be 2560 + size_t maxInsts = 2560; // (x270_MBSP * x90_MAXP) : x90_MAXP; maxInsts = (maxInsts == 0 ? 256 : maxInsts); CGraphics::CommitResources([&](boo::IGraphicsDataFactory::Context& ctx) {