You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inside for loop in ParticleSystemBatcher.prototype.push
var x = p.position[0] * lasBuffer.scale[0] + lasBuffer.offset[0];
Later on: positions[ 3*i ] = p.position[0] * lasBuffer.scale[0] + (lasBuffer.offset[0] - this.corrective.x);
This is same as: positions[ 3*i ] = x - this.corrective.x
Similar for y and z coordinates.
With huge number of points, avoiding this recomputation may help in improving the performance.
PS:If permitted, I can commit this change.
The text was updated successfully, but these errors were encountered:
Hi,
In render.js:
Inside for loop in ParticleSystemBatcher.prototype.push
var x = p.position[0] * lasBuffer.scale[0] + lasBuffer.offset[0];
Later on:
positions[ 3*i ] = p.position[0] * lasBuffer.scale[0] + (lasBuffer.offset[0] - this.corrective.x);
This is same as:
positions[ 3*i ] = x - this.corrective.x
Similar for y and z coordinates.
With huge number of points, avoiding this recomputation may help in improving the performance.
PS:If permitted, I can commit this change.
The text was updated successfully, but these errors were encountered: