Skip to content

Commit

Permalink
GPUGridAggregator: minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
1chandu committed Dec 3, 2019
1 parent 9937d73 commit 236e258
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ export default class GPUGridAggregator {
results[id] = {};
const {needMin, needMax, combineMaxMin} = weights[id];
results[id].aggregationTexture = textures[id];
// console.log(`Reading GPU aggregation results for weight:${id} into ${weights[id].aggregationBuffer.id}`);
results[id].aggregationBuffer = readPixelsToBuffer(framebuffers[id], {
target: weights[id].aggregationBuffer, // update if a buffer is provided
sourceType: GL.FLOAT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ function testCounterMinMax(aggregator, t, opts) {

let weight1 = Object.assign({}, fixture.weights.weight1, {size});
let results = aggregator.run(Object.assign({}, fixture, {weights: {weight1}, useGPU}));
// GPUGridAggregator.logData(results.weight1);

// const minData = results.weight1.minBuffer.getData();
// const maxData = results.weight1.maxBuffer.getData();
const {minData, maxData} = aggregator.getData('weight1');
t.equal(maxData[3], 3, `${testName} needMax: total count should match`);
t.equal(minData[3], 3, `${testName} needMin: total count should match`);
Expand Down Expand Up @@ -125,8 +122,6 @@ function testAggregationOperations(opts) {
const cpuResults = cpuAggregator(aggregationOpts);
let results = gpuAggregator.run(aggregationOpts);

// results = gpuAggregator.run(aggregationOpts);

const gpuResults = {
minData: results.weight1.minBuffer.getData(),
maxData: results.weight1.maxBuffer.getData()
Expand Down

0 comments on commit 236e258

Please sign in to comment.