Blender Git Loki
Git Commits -> Revision b11a463
Revision b11a463 by Germano Cavalcante (master) June 21, 2021, 19:41 (GMT) |
Refactor: Do not keep a copy of depth buffer in RegionView3D The depth cache (located in `RegionView3D::depths`) is used for quick and simple occlusion testing in: - particle selection, - "Draw Curve" operator and - "Interactive Light Track to Cursor" operator, However, keeping a texture buffer in cache is not a recommended practice. For displays with high resolution like 8k this represents something around 132MB. Also, currently, each call to `ED_view3d_depth_override` invalidates the depth cache. So that depth is never reused in multiple calls from an operator (this was not the case in blender 2.79). This commit allows to create a depth cache and release it in the same operator. Thus, the buffer is kept in cache for a short time, freeing up space. No functional changes. |
Commit Details:
Full Hash: b11a463e4fcd98f2fff6e05a03e97e71b93b8274
Parent Commit: b665ad8
Lines Changed: +151, -153
18 Modified Paths:
/source/blender/blenkernel/intern/screen.c (+0, -1) (Diff)
/source/blender/editors/curve/editcurve_paint.c (+15, -7) (Diff)
/source/blender/editors/gpencil/annotate_paint.c (+3, -3) (Diff)
/source/blender/editors/gpencil/gpencil_fill.c (+1, -1) (Diff)
/source/blender/editors/gpencil/gpencil_paint.c (+2, -2) (Diff)
/source/blender/editors/gpencil/gpencil_primitive.c (+1, -1) (Diff)
/source/blender/editors/gpencil/gpencil_utils.c (+1, -1) (Diff)
/source/blender/editors/include/ED_particle.h (+6, -1) (Diff)
/source/blender/editors/include/ED_view3d.h (+4, -5) (Diff)
/source/blender/editors/object/object_transform.c (+11, -7) (Diff)
/source/blender/editors/physics/particle_edit.c (+63, -24) (Diff)
/source/blender/editors/space_view3d/space_view3d.c (+0, -7) (Diff)
/source/blender/editors/space_view3d/view3d_draw.c (+35, -58) (Diff)
/source/blender/editors/space_view3d/view3d_edit.c (+2, -18) (Diff)
/source/blender/editors/space_view3d/view3d_intern.h (+1, -1) (Diff)
/source/blender/editors/space_view3d/view3d_select.c (+1, -1) (Diff)
/source/blender/editors/space_view3d/view3d_utils.c (+5, -14) (Diff)
/source/blender/makesdna/DNA_view3d_types.h (+0, -1) (Diff)
/source/blender/editors/curve/editcurve_paint.c (+15, -7) (Diff)
/source/blender/editors/gpencil/annotate_paint.c (+3, -3) (Diff)
/source/blender/editors/gpencil/gpencil_fill.c (+1, -1) (Diff)
/source/blender/editors/gpencil/gpencil_paint.c (+2, -2) (Diff)
/source/blender/editors/gpencil/gpencil_primitive.c (+1, -1) (Diff)
/source/blender/editors/gpencil/gpencil_utils.c (+1, -1) (Diff)
/source/blender/editors/include/ED_particle.h (+6, -1) (Diff)
/source/blender/editors/include/ED_view3d.h (+4, -5) (Diff)
/source/blender/editors/object/object_transform.c (+11, -7) (Diff)
/source/blender/editors/physics/particle_edit.c (+63, -24) (Diff)
/source/blender/editors/space_view3d/space_view3d.c (+0, -7) (Diff)
/source/blender/editors/space_view3d/view3d_draw.c (+35, -58) (Diff)
/source/blender/editors/space_view3d/view3d_edit.c (+2, -18) (Diff)
/source/blender/editors/space_view3d/view3d_intern.h (+1, -1) (Diff)
/source/blender/editors/space_view3d/view3d_select.c (+1, -1) (Diff)
/source/blender/editors/space_view3d/view3d_utils.c (+5, -14) (Diff)
/source/blender/makesdna/DNA_view3d_types.h (+0, -1) (Diff)