Blender Git Commit Log

Git Commits -> Revision aa0ac00

Revision aa0ac00 by Germano Cavalcante (master)
November 3, 2021, 15:10 (GMT)
GPencil and Annotation: Use cached depth to perform depth testing operations

Operations such as erasing with occlusion and drawing on the surface
require reading the depth buffer.

However, this is being done with minimal efficiency.

Currently, to read the depth corresponding to each point of the new stroke,
a ReadPixel is called to send a message to the GPU and read the depth of
the corresponding pixel in the VRAM.

The communication between GPU and CPU is known to be a slow operation so
it is good to be avoided.

Therefore, save the entire depth buffer in a cache to be read directly
from the RAM.

(Also the `ED_view3d_autodist_depth` and `ED_view3d_autodist_depth_seg` have
been removed since they are no longer used).

Reviewed By: antoniov, fclem

Differential Revision: https://developer.blender.org/D10894

Commit Details:

Full Hash: aa0ac0035a0d3601672a0c732e3f8f932a36fc04
Parent Commit: 8b516d8
Lines Changed: +65, -42

By: Miika HämäläinenLast update: Nov-07-2014 14:18 MiikaHweb | 2003-2021