Skip to content

Commit 2ddf908

Browse files
committed
Revert "Particles: less load on CPU"
This reverts commit 20032e9.
1 parent bcb242b commit 2ddf908

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 * 64)
592+
if (p_cnt < nWorkers * 20)
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
@@ -1756,7 +1756,7 @@ void PATurbulence::Execute(ParticleEffect* effect, const float dt, float& tm_max
17561756

17571757
u32 nWorkers = ttapi_GetWorkerCount();
17581758

1759-
if (p_cnt < nWorkers * 64)
1759+
if (p_cnt < nWorkers * 20)
17601760
nWorkers = 1;
17611761

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

0 commit comments

Comments
 (0)