Display rendertime of previous frame

This commit is contained in:
Laurent Clouet
2016-10-31 15:27:20 +01:00
parent 8d9a1bef19
commit aacf0d407e
2 changed files with 21 additions and 0 deletions

View File

@@ -49,6 +49,7 @@ public class Client {
private Configuration config;
private Log log;
private Job renderingJob;
private Job previousJob;
private BlockingQueue<Job> jobsToValidate;
private boolean isValidatingJob;
private long start_time;
@@ -65,6 +66,7 @@ public class Client {
this.log = Log.getInstance(this.config);
this.gui = gui_;
this.renderingJob = null;
this.previousJob = null;
this.jobsToValidate = new ArrayBlockingQueue<Job>(1024);
this.isValidatingJob = false;
@@ -781,9 +783,14 @@ public class Client {
ajob.setOutputImagePath(null);
this.isValidatingJob = false;
this.previousJob = ajob;
return Error.Type.OK;
}
public Job getPreviousJob() {
return this.previousJob;
}
protected boolean shouldWaitBeforeRender() {
int concurrent_job = this.jobsToValidate.size();
if (this.isValidatingJob) {