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-06-18 18:56:03 +03:00
2019-04-17 06:21:24 +02:00
2021-06-18 18:56:03 +03:00
2021-02-20 15:38:14 +11:00
2020-10-08 13:23:30 +02:00
2021-06-18 18:56:04 +03:00
2020-12-15 17:03:00 +01:00
2021-01-04 17:38:11 +11:00
2021-05-12 16:44:59 +10:00
2020-12-03 22:55:35 +01:00
2021-02-09 16:00:36 +01:00
2021-05-04 16:46:33 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 10:04:57 +02:00
2020-11-06 12:32:54 +11:00
2020-08-07 09:50:34 +02:00
2021-02-14 20:58:04 +11:00
2020-10-08 16:11:38 +02:00
2021-03-23 13:27:17 +11:00
2021-06-15 09:34:58 +10:00
2021-06-05 16:29:46 +03:00
2021-03-23 18:34:46 +11:00
2021-05-27 10:08:40 -04:00
2020-11-19 13:41:50 +01:00
2020-12-17 12:22:47 -06:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2019-08-18 04:26:34 +10:00
2021-01-20 16:15:53 +11:00
2021-05-12 16:44:59 +10:00
2020-11-19 13:41:50 +01:00
2020-12-23 15:48:38 +01:00
2020-12-23 12:13:44 -06:00
2020-08-07 09:50:34 +02:00
2021-04-13 09:39:20 +02:00
2021-05-20 23:35:53 +08:00
2021-06-16 22:38:47 +08:00
2021-06-16 22:38:47 +08:00
2020-11-19 13:41:50 +01:00
2020-08-07 09:50:34 +02:00
2020-11-19 13:41:50 +01:00
2021-02-09 10:42:00 +11:00
2021-05-26 17:05:01 +02:00
2020-09-11 08:08:46 +02:00
2021-02-09 08:12:29 +01:00
2021-05-12 16:44:59 +10:00
2020-11-19 13:41:50 +01:00
2020-08-07 09:50:34 +02:00
2020-11-19 13:41:50 +01:00
2020-12-14 09:27:58 +01:00
2021-04-01 12:31:01 +02:00
2021-04-01 12:31:01 +02:00
2020-08-07 09:50:34 +02:00
2021-02-14 20:58:04 +11:00
2021-04-13 21:43:07 +10:00
2020-08-07 09:50:34 +02:00
2020-11-19 13:41:50 +01:00
2020-08-07 09:50:34 +02:00
2021-02-14 20:58:04 +11:00
2020-08-07 09:50:34 +02:00
2021-03-16 19:59:09 +01:00
2021-04-02 14:44:26 +02:00
2021-04-11 14:37:37 +10:00
2021-02-11 13:44:58 +01:00
2020-08-07 09:50:34 +02:00
2021-02-13 17:44:51 +11:00
2021-04-22 16:31:41 +10:00
2021-04-22 16:31:41 +10:00
2021-04-14 14:25:34 +02:00
2021-02-22 16:30:04 +01:00
2020-11-19 13:41:50 +01:00
2021-06-17 21:11:32 +01:00
2021-03-16 19:59:09 +01:00
2020-11-19 13:41:50 +01:00
2020-08-07 09:50:34 +02:00
2021-05-12 16:44:59 +10:00
2021-06-03 20:17:17 +02:00
2021-03-05 17:46:33 +01:00
2020-11-19 13:41:50 +01:00
2020-10-08 18:19:09 +02:00
2021-05-12 16:44:59 +10:00
2021-05-12 16:44:59 +10:00
2020-08-07 09:50:34 +02:00
2020-11-19 13:41:50 +01:00
2021-02-14 20:58:04 +11:00
2021-03-10 21:45:12 +11:00
2021-05-12 16:44:59 +10:00
2021-02-13 17:44:51 +11:00
2020-11-19 13:41:50 +01:00
2021-06-17 03:42:04 +02:00
2020-08-07 09:50:34 +02:00
2020-11-19 13:41:50 +01:00
2020-08-07 09:50:34 +02:00
2020-11-19 13:41:50 +01:00
2020-11-19 13:41:50 +01:00
2021-06-18 16:33:02 -05:00
2020-08-07 09:50:34 +02:00
2020-11-19 13:41:50 +01:00
2020-11-19 13:41:50 +01:00
2020-08-07 09:50:34 +02:00
2021-05-12 16:44:59 +10:00
2021-02-13 17:44:51 +11:00
2021-06-01 10:51:53 +02:00
2020-08-07 09:50:34 +02:00
2020-11-19 13:41:50 +01:00
2020-12-02 18:16:23 -05:00
2020-11-19 13:41:50 +01:00
2021-05-25 15:18:06 +02:00
2020-11-19 13:41:50 +01:00
2021-06-21 16:41:50 -03:00
2020-09-15 23:13:01 +05:30
2020-11-19 13:41:50 +01:00
2021-04-16 23:50:05 +10:00
2020-12-15 12:34:14 +11:00
2020-08-07 09:50:34 +02:00
2020-11-19 13:41:50 +01:00
2021-05-16 03:36:31 +09:00