Slow update of ui was made for the javascript ui, since it's not used anymore, it should be removed

This commit is contained in:
Laurent Clouet
2019-08-07 15:22:34 +02:00
parent 71a85af3f4
commit d4ec9f3d92

View File

@@ -347,7 +347,6 @@ public class Job {
}, config.getMaxRenderTime() * 1000 + 2000); // +2s to be sure the delay is over }, config.getMaxRenderTime() * 1000 + 2000); // +2s to be sure the delay is over
} }
long last_update_status = 0;
log.debug("renderer output"); log.debug("renderer output");
try { try {
while ((line = input.readLine()) != null) { while ((line = input.readLine()) != null) {
@@ -364,10 +363,7 @@ public class Job {
return Error.Type.RENDERER_OUT_OF_MEMORY; return Error.Type.RENDERER_OUT_OF_MEMORY;
} }
if ((new Date().getTime() - last_update_status) > 2000) { // only call the update every two seconds updateRenderingStatus(line);
updateRenderingStatus(line);
last_update_status = new Date().getTime();
}
Type error = detectError(line); Type error = detectError(line);
if (error != Error.Type.OK) { if (error != Error.Type.OK) {
if (script_file != null) { if (script_file != null) {