mirror of https://github.com/AxioDL/metaforce.git
CElementGen: Disable RecreatePipelines logic for the time being
This commit is contained in:
parent
bd050e8ac0
commit
a3628bebff
|
@ -227,6 +227,7 @@ CElementGen::~CElementGen() {
|
||||||
|
|
||||||
bool CElementGen::Update(double t) {
|
bool CElementGen::Update(double t) {
|
||||||
s32 oldMax = x90_MAXP;
|
s32 oldMax = x90_MAXP;
|
||||||
|
s32 oldMBSP = x270_MBSP;
|
||||||
CParticleGlobals::SParticleSystem* prevSystem = CParticleGlobals::instance()->m_currentParticleSystem;
|
CParticleGlobals::SParticleSystem* prevSystem = CParticleGlobals::instance()->m_currentParticleSystem;
|
||||||
CParticleGlobals::SParticleSystem thisSystem{FOURCC('PART'), this};
|
CParticleGlobals::SParticleSystem thisSystem{FOURCC('PART'), this};
|
||||||
CParticleGlobals::instance()->m_currentParticleSystem = &thisSystem;
|
CParticleGlobals::instance()->m_currentParticleSystem = &thisSystem;
|
||||||
|
@ -242,13 +243,14 @@ bool CElementGen::Update(double t) {
|
||||||
bool ret = InternalUpdate(t);
|
bool ret = InternalUpdate(t);
|
||||||
CParticleGlobals::instance()->m_currentParticleSystem = prevSystem;
|
CParticleGlobals::instance()->m_currentParticleSystem = prevSystem;
|
||||||
|
|
||||||
if (oldMax < x90_MAXP) {
|
if (oldMax < x90_MAXP || oldMBSP < x270_MBSP) {
|
||||||
_RecreatePipelines();
|
//_RecreatePipelines();
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CElementGen::_RecreatePipelines() {
|
void CElementGen::_RecreatePipelines() {
|
||||||
size_t maxInsts = x26c_30_MBLR ? (x270_MBSP * x90_MAXP) : x90_MAXP;
|
size_t maxInsts = x26c_30_MBLR ? 2560 * 2 : 2560;//x26c_30_MBLR ? (x270_MBSP * x90_MAXP) : x90_MAXP;
|
||||||
maxInsts = (maxInsts == 0 ? 256 : maxInsts);
|
maxInsts = (maxInsts == 0 ? 256 : maxInsts);
|
||||||
|
|
||||||
CGraphics::CommitResources([&](boo::IGraphicsDataFactory::Context& ctx) {
|
CGraphics::CommitResources([&](boo::IGraphicsDataFactory::Context& ctx) {
|
||||||
|
|
Loading…
Reference in New Issue