From 517ff40b124bc9d1324ccf7561a59ac51bf86602 Mon Sep 17 00:00:00 2001 From: Lukas Stockner Date: Thu, 24 Sep 2020 00:37:23 +0200 Subject: Cycles: Implement tile stealing to improve CPU+GPU rendering performance While Cycles already supports using both CPU and GPU at the same time, there currently is a large problem with it: Since the CPU grabs one tile per thread, at the end of the render the GPU runs out of new work but the CPU still needs quite some time to finish its current times. Having smaller tiles helps somewhat, but especially OpenCL rendering tends to lose performance with smaller tiles. Therefore, this commit adds support for tile stealing: When a GPU device runs out of new tiles, it can signal the CPU to release one of its tiles. This way, at the end of the render, the GPU quickly finishes the remaining tiles instead of having to wait for the CPU. Thanks to AMD for sponsoring this work! Differential Revision: https://developer.blender.org/D9324 --- intern/cycles/device/device_task.h | 1 + 1 file changed, 1 insertion(+) (limited to 'intern/cycles/device/device_task.h') diff --git a/intern/cycles/device/device_task.h b/intern/cycles/device/device_task.h index fd380788282..f819f84eb43 100644 --- a/intern/cycles/device/device_task.h +++ b/intern/cycles/device/device_task.h @@ -159,6 +159,7 @@ class DeviceTask { function update_tile_sample; function release_tile; function get_cancel; + function get_tile_stolen; function map_neighbor_tiles; function unmap_neighbor_tiles; -- cgit v1.2.3