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:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user