remove timing

This commit is contained in:
Stewart Allen 2023-01-14 19:57:44 -05:00
commit c7e29463ab
3 changed files with 2 additions and 9 deletions

View file

@ -19,7 +19,6 @@ gapp.overlay(base, {
* with optional decimation * with optional decimation
*/ */
function verticesToPoints(array, options) { function verticesToPoints(array, options) {
console.time('verticesToPoints');
let parr = new Array(array.length / 3), let parr = new Array(array.length / 3),
i = 0, i = 0,
j = 0, j = 0,
@ -122,7 +121,6 @@ function verticesToPoints(array, options) {
time: (Date.now() - t) time: (Date.now() - t)
}); });
console.timeEnd('verticesToPoints');
return parr; return parr;
} }

View file

@ -83,7 +83,6 @@ class Slicer {
zList[z] = (zList[z] || 0) + 1; zList[z] = (zList[z] || 0) + 1;
} }
console.time('compute features');
for (let i = 0, il = points.length; i < il; ) { for (let i = 0, il = points.length; i < il; ) {
let p1 = points[i++]; let p1 = points[i++];
let p2 = points[i++]; let p2 = points[i++];
@ -126,7 +125,6 @@ class Slicer {
} }
} }
} }
console.timeEnd('compute features');
return this; return this;
} }
@ -144,7 +142,6 @@ class Slicer {
let zScale = this.zScale = 1 / (zMax / bucketCount); let zScale = this.zScale = 1 / (zMax / bucketCount);
let buckets = this.buckets = []; let buckets = this.buckets = [];
console.time('compute buckets');
if (bucketCount > 1) { if (bucketCount > 1) {
buckets.length = bucketCount; buckets.length = bucketCount;
// create empty buckets // create empty buckets
@ -169,7 +166,6 @@ class Slicer {
} }
} }
} }
console.timeEnd('compute buckets');
return this; return this;
} }
@ -369,8 +365,8 @@ class Slicer {
bounds = this.bounds, bounds = this.bounds,
boff = opt.boff || opt.off || 0, // bottom offset boff = opt.boff || opt.off || 0, // bottom offset
toff = opt.toff || opt.off || 0, // top offset toff = opt.toff || opt.off || 0, // top offset
zmin = opt.min !== undefined ? opt.min : this.bounds.min.z + boff, zmin = opt.min !== undefined ? opt.min : bounds.min.z + boff,
zmax = (opt.max || this.bounds.max.z) - toff, zmax = (opt.max || bounds.max.z) - toff,
steps = (zmax - zmin) / step, steps = (zmax - zmin) / step,
rem = steps % 1 != 0 ? 0 : 1, rem = steps % 1 != 0 ? 0 : 1,
count = Math.floor(steps) + rem, count = Math.floor(steps) + rem,

View file

@ -558,7 +558,6 @@ class Trace {
probe: this.probe.params, probe: this.probe.params,
trace: this.params, trace: this.params,
cross: params, cross: params,
// clipTo: codec.encode(params.clipTo)
})); }));
} }
} }