Skip to content

Commit

Permalink
Revert "Revert "Particles: less load on CPU""
Browse files Browse the repository at this point in the history
This reverts commit 2ddf908.
  • Loading branch information
Xottab-DUTY committed Nov 4, 2017
1 parent 906d998 commit e14932a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Layers/xrRender/ParticleEffect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ void CParticleEffect::Render(float)

u32 nWorkers = ttapi_GetWorkerCount();

if (p_cnt < nWorkers * 20)
if (p_cnt < nWorkers * 64)
nWorkers = 1;

PRS_PARAMS* prsParams = (PRS_PARAMS*)_alloca(sizeof(PRS_PARAMS) * nWorkers);
Expand Down
2 changes: 1 addition & 1 deletion src/xrParticles/particle_actions_collection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1755,7 +1755,7 @@ void PATurbulence::Execute(ParticleEffect* effect, const float dt, float& tm_max

u32 nWorkers = ttapi_GetWorkerCount();

if (p_cnt < nWorkers * 20)
if (p_cnt < nWorkers * 64)
nWorkers = 1;

TES_PARAMS* tesParams = (TES_PARAMS*)_alloca(sizeof(TES_PARAMS) * nWorkers);
Expand Down

0 comments on commit e14932a

Please sign in to comment.