Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/integrator/render_scheduler.h
| Show First 20 Lines • Show All 138 Lines • ▼ Show 20 Lines | public: | ||||
| bool render_work_reschedule_on_converge(RenderWork &render_work); | bool render_work_reschedule_on_converge(RenderWork &render_work); | ||||
| /* Reschedule adaptive sampling work when the device is mostly on idle, but not all pixels yet | /* Reschedule adaptive sampling work when the device is mostly on idle, but not all pixels yet | ||||
| * converged. | * converged. | ||||
| * If re-scheduling is not possible (adaptive sampling is happening with the final threshold, and | * If re-scheduling is not possible (adaptive sampling is happening with the final threshold, and | ||||
| * the path tracer is to finish the current pixels) then false is returned. */ | * the path tracer is to finish the current pixels) then false is returned. */ | ||||
| bool render_work_reschedule_on_idle(RenderWork &render_work); | bool render_work_reschedule_on_idle(RenderWork &render_work); | ||||
| /* Reschedule work when rendering has been requested to cancel. | |||||
| * | |||||
| * Will skip all work which is not needed anymore because no more samples will be added (for | |||||
| * example, adaptive sampling filtering and convergence check will be skipped). | |||||
| * Will enable all work needed to make sure all passes are communicated to the software. | |||||
| * | |||||
| * NOTE: Should be used before passing work to `PathTrace::render_samples()`. */ | |||||
| void render_work_reschedule_on_cancel(RenderWork &render_work); | |||||
| RenderWork get_render_work(); | RenderWork get_render_work(); | ||||
| /* Report that the path tracer started to work, after scene update and loading kernels. */ | /* Report that the path tracer started to work, after scene update and loading kernels. */ | ||||
| void report_work_begin(const RenderWork &render_work); | void report_work_begin(const RenderWork &render_work); | ||||
| /* Report time (in seconds) which corresponding part of work took. */ | /* Report time (in seconds) which corresponding part of work took. */ | ||||
| void report_path_trace_time(const RenderWork &render_work, double time, bool is_cancelled); | void report_path_trace_time(const RenderWork &render_work, double time, bool is_cancelled); | ||||
| void report_adaptive_filter_time(const RenderWork &render_work, double time, bool is_cancelled); | void report_adaptive_filter_time(const RenderWork &render_work, double time, bool is_cancelled); | ||||
| ▲ Show 20 Lines • Show All 253 Lines • Show Last 20 Lines | |||||