Skip to content

Commit 20032e9

Browse files
committed
Particles: less load on CPU
1 parent c8eae93 commit 20032e9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Layers/xrRender/ParticleEffect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ void CParticleEffect::Render(float)
589589

590590
u32 nWorkers = ttapi_GetWorkerCount();
591591

592-
if (p_cnt < nWorkers * 20)
592+
if (p_cnt < nWorkers * 64)
593593
nWorkers = 1;
594594

595595
PRS_PARAMS* prsParams = (PRS_PARAMS*)_alloca(sizeof(PRS_PARAMS) * nWorkers);

src/xrParticles/particle_actions_collection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1760,7 +1760,7 @@ void PATurbulence::Execute(ParticleEffect* effect, const float dt, float& tm_max
17601760

17611761
u32 nWorkers = ttapi_GetWorkerCount();
17621762

1763-
if (p_cnt < nWorkers * 20)
1763+
if (p_cnt < nWorkers * 64)
17641764
nWorkers = 1;
17651765

17661766
TES_PARAMS* tesParams = (TES_PARAMS*)_alloca(sizeof(TES_PARAMS) * nWorkers);

0 commit comments

Comments
 (0)