Skip to content

Commit

Permalink
Particles: less load on CPU
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Aug 13, 2017
1 parent c8eae93 commit 20032e9
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 @@ -1760,7 +1760,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 20032e9

Please sign in to comment.