commit before trying some perf improvements

This commit is contained in:
mschuetz 2017-05-09 17:04:05 +02:00
parent 5af506737c
commit 8cb16772f9
2 changed files with 13 additions and 4 deletions

View File

@ -626,6 +626,8 @@ Potree.PointCloudOctree = class extends Potree.PointCloudTree{
let gl = renderer.context;
//renderer.resetGLState();
let compileMaterial = function(material){
if(material._glstate === undefined){
material._glstate = {};
@ -857,7 +859,7 @@ Potree.PointCloudOctree = class extends Potree.PointCloudTree{
gl.enableVertexAttribArray( apIndices );
}
//renderer.resetGLState();
// renderer.resetGLState();
for(let i = 0; i < nodes.length; i++){
let node = nodes[i];

View File

@ -1177,6 +1177,8 @@ function initMeasurementDetails(){
let workerID = null;
let start = new Date().getTime();
let checkUntilFinished = () => {
//http://localhost:3000/get_status?workerID=ef7bd824-a32d-4086-9547-09dfdf700c19
@ -1194,10 +1196,15 @@ function initMeasurementDetails(){
console.log(res);
if(!res.finished){
elMessage.html(`request status: ${res.status}`);
checkUntilFinished();
//elMessage.html(`request status: ${res.status}`);
let end = new Date().getTime();
let duration = (end - start);
let seconds = parseInt(duration / 1000);
elMessage.html(`<br>preparing download... ${seconds}s`);
//checkUntilFinished();
setTimeout(checkUntilFinished, 500);
}else{
elMessage.html(`<a href="${viewer.server}/get_las?workerID=${workerID}">Download ready</a>`);
elMessage.html(`<br><a href="${viewer.server}/get_las?workerID=${workerID}">Download ready</a>`);
}
}
}