From 2f6257fd7fe305e3b226a8b505eb614bbeaf762a Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Wed, 13 Mar 2019 12:31:48 +0100 Subject: Cycles/OpenCL: Compile Kernels During Scene Update The main goals of this change is faster starting when using foreground rendering. This patch will build kernels in parallel to the update process of the scene. When these optimized kernels are not available (yet) an AO kernel will be used. These AO kernels are fast to compile (3-7 seconds) and can be reused by all scenes. When the final kernels become available we will switch to these kernels. In background mode the AO kernels will not be used. Some kernels are being used during Scene update (displace, background light). When these kernels are being used the process can halt until these become available. Reviewed By: brecht, #cycles Maniphest Tasks: T61752 Differential Revision: https://developer.blender.org/D4428 --- intern/cycles/blender/blender_session.h | 1 + 1 file changed, 1 insertion(+) (limited to 'intern/cycles/blender/blender_session.h') diff --git a/intern/cycles/blender/blender_session.h b/intern/cycles/blender/blender_session.h index 2aa3c77c37d..2c0a83cf6e7 100644 --- a/intern/cycles/blender/blender_session.h +++ b/intern/cycles/blender/blender_session.h @@ -90,6 +90,7 @@ public: void tag_redraw(); void tag_update(); void get_status(string& status, string& substatus); + void get_kernel_status(string& kernel_status); void get_progress(float& progress, double& total_time, double& render_time); void test_cancel(); void update_status_progress(); -- cgit v1.2.3