Skip to content

Commit 9deb911

Browse files
committed
Change particle workers to value from 8384 COP revision
1 parent 594c480 commit 9deb911

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/Layers/xrRender/ParticleEffect.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -589,9 +589,8 @@ void CParticleEffect::Render(float)
589589

590590
u32 nWorkers = ttapi.threads.size();
591591

592-
// XXX: Xottab_DUTY: Review this
593-
if (p_cnt < nWorkers * 64)
594-
nWorkers = 1;
592+
if (p_cnt < nWorkers)
593+
nWorkers = p_cnt;
595594

596595
PRS_PARAMS* prsParams = (PRS_PARAMS*)_alloca(sizeof(PRS_PARAMS) * nWorkers);
597596

src/xrParticles/particle_actions_collection.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1755,9 +1755,8 @@ void PATurbulence::Execute(ParticleEffect* effect, const float dt, float& tm_max
17551755

17561756
u32 nWorkers = ttapi.threads.size();
17571757

1758-
// XXX: Xottab_DUTY: Review this
1759-
if (p_cnt < nWorkers * 64)
1760-
nWorkers = 1;
1758+
if (p_cnt < nWorkers)
1759+
nWorkers = p_cnt;
17611760

17621761
TES_PARAMS* tesParams = (TES_PARAMS*)_alloca(sizeof(TES_PARAMS) * nWorkers);
17631762

0 commit comments

Comments
 (0)