This repository has been archived on 2023-10-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-archive/source/blender/blenkernel
Germano Cavalcante b11a463e4f 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.
2021-06-21 16:41:50 -03:00
..
2021-01-04 17:38:11 +11:00
2021-02-13 17:44:51 +11:00
2020-12-16 16:26:23 +11:00
2020-12-16 16:26:23 +11:00
2020-10-01 14:29:45 +02:00
2020-12-15 17:19:55 +01:00
2021-04-24 18:14:15 -06:00
2021-06-18 10:50:19 +02:00
2021-06-17 21:11:32 +01:00
2020-12-16 16:26:23 +11:00
2020-12-16 16:26:23 +11:00
2021-02-26 16:55:58 +11:00
2021-06-10 12:15:59 +02:00