Add a little more depth to the information on particles.

Does the mismatch persist?
If it occurs does the secodn check also fail, and does that one persist too?
master
Beq 2024-10-14 01:27:12 +01:00
parent 7a24166706
commit 4a2e5acb84
1 changed files with 31 additions and 2 deletions

View File

@ -472,15 +472,44 @@ void LLViewerPartGroup::removeParticlesByID(const U32 source_id)
//static
void LLViewerPartSim::checkParticleCount(U32 size)
{
// <FS:Beq> FIRE-34600 - bugsplat AVX2 particle count mismatch
// if(LLViewerPartSim::sParticleCount2 != LLViewerPartSim::sParticleCount)
// {
// LL_ERRS() << "sParticleCount: " << LLViewerPartSim::sParticleCount << " ; sParticleCount2: " << LLViewerPartSim::sParticleCount2 << LL_ENDL ;
// }
//
// if(size > (U32)LLViewerPartSim::sParticleCount2)
// {
// LL_ERRS() << "current particle size: " << LLViewerPartSim::sParticleCount2 << " array size: " << size << LL_ENDL ; // <FS:Beq/> FIRE-34600 - bugsplat AVX2 particle count mismatch
// }
if(LLViewerPartSim::sParticleCount2 != LLViewerPartSim::sParticleCount)
{
LL_ERRS() << "sParticleCount: " << LLViewerPartSim::sParticleCount << " ; sParticleCount2: " << LLViewerPartSim::sParticleCount2 << LL_ENDL ;
static int fail_count{0};
if(fail_count > 10)
{
LL_ERRS() << "sParticleCount: " << LLViewerPartSim::sParticleCount << " ; sParticleCount2: " << LLViewerPartSim::sParticleCount2 << LL_ENDL ;
}
else
{
LL_WARNS() << "sParticleCount: " << LLViewerPartSim::sParticleCount << " ; sParticleCount2: " << LLViewerPartSim::sParticleCount2 << LL_ENDL ;
}
fail_count++;
}
if(size > (U32)LLViewerPartSim::sParticleCount2)
{
LL_ERRS() << "current particle size: " << LLViewerPartSim::sParticleCount2 << " array size: " << size << LL_ENDL ; // <FS:Beq/> FIRE-34600 - bugsplat AVX2 particle count mismatch
static int size_mismatch_count{0};
if(size_mismatch_count > 10)
{
LL_ERRS() << "current particle size: " << LLViewerPartSim::sParticleCount2 << " array size: " << size << LL_ENDL ;
}
else
{
LL_WARNS() << "current particle size: " << LLViewerPartSim::sParticleCount2 << " array size: " << size << LL_ENDL ;
}
size_mismatch_count++;
}
// </FS:Beq>
}
LLViewerPartSim::LLViewerPartSim()