Skip to content

Commit e14932a

Browse files
committed
Revert "Revert "Particles: less load on CPU""
This reverts commit 2ddf908.
1 parent 906d998 commit e14932a

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
@@ -1755,7 +1755,7 @@ void PATurbulence::Execute(ParticleEffect* effect, const float dt, float& tm_max
17551755

17561756
u32 nWorkers = ttapi_GetWorkerCount();
17571757

1758-
if (p_cnt < nWorkers * 20)
1758+
if (p_cnt < nWorkers * 64)
17591759
nWorkers = 1;
17601760

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

0 commit comments

Comments
 (0)