Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "Headers/ParticleBasicColourUpdater.h"
#include "Core/Headers/EngineTaskPool.h"

namespace Divide {

namespace {
    const U32 g_partitionSize = 128;
};

void ParticleBasicColourUpdater::update(const U64 deltaTime, ParticleData& p) {
   auto parseRange = [&p](const Task& parentTask, U32 start, U32 end) -> void {
        for (U32 i = start; i < end; ++i) {
            p._colour[i].set(Lerp(p._startColour[i], p._endColour[i], p._misc[i].y));
        }
    };

    parallel_for(parseRange, p.aliveCount(), g_partitionSize);
}
};

Commits for Divide-Framework/trunk/Source Code/Dynamics/Entities/Particles/ConcreteUpdaters/ParticleBasicColourUpdater.cpp

Diff revisions: vs.
Revision Author Commited Message
835 Diff Diff IonutCava picture IonutCava Fri 27 Jan, 2017 14:58:07 +0000

[IonutCava]
- Split Engine lib into Core and Engine lib.
- Fix Server build issues

811 Diff Diff IonutCava picture IonutCava Wed 11 Jan, 2017 17:26:49 +0000

[IonutCava]
- Fix some threadpool cleanup bugs
- Fix terrain rendering (except underwater caustics)
- Fix terrain loading
- Fix terrain unloading

721 IonutCava picture IonutCava Wed 08 Jun, 2016 15:47:49 +0000

[IonutCava]
- Spelling: change all references from our code of “color” to the PROPER British version of “colour” because it sounds 100x better