Let's not blow up our memory usage plzkthxbai

This commit is contained in:
Phillip Stephens 2021-03-30 14:29:03 -07:00
parent 9cb73b20fb
commit fbf1e26eda
1 changed files with 2 additions and 2 deletions

View File

@ -213,8 +213,8 @@ CElementGen::CElementGen(TToken<CGenDescription> 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) {