Skip to content

Commit

Permalink
Change particle workers to value from 8384 COP revision
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Jan 1, 2018
1 parent 594c480 commit 9deb911
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/Layers/xrRender/ParticleEffect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -589,9 +589,8 @@ void CParticleEffect::Render(float)

u32 nWorkers = ttapi.threads.size();

// XXX: Xottab_DUTY: Review this
if (p_cnt < nWorkers * 64)
nWorkers = 1;
if (p_cnt < nWorkers)
nWorkers = p_cnt;

PRS_PARAMS* prsParams = (PRS_PARAMS*)_alloca(sizeof(PRS_PARAMS) * nWorkers);

Expand Down
5 changes: 2 additions & 3 deletions src/xrParticles/particle_actions_collection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1755,9 +1755,8 @@ void PATurbulence::Execute(ParticleEffect* effect, const float dt, float& tm_max

u32 nWorkers = ttapi.threads.size();

// XXX: Xottab_DUTY: Review this
if (p_cnt < nWorkers * 64)
nWorkers = 1;
if (p_cnt < nWorkers)
nWorkers = p_cnt;

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

Expand Down

0 comments on commit 9deb911

Please sign in to comment.