Blender Git Loki
Git Commits -> Revision bbe6d44
Revision bbe6d44 by Kévin Dietrich (master) January 22, 2021, 15:08 (GMT) |
Cycles: optimize device updates This optimizes device updates (during user edits or frame changes in the viewport) by avoiding unnecessary computations. To achieve this, we use a combination of the sockets' update flags as well as some new flags passed to the various managers when tagging for an update to tell exactly what the tagging is for (e.g. shader was modified, object was removed, etc.). Besides avoiding recomputations, we also avoid resending to the devices unmodified data arrays, thus reducing bandwidth usage. For OptiX and Embree, BVH packing was also multithreaded. The performance improvements may vary depending on the used device (CPU or GPU), and the content of the scene. Simple scenes (e.g. with no adaptive subdivision or volumes) rendered using OptiX will benefit from this work the most. On average, for a variety of animated scenes, this gives a 3x speedup. Reviewed By: #cycles, brecht Maniphest Tasks: T79174 Differential Revision: https://developer.blender.org/D9555 |
Commit Details:
Full Hash: bbe6d44928235cd4a5cfbeaf1a1de78ed861bb92
Parent Commit: 131a758
Lines Changed: +1084, -338
40 Modified Paths:
/intern/cycles/blender/blender_curves.cpp (+1, -4) (Diff)
/intern/cycles/blender/blender_geometry.cpp (+1, -1) (Diff)
/intern/cycles/blender/blender_mesh.cpp (+2, -9) (Diff)
/intern/cycles/blender/blender_object.cpp (+0, -3) (Diff)
/intern/cycles/blender/blender_particles.cpp (+2, -2) (Diff)
/intern/cycles/blender/blender_session.cpp (+0, -5) (Diff)
/intern/cycles/blender/blender_shader.cpp (+1, -3) (Diff)
/intern/cycles/blender/blender_sync.cpp (+3, -8) (Diff)
/intern/cycles/device/device_memory.h (+67, -2) (Diff)
/intern/cycles/render/attribute.cpp (+74, -1) (Diff)
/intern/cycles/render/attribute.h (+10, -0) (Diff)
/intern/cycles/render/background.cpp (+3, -2) (Diff)
/intern/cycles/render/bake.cpp (+15, -5) (Diff)
/intern/cycles/render/bake.h (+4, -1) (Diff)
/intern/cycles/render/film.cpp (+4, -4) (Diff)
/intern/cycles/render/geometry.cpp (+431, -105) (Diff)
/intern/cycles/render/geometry.h (+34, -4) (Diff)
/intern/cycles/render/hair.cpp (+19, -14) (Diff)
/intern/cycles/render/hair.h (+1, -1) (Diff)
/intern/cycles/render/image.cpp (+16, -6) (Diff)
/intern/cycles/render/image.h (+4, -1) (Diff)
/intern/cycles/render/integrator.cpp (+49, -25) (Diff)
/intern/cycles/render/integrator.h (+12, -2) (Diff)
/intern/cycles/render/light.cpp (+18, -9) (Diff)
/intern/cycles/render/light.h (+21, -2) (Diff)
/intern/cycles/render/mesh.cpp (+26, -18) (Diff)
/intern/cycles/render/mesh.h (+1, -1) (Diff)
/intern/cycles/render/object.cpp (+107, -29) (Diff)
/intern/cycles/render/object.h (+24, -4) (Diff)
/intern/cycles/render/osl.cpp (+3, -3) (Diff)
/intern/cycles/render/particles.cpp (+10, -5) (Diff)
/intern/cycles/render/particles.h (+4, -2) (Diff)
/intern/cycles/render/scene.cpp (+38, -26) (Diff)
/intern/cycles/render/session.cpp (+1, -7) (Diff)
/intern/cycles/render/shader.cpp (+32, -13) (Diff)
/intern/cycles/render/shader.h (+21, -2) (Diff)
/intern/cycles/render/svm.cpp (+3, -3) (Diff)
/intern/cycles/render/tables.cpp (+10, -5) (Diff)
/intern/cycles/render/tables.h (+4, -1) (Diff)
/intern/cycles/util/util_array.h (+8, -0) (Diff)
/intern/cycles/blender/blender_geometry.cpp (+1, -1) (Diff)
/intern/cycles/blender/blender_mesh.cpp (+2, -9) (Diff)
/intern/cycles/blender/blender_object.cpp (+0, -3) (Diff)
/intern/cycles/blender/blender_particles.cpp (+2, -2) (Diff)
/intern/cycles/blender/blender_session.cpp (+0, -5) (Diff)
/intern/cycles/blender/blender_shader.cpp (+1, -3) (Diff)
/intern/cycles/blender/blender_sync.cpp (+3, -8) (Diff)
/intern/cycles/device/device_memory.h (+67, -2) (Diff)
/intern/cycles/render/attribute.cpp (+74, -1) (Diff)
/intern/cycles/render/attribute.h (+10, -0) (Diff)
/intern/cycles/render/background.cpp (+3, -2) (Diff)
/intern/cycles/render/bake.cpp (+15, -5) (Diff)
/intern/cycles/render/bake.h (+4, -1) (Diff)
/intern/cycles/render/film.cpp (+4, -4) (Diff)
/intern/cycles/render/geometry.cpp (+431, -105) (Diff)
/intern/cycles/render/geometry.h (+34, -4) (Diff)
/intern/cycles/render/hair.cpp (+19, -14) (Diff)
/intern/cycles/render/hair.h (+1, -1) (Diff)
/intern/cycles/render/image.cpp (+16, -6) (Diff)
/intern/cycles/render/image.h (+4, -1) (Diff)
/intern/cycles/render/integrator.cpp (+49, -25) (Diff)
/intern/cycles/render/integrator.h (+12, -2) (Diff)
/intern/cycles/render/light.cpp (+18, -9) (Diff)
/intern/cycles/render/light.h (+21, -2) (Diff)
/intern/cycles/render/mesh.cpp (+26, -18) (Diff)
/intern/cycles/render/mesh.h (+1, -1) (Diff)
/intern/cycles/render/object.cpp (+107, -29) (Diff)
/intern/cycles/render/object.h (+24, -4) (Diff)
/intern/cycles/render/osl.cpp (+3, -3) (Diff)
/intern/cycles/render/particles.cpp (+10, -5) (Diff)
/intern/cycles/render/particles.h (+4, -2) (Diff)
/intern/cycles/render/scene.cpp (+38, -26) (Diff)
/intern/cycles/render/session.cpp (+1, -7) (Diff)
/intern/cycles/render/shader.cpp (+32, -13) (Diff)
/intern/cycles/render/shader.h (+21, -2) (Diff)
/intern/cycles/render/svm.cpp (+3, -3) (Diff)
/intern/cycles/render/tables.cpp (+10, -5) (Diff)
/intern/cycles/render/tables.h (+4, -1) (Diff)
/intern/cycles/util/util_array.h (+8, -0) (Diff)