Skip to content

Commit

Permalink
Revert "Particles: less load on CPU"
Browse files Browse the repository at this point in the history
This reverts commit 20032e9.
  • Loading branch information
Xottab-DUTY committed Oct 21, 2017
1 parent bcb242b commit 2ddf908
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 * 64)
if (p_cnt < nWorkers * 20)
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 @@ -1756,7 +1756,7 @@ void PATurbulence::Execute(ParticleEffect* effect, const float dt, float& tm_max

u32 nWorkers = ttapi_GetWorkerCount();

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

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

0 comments on commit 2ddf908

Please sign in to comment.