Blender Git Loki

Git Commits -> Revision c1ae4dc

Revision c1ae4dc by Sergey Sharybin (cycles-x)
April 8, 2021, 13:06 (GMT)
Cycles: Improvements for the resolution divider calculation

* Do not report render and denoising time if render has been cancelled.

It is not possible to estimate full rendering time from a cancelled
state, and reporting wrong time gives the scheduler the wrong idea
about how fast render is.

* Use timing of the first sample to calculate start resolution divider.

This timing is more accurate, because in viewport is known to include
a single sample, and it resembles performance better because later on
multiple samples might be scheduled, making it seen that render is
faster.

* Add some tolerance to the desired timing, so that if the higher
resolution gives close enough timing we use higher resolution. This
solves resolution divider bouncing between two values on a boundary
values of render time (however, it does not eliminate requirement of
hysteresis to really ensure this).

Some utilities became public, so that they can be covered with the
tests. This is mainly to verify own mental math, but also to allow to
play with analytical formulas without breaking things.

Commit Details:

Full Hash: c1ae4dc2dfe3e46027a71835847cd71c6b3bd8e4
Parent Commit: cb730df
Lines Changed: +195, -41

1 Added Path:

/intern/cycles/test/integrator_render_scheduler_test.cpp (+46, -0) (View)

4 Modified Paths:

/intern/cycles/integrator/path_trace.cpp (+6, -2) (Diff)
/intern/cycles/integrator/render_scheduler.cpp (+112, -35) (Diff)
/intern/cycles/integrator/render_scheduler.h (+30, -4) (Diff)
/intern/cycles/test/CMakeLists.txt (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021