Java
private void Log(int frame, int s, int t) {
Date end = new Date();
long milliseconds = end.getTime() - _renderStartTime.getTime();
DecimalFormat integerFormatter = new DecimalFormat("###,###,###,###");
String duration = getDurationString(_renderStartTime, end);
if (s >= 0 || t >= 0) {
Logger.Log("Finished rendering lightpath length [s] = " + s
+ ", eyepath length [t] = " + t + " in " + duration);
}
else {
Logger.Log("Finished rendering frame " + frame + " in " + duration);
}
int pixels = _qualityPreset.getX() * _qualityPreset.getY();
Logger.Log(integerFormatter.format(pixels) + " pixels, "
+ integerFormatter.format(InitialRays) + " initial rays");
long fillRate = (long)(pixels * 1000 / (float)milliseconds);
Logger.Log(integerFormatter.format(fillRate) + " pixels / sec fillrate");
}
Elements